Im currently setting up a local docker cluster and am running into some problems with the configuration of each node. For the container setup I’ve followed this docker-compose.yml and it works well in default config. However, I want to use the
replication_factor (max and min) settings and also set
leave_on_shutdown = true on each node and am unsure about how to do this properly.
Currently I start then cluster nodes with a shell script , stop them, edit the service.json file and restart the containers. It’s a bad approach and doesn’t really work, because I have to use loads of
sleep in my shell script to prevent raft from throwing errors. Also, I cant restart all cluster containers at the same time, as raft looses its leader and is unable to elect a new one (not sure why exactly)
So I’m wondering how to initialise the
ipfs-cluster-service and override the config defaults or change the settings while the container is running. Would be great to get some insight on how to do this.