Simulating Service Discovery with Docker and Etcd
talwai.github.io
Simulating Service Discovery with Docker and Etcd
1–10 of 13 posts
Re: Simulating Service Discovery with Docker and Etcd
#2In combination with consul-template you can pretty easily create automated service discovery which will update a configuration, such as HAProxy or nginx LB config, and reload the service.
Re: Simulating Service Discovery with Docker and Etcd
#3I like consul over etcd, as it implements health checks for your services, and provides DNS services. In combination with consul-template you can pretty easily create automated service discovery which will update a configuration, such as HAProxy or nginx LB config, and reload the service.
Re: Simulating Service Discovery with Docker and Etcd
#4It's a neat go daemon that runs as a global unit(every node) listening to the docker event bus and updating etcd for you. From there it's easy to use confd to manage updating nginx or haproxy (which is what the deis router does).
Re: Simulating Service Discovery with Docker and Etcd
#5Re: Simulating Service Discovery with Docker and Etcd
#6Re: Simulating Service Discovery with Docker and Etcd
#7Given how much effort you have to go through with etcd and discovery, why not use an MQ like RabbitMQ, that will take care of replication, etc as well?
Again, not necessarily worse, just different and unfamiliar.
The other reason is that this really only pushes the service discovery down a layer - how do you know where RabbitMQ is running? Of course, the same could be said for etcd - how do you know where etcd is running in order to query for more services.
Re: Simulating Service Discovery with Docker and Etcd
#8Given how much effort you have to go through with etcd and discovery, why not use an MQ like RabbitMQ, that will take care of replication, etc as well?
Re: Simulating Service Discovery with Docker and Etcd
#9Given how much effort you have to go through with etcd and discovery, why not use an MQ like RabbitMQ, that will take care of replication, etc as well?
Re: Simulating Service Discovery with Docker and Etcd
#10https://github.com/GoogleCloudPlatform/kubernetes/blob/maste...