mantl / mesos-consul

Mesos to Consul bridge for service discovery
Apache License 2.0
338 stars 95 forks source link

how can services be registered in a specific datacenter? #7

Open tysonnorris opened 9 years ago

tysonnorris commented 9 years ago

I don't see any parameter for specifying datacenter to use for registering services - is this possible with current implementation?

ChrisAubuchon commented 9 years ago

It is not currently possible to specify the datacenter. Mesos-consul registers with the agent running on the same node as the task. That agent's datacenter is where the service is registered. The Consul API doesn't allow specifying a data center when registering a service. In order to register the service in a specified datacenter the task would have to register with a Consul Agent running in that dc. That would result in the task being registered to the wrong host.

thomasvincent commented 7 years ago

Document in wiki