-
Notifications
You must be signed in to change notification settings - Fork 25
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 1.12 services - After Galera scale down maxscale's autodiscovery runs into trouble #1
Comments
Hi @Franselbaer, |
I am facing the same problem on 1.12.3 |
I've testet this only with 1.12.3 because i startet into Docker with this version. |
It's an old bug, but causing some critical cases.
|
Auto-discovery inside Swarm doesn't seem to work "at all" when the stack starts and there is a race condition between the cluster starting and MaxScale. Took me a while to figure this out. |
Hi! Similar issue. toughiq/maxscale give error Docker version 19.03.12, build 48a66213fe |
I had the similar issue on Swarm mode when I scaled up and down the db container. |
If you scale up and then scale down the galera cluster the auto discovery of maxscale runs into trouble.
The command used in entrypoint script:
This delivers N cluster ip's from dbcluster correctly BUT:
If you do something like:
and then:
The instance list:
shows something like:
And the getent delivers in this case 5 cluster ip's also from instances in shutdown state.
Unfortunately docker swarm seems not to clean up shuttet down instances.
I'm currently not sure what is a good way around this.
The text was updated successfully, but these errors were encountered: