Re:Show HN: CoreOS, a Linux distro for containers
by ideal0227 on Tuesday July 30, 2013 @06:49PM
(#6130644)
"for example if one of your NGinx instances goes down there's nothing to remove it from the pool"
For now, you can set up a node with TTL and update it. If the server goes down, the node will disappear.
We are going to provide a client that will keep long connection with the server.
Re:Show HN: CoreOS, a Linux distro for containers
by johnbellone on Wednesday July 31, 2013 @07:51AM
(#6133008)
> (for example if one of your NGinx instances goes down there's nothing to remove it from the pool)
My plan to solve this was to use Doozer with a small daemon in each agent server which would keep some kind of registry of the services running on the machine. I think that could be relatively lightweight and with the ability to broadcast via watches there could be some kind of action attached to a node being removed and added.
`INSTANCE=$(docker run jonwood/nginx-node) && curl http://127.0.0.1:4001/v1/keys/nginx-nodes/$INSTANCE -d $(docker port $INSTANCE 80)`
You'd then use Etcd's tree listing interface to grab the JSON fragments for each of those NGinx nodes, and configure Varnish or HAProxy or something to hit those backends.
Obviously this isn't anywhere near production ready (for example if one of your NGinx instances goes down there's nothing to remove it from the pool), but so far I'm impressed with what CoreOS is doing.