{"action":"created","issue":{"url":"https://api.github.com/repos/gambol99/go-marathon/issues/254","repository_url":"https://api.github.com/repos/gambol99/go-marathon","labels_url":"https://api.github.com/repos/gambol99/go-marathon/issues/254/labels{/name}","comments_url":"https://api.github.com/repos/gambol99/go-marathon/issues/254/comments","events_url":"https://api.github.com/repos/gambol99/go-marathon/issues/254/events","html_url":"https://github.com/gambol99/go-marathon/issues/254","id":199064520,"number":254,"title":"Zookeeper-aware mode for finding marathon uri","user":{"login":"timvaillancourt","id":3202797,"avatar_url":"https://avatars.githubusercontent.com/u/3202797?v=3","gravatar_id":"","url":"https://api.github.com/users/timvaillancourt","html_url":"https://github.com/timvaillancourt","followers_url":"https://api.github.com/users/timvaillancourt/followers","following_url":"https://api.github.com/users/timvaillancourt/following{/other_user}","gists_url":"https://api.github.com/users/timvaillancourt/gists{/gist_id}","starred_url":"https://api.github.com/users/timvaillancourt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timvaillancourt/subscriptions","organizations_url":"https://api.github.com/users/timvaillancourt/orgs","repos_url":"https://api.github.com/users/timvaillancourt/repos","events_url":"https://api.github.com/users/timvaillancourt/events{/privacy}","received_events_url":"https://api.github.com/users/timvaillancourt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-01-05T21:31:10Z","updated_at":"2017-01-12T02:28:02Z","closed_at":null,"body":"Hey guys,\r\n\r\nI would like to start a discussion around functionality to get the Marathon URI from Zookeeper instead of an http:// URL. This would allow for much more dynamic deployments as go-marathon would essentially 'discover' where Marathon is instead of requiring a static http:// URI to connect to that could change. You *could* use a load balancer as a workaround but I think using ZK is better if it's already there.\r\n\r\nI would be happy to implement this in a PR/branch given some agreement from anyone insteresteds on how to achieve it.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/gambol99/go-marathon/issues/comments/272058571","html_url":"https://github.com/gambol99/go-marathon/issues/254#issuecomment-272058571","issue_url":"https://api.github.com/repos/gambol99/go-marathon/issues/254","id":272058571,"user":{"login":"timvaillancourt","id":3202797,"avatar_url":"https://avatars.githubusercontent.com/u/3202797?v=3","gravatar_id":"","url":"https://api.github.com/users/timvaillancourt","html_url":"https://github.com/timvaillancourt","followers_url":"https://api.github.com/users/timvaillancourt/followers","following_url":"https://api.github.com/users/timvaillancourt/following{/other_user}","gists_url":"https://api.github.com/users/timvaillancourt/gists{/gist_id}","starred_url":"https://api.github.com/users/timvaillancourt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timvaillancourt/subscriptions","organizations_url":"https://api.github.com/users/timvaillancourt/orgs","repos_url":"https://api.github.com/users/timvaillancourt/repos","events_url":"https://api.github.com/users/timvaillancourt/events{/privacy}","received_events_url":"https://api.github.com/users/timvaillancourt/received_events","type":"User","site_admin":false},"created_at":"2017-01-12T02:28:02Z","updated_at":"2017-01-12T02:28:02Z","body":"Hi @timoreimann, I would probably start simple and only grab the URLs during the init phase of go-marathon if an list of Zookeeper URIs was provided. There is probably a pretty reliable way to gather the list of available Marathon instances from whichever path Marathon is using in Zookeeper.\r\n\r\nThis would add one dependency, yes. https://github.com/samuel/go-zookeeper seems to be the de facto driver for ZK."}}
{"actor":{"display_login":"timvaillancourt"}}