ruby on rails - Service discovery and daemons with docker -
here questions have docker:
given way docker handles daemons , links betweens services (not using daemons)
1- how process monitoring, daemons , application chains work (ie: upstart/bluepill/unicorn) if can run daemons , bluepill restarts process ?
2- how work load balancing high level proxy when comes find ip address of containers balance if want stick upstart/bluepill/unicorn model ?
3- recommended software service discovery on top of docker example perform rails deploy?
1- afaik, there no problem running bluepill (or other process monitor supervisor or monit) in docker container. used kind of tool run more 1 service in container.
2- load balancing containers, can either use load balancer can configure dynamically (for http balancing, hipache candidate) or have scripts dynamically update configuration of standard load balancer , reloads (i did many times nginx, should work other solutions)
3- there tools in docker ecosystem service discovery. can have @ serf (http://www.serfdom.io/) , etcd (https://github.com/coreos/etcd). deploy part, recommend use onbuild instruction in dockerfile inject application code , create immutable containers.
Comments
Post a Comment