Closed gaiterjones closed 7 years ago
thanks for the notes!
You might be interested in my implementation of the varnish load balancer, I blogged about it here.
Inspired by your example my manager container queries docker directly to dynamically update the varnish vcl config.
interesting but at the moment I really have no time to study/rewrite and test your solution, did you notice any improvement managing it that way?
Just a question really, why do you need a redis fpc cache when you are using varnish, doesn't varnish replace the redis cache?
Your probe file in the container is a txt file created at startup, in your readme you say it is a css file. Also docker-compose scale is deprecated. Use the up command with the --scale flag instead.
This is a great collection of images and I like the idea of the dynamically scaleable apache servers. I think I would control the varnish cache update from the host though and monitor the container health state to build the array of apache servers available. I guess swarm would make this redundant but for scaling containers on the same host it is stilla neat solutiom.