We have been using DockerCloud/HAProxy for quite a long while and it’s been running fine, ( apart from the other well known DockerCloud DNS issues occasionally…).
Today I wanted to try to change our App service’s deployment strategy from existing ‘emptiest_node’ to ‘every_node’. Because with ‘emptiest_node’ strategy, containers may be all re-deployed to a newly created ‘node’ and that’s not what we want.
Change the deployment strategy doesn’t seem like an issue, I have to kill the old stack and ‘re-deploy’ a new stack, because the ‘every_node’ mode cannot be changed from or to. That’s fine, so far so good, however when I link our ‘app service’ to ‘haproxy service’ the API responded correctly, but haproxy cannot see linked services (no configuration loaded even though I can ping the app service from haproxy). I checked the ‘HAProxy service’ from the web, I can see the expected link alias shown there but the actual service is not. When I go to the Nginx service and can see it linked from HAProxy…
You see even though the "Nginx-master-xxx-master’ alias is shown there after linking the service, there’s no actual service linked!
My ‘app service’ is something like this
Any ideas why I cannot link a service with ‘every_node’ mode? When I switch back to ‘emptiest_node’ everything’s working again.