# Swarm and Stop writes

**URL:** https://discuss.aerospike.com/t/swarm-and-stop-writes/5409
**Category:** Operations
**Created:** [July 31, 2018, 7:45pm UTC](https://discuss.aerospike.com/t/swarm-and-stop-writes/5409 "2018-07-31T19:45:27Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![dahu29](https://avatars.discourse-cdn.com/v4/letter/d/ccd318/32.png) [@dahu29](https://discuss.aerospike.com/u/dahu29)
#### Post date: [August 3, 2018, 12:11pm UTC](https://discuss.aerospike.com/t/swarm-and-stop-writes/5409/10 "2018-08-03T12:11:11Z")

</div>

My purpose is to create a cluster for a school project. I use this loader

> **[GitHub - aerospike/aerospike-loader: Aerospike Data Loader](https://github.com/aerospike/aerospike-loader)**
>
> Aerospike Data Loader. Contribute to aerospike/aerospike-loader development by creating an account on GitHub.

I think i have error to connect because each time i reboot my destop, services are randomly redispatch between nodes up.

On my desktop, i have installed Aero DB and load without error all my data flow.

I use Haproxy to interact between my os and Docker. My docker config is precised in this topic

> [@Create a cluster with docker swarm](https://discuss.aerospike.com/t/create-a-cluster-with-docker-swarm/5297/15):
>
> Hi, To close this ticket, connexion is ok with a proxy in using port 80. Here is my yml file : version: '3.2' services: aerospikedb: image: aerospike/aerospike-server:latest networks: - aerospikenetwork environment: - SERVICE\_PORTS=3000 ports: - target: 3000 published: 3000 protocol: tcp mode: host deploy: replicas: 4 endpoint\_mode: dnsrr labels: …

On my cluster with more memory, i up to 7 nodes and load.

The load has finish without stop writes but 2/3 of my data are in errors.

```
ERROR AsWriterTask :161 - File: temp_state.csv Line: 185807Aerospike Write Error: 18
... 
ERROR AsWriterTask :161 - File: temp_state.csv Line: 188082Aerospike Write Error: 8
...
ERROR AsWriterTask :161 - File: temp_state.csv Line: 188082Aerospike Write Error: 9

```

`INFO AerospikeLoad :430 - Final Statistics of importer: (Records Read = 645675, Successful Writes = 481719, Successful Primary Writes = 259136, Successful Mapping Writes = 222583, Errors = 809631(809631-Write,0-Read,0-Processing), Skipped = 0(0-NullKey,0-NoBins)`

---

_[View the full topic](https://discuss.aerospike.com/t/swarm-and-stop-writes/5409)._
