I am trying to achieve stickiness inside a swarm cluster using the VIP, didn’t find any documentation for doing that.
I’m using https://github.com/docker/dockercloud-haproxy for this. I don’t know why Docker don’t document/promote this tool more - sticky sessions are a pretty basic requirement for loadbalancing, and I almost gave up on docker before coming across this.
Follow this Link