d2iq-archive / mesos-dns

DNS-based service discovery for Mesos.
https://mesosphere.github.com/mesos-dns
Apache License 2.0
483 stars 137 forks source link

Using Custom Top-Level Domains for Mesos-DNS on AWS when masters are in an auto scaling group #505

Open knizami opened 7 years ago

knizami commented 7 years ago

Hello,

My question is around how to configure / identify all the mesos masters when they are in an auto scaling group running on AWS? Specifically, the "masters" parameter indicates that you need to enter the ip addresses of the master nodes. We could enter the current ip addresses of the master nodes but our concern is when / if there is a scaling event and a new master is added or a master node is taken away, we would need to update the config / restart the service. Is there a recommended approach for dealing with auto scaling in this case? Does the configuration have to identify all master nodes? Can it reference an elastic load balancer?

jdef commented 7 years ago

mesos-dns can use zookeeper to watch the set of masters in the cluster, treating the servers identified via the masters config param as a fallback