QubitProducts / bamboo

HAProxy auto configuration and auto service discovery for Mesos Marathon
Apache License 2.0
793 stars 214 forks source link

bamboo to read marathon endpoint from zookeeper #51

Closed jwerak closed 10 years ago

jwerak commented 10 years ago

Is it possible to define MARATHON_ENDPOINT by specifying zookeeper path like you can when running for example mesos frameworks?

Path could be: zk://10.0.1.45:2181,10.0.1.47:2181,10.0.1.46:2181/marathon

j1n6 commented 10 years ago

No, but I understand what you want to achieve, I guess it's dynamically adding/removing Marathon and figure out Marathon master?

If you simply want to handle HA Marathon scenarios, currently MARATHON_ENDPOINT support comma separated endpoints, e.g:

http://m1:8080,http://m2:8080,http://m3:8080

On 5 Nov 2014, at 08:07, veverjak notifications@github.com wrote:

Is it possible to define MARATHON_ENDPOINT by specifying zookeeper path like you can when running for example mesos frameworks?

Path could be: zk://10.0.1.45:2181,10.0.1.47:2181,10.0.1.46:2181/marathon

— Reply to this email directly or view it on GitHub.

jwerak commented 10 years ago

ok, good enough. Do you plan to support zookeper in future? We could leave this as feature issue till there's time to implement it...

j1n6 commented 10 years ago

I can't give an answer yet. At this early stage for Marathon, I'm trying to avoid read data from ZK - I expect the data stored in ZK may change. I prefer REST API, which give some versioning.

If you work with AWS, you can also use Route53 to run healthchecks and load balance to Marathon nodes.

On 5 November 2014 09:53, veverjak notifications@github.com wrote:

ok, good enough. Do you plan to support zookeper in future? We could leave this as feature issue till there's time to implement it...

— Reply to this email directly or view it on GitHub https://github.com/QubitProducts/bamboo/issues/51#issuecomment-61783275.

This email may be confidential or privileged. If you received this communication by mistake, please don't forward it to anyone else, please erase all copies and attachments, and please let me know that it has gone to

the wrong person. Thanks.

jwerak commented 10 years ago

Good idea, I will probably do that.

Thanks for suggestion.

j1n6 commented 10 years ago

My pleasure to help!

On 5 November 2014 10:03, veverjak notifications@github.com wrote:

Good idea, I will probably do that.

Thanks for suggestion.

— Reply to this email directly or view it on GitHub https://github.com/QubitProducts/bamboo/issues/51#issuecomment-61784471.

This email may be confidential or privileged. If you received this communication by mistake, please don't forward it to anyone else, please erase all copies and attachments, and please let me know that it has gone to

the wrong person. Thanks.