mesosphere-backup / etcd-mesos

self-healing etcd on mesos!
Apache License 2.0
67 stars 19 forks source link

investigate patching + upstreaming proxy to bail out or requery when reconnected to a different clusterid #72

Open spacejam opened 9 years ago

spacejam commented 9 years ago

The current etcd proxy, when using a discovery-srv to find peers from srv records, will never requery the srv record. As a result, when it loses connectivity to the cluster's servers, it will block forever trying to reconnect to the last known nodes. If a different etcd cluster comes up and happens to reuse the same ports on one of the hosts, the proxy will start using it as the source of truth. Note that reseeding will also generate a new clusterid. Can we have the proxy bail out if it detects that it has talked to nodes with two different cluster ID's ever?