-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker-compose not configuring #2
Comments
The tool should perform retries before actually trying to setup the cluster. See couchdb-cluster-config/pkg/await-nodes.go Line 47 in 55b53b8
|
I changed the setup timeout in the docker-compose config to 60s. Can you please retry the current version? |
Setting the timer to a minute did solve the issue, thanks!
For a more graceful solution, is there a way to delay the setup service starting until the other services have had a few seconds to start up? |
I could add an option like Another option is to add another tool to the stack, which checks for the services' availability. See https://github.com/gesellix/couchdb-prometheus-exporter/blob/ef76f4757993cd16f963da16e74d5bcb6a3a1c70/examples/stack/docker-stack-single.yml#L18 for an example using a I'll add the |
You can now define a custom setup delay (defaults to 5s). See bff4878 for an example in the repo's docker-compose.yml. With 20s the user experience on my Windows box was better, when the CouchDB container had to be created. For already existing CouchDB containers, 5s delay seemed to be a better value. Please give it a try and leave some feedback here - I'm then going to tag a new release. From my perspective the issue has been resolved, but feel free to tell me in case I've missed something! |
This one has been tagged as Rev 11: https://github.com/gesellix/couchdb-cluster-config/releases/tag/11 |
Thanks! |
I have tried standing this repository up both on Ubuntu 16.04 and Ubuntu 18.04
After starting the docker swarm, the three couchdb instances start up in the network just fine. However, the cluster-setup service doesn't work and I need to configure it manually.
When looking at the console, it looks like docker-compose is trying to run the cluster setup before the actual couchDB containers are stood up.
The text was updated successfully, but these errors were encountered: