{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/swarm/issues/891","labels_url":"https://api.github.com/repos/docker/swarm/issues/891/labels{/name}","comments_url":"https://api.github.com/repos/docker/swarm/issues/891/comments","events_url":"https://api.github.com/repos/docker/swarm/issues/891/events","html_url":"https://github.com/docker/swarm/issues/891","id":83902812,"number":891,"title":"discovery flags","user":{"login":"aluzzardi","id":179503,"avatar_url":"https://avatars.githubusercontent.com/u/179503?v=3","gravatar_id":"","url":"https://api.github.com/users/aluzzardi","html_url":"https://github.com/aluzzardi","followers_url":"https://api.github.com/users/aluzzardi/followers","following_url":"https://api.github.com/users/aluzzardi/following{/other_user}","gists_url":"https://api.github.com/users/aluzzardi/gists{/gist_id}","starred_url":"https://api.github.com/users/aluzzardi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aluzzardi/subscriptions","organizations_url":"https://api.github.com/users/aluzzardi/orgs","repos_url":"https://api.github.com/users/aluzzardi/repos","events_url":"https://api.github.com/users/aluzzardi/events{/privacy}","received_events_url":"https://api.github.com/users/aluzzardi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/swarm/labels/area/discovery","name":"area/discovery","color":"eb6420"},{"url":"https://api.github.com/repos/docker/swarm/labels/kind/help%20wanted","name":"kind/help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/docker/swarm/milestones/3","html_url":"https://github.com/docker/swarm/milestones/0.3.0","labels_url":"https://api.github.com/repos/docker/swarm/milestones/3/labels","id":1026388,"number":3,"title":"0.3.0","description":"","creator":{"login":"vieux","id":1032519,"avatar_url":"https://avatars.githubusercontent.com/u/1032519?v=3","gravatar_id":"","url":"https://api.github.com/users/vieux","html_url":"https://github.com/vieux","followers_url":"https://api.github.com/users/vieux/followers","following_url":"https://api.github.com/users/vieux/following{/other_user}","gists_url":"https://api.github.com/users/vieux/gists{/gist_id}","starred_url":"https://api.github.com/users/vieux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vieux/subscriptions","organizations_url":"https://api.github.com/users/vieux/orgs","repos_url":"https://api.github.com/users/vieux/repos","events_url":"https://api.github.com/users/vieux/events{/privacy}","received_events_url":"https://api.github.com/users/vieux/received_events","type":"User","site_admin":false},"open_issues":33,"closed_issues":60,"state":"open","created_at":"2015-03-17T23:46:40Z","updated_at":"2015-06-02T08:06:45Z","due_on":"2015-06-02T07:00:00Z","closed_at":null},"comments":0,"created_at":"2015-06-02T08:06:45Z","updated_at":"2015-06-02T08:06:45Z","closed_at":null,"body":"Discovery flags today are misleading (and sometimes plain wrong).\r\n\r\n`ttl` and `heartbeat` should **only** be available at `join`.\r\n\r\n`heartbeat` is currently used by the manager to force a refresh for stores that do not support streaming updates (`token` and `file`).\r\n\r\nWe should\r\n- Find a better flag name for `heartbeat` in `manage`\r\n- Verify the current flags: Should it be `--ttl` or `--discovery-ttl`? Leader election and other stuff may also have `ttl` flags in the future.\r\n\r\nThoughts?"}}