{"action":"opened","number":235,"pull_request":{"url":"https://api.github.com/repos/gliderlabs/registrator/pulls/235","id":42850075,"html_url":"https://github.com/gliderlabs/registrator/pull/235","diff_url":"https://github.com/gliderlabs/registrator/pull/235.diff","patch_url":"https://github.com/gliderlabs/registrator/pull/235.patch","issue_url":"https://api.github.com/repos/gliderlabs/registrator/issues/235","number":235,"state":"open","locked":false,"title":"Retries to backend in the startup","user":{"login":"ch3lo","id":6663646,"avatar_url":"https://avatars.githubusercontent.com/u/6663646?v=3","gravatar_id":"","url":"https://api.github.com/users/ch3lo","html_url":"https://github.com/ch3lo","followers_url":"https://api.github.com/users/ch3lo/followers","following_url":"https://api.github.com/users/ch3lo/following{/other_user}","gists_url":"https://api.github.com/users/ch3lo/gists{/gist_id}","starred_url":"https://api.github.com/users/ch3lo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ch3lo/subscriptions","organizations_url":"https://api.github.com/users/ch3lo/orgs","repos_url":"https://api.github.com/users/ch3lo/repos","events_url":"https://api.github.com/users/ch3lo/events{/privacy}","received_events_url":"https://api.github.com/users/ch3lo/received_events","type":"User","site_admin":false},"body":"Registrator doesn't have resilience in the startup when you are trying to connect to an offline or starting up backend.\r\n\r\nIn my use case I'm using docker-compose to get my dev-cluster with consul and consul-template up, but I have some troubles when registrator run first than Consul.\r\n\r\nI added two parameters:\r\n* retry-attempts, with a default value of 0 to hold backward compatibility.\r\n* retry-interval, with a default value of 2000 ms","created_at":"2015-08-19T18:50:51Z","updated_at":"2015-08-19T18:50:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gliderlabs/registrator/pulls/235/commits","review_comments_url":"https://api.github.com/repos/gliderlabs/registrator/pulls/235/comments","review_comment_url":"https://api.github.com/repos/gliderlabs/registrator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gliderlabs/registrator/issues/235/comments","statuses_url":"https://api.github.com/repos/gliderlabs/registrator/statuses/d3863e3c5016f382776712fb2c57bc4716a7aa7b","head":{"label":"ch3lo:retries","ref":"retries","sha":"d3863e3c5016f382776712fb2c57bc4716a7aa7b","user":{"login":"ch3lo","id":6663646,"avatar_url":"https://avatars.githubusercontent.com/u/6663646?v=3","gravatar_id":"","url":"https://api.github.com/users/ch3lo","html_url":"https://github.com/ch3lo","followers_url":"https://api.github.com/users/ch3lo/followers","following_url":"https://api.github.com/users/ch3lo/following{/other_user}","gists_url":"https://api.github.com/users/ch3lo/gists{/gist_id}","starred_url":"https://api.github.com/users/ch3lo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ch3lo/subscriptions","organizations_url":"https://api.github.com/users/ch3lo/orgs","repos_url":"https://api.github.com/users/ch3lo/repos","events_url":"https://api.github.com/users/ch3lo/events{/privacy}","received_events_url":"https://api.github.com/users/ch3lo/received_events","type":"User","site_admin":false},"repo":{"id":31084406,"name":"registrator","full_name":"ch3lo/registrator","owner":{"login":"ch3lo","id":6663646,"avatar_url":"https://avatars.githubusercontent.com/u/6663646?v=3","gravatar_id":"","url":"https://api.github.com/users/ch3lo","html_url":"https://github.com/ch3lo","followers_url":"https://api.github.com/users/ch3lo/followers","following_url":"https://api.github.com/users/ch3lo/following{/other_user}","gists_url":"https://api.github.com/users/ch3lo/gists{/gist_id}","starred_url":"https://api.github.com/users/ch3lo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ch3lo/subscriptions","organizations_url":"https://api.github.com/users/ch3lo/orgs","repos_url":"https://api.github.com/users/ch3lo/repos","events_url":"https://api.github.com/users/ch3lo/events{/privacy}","received_events_url":"https://api.github.com/users/ch3lo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ch3lo/registrator","description":"Service registry bridge for Docker","fork":true,"url":"https://api.github.com/repos/ch3lo/registrator","forks_url":"https://api.github.com/repos/ch3lo/registrator/forks","keys_url":"https://api.github.com/repos/ch3lo/registrator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ch3lo/registrator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ch3lo/registrator/teams","hooks_url":"https://api.github.com/repos/ch3lo/registrator/hooks","issue_events_url":"https://api.github.com/repos/ch3lo/registrator/issues/events{/number}","events_url":"https://api.github.com/repos/ch3lo/registrator/events","assignees_url":"https://api.github.com/repos/ch3lo/registrator/assignees{/user}","branches_url":"https://api.github.com/repos/ch3lo/registrator/branches{/branch}","tags_url":"https://api.github.com/repos/ch3lo/registrator/tags","blobs_url":"https://api.github.com/repos/ch3lo/registrator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ch3lo/registrator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ch3lo/registrator/git/refs{/sha}","trees_url":"https://api.github.com/repos/ch3lo/registrator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ch3lo/registrator/statuses/{sha}","languages_url":"https://api.github.com/repos/ch3lo/registrator/languages","stargazers_url":"https://api.github.com/repos/ch3lo/registrator/stargazers","contributors_url":"https://api.github.com/repos/ch3lo/registrator/contributors","subscribers_url":"https://api.github.com/repos/ch3lo/registrator/subscribers","subscription_url":"https://api.github.com/repos/ch3lo/registrator/subscription","commits_url":"https://api.github.com/repos/ch3lo/registrator/commits{/sha}","git_commits_url":"https://api.github.com/repos/ch3lo/registrator/git/commits{/sha}","comments_url":"https://api.github.com/repos/ch3lo/registrator/comments{/number}","issue_comment_url":"https://api.github.com/repos/ch3lo/registrator/issues/comments{/number}","contents_url":"https://api.github.com/repos/ch3lo/registrator/contents/{+path}","compare_url":"https://api.github.com/repos/ch3lo/registrator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ch3lo/registrator/merges","archive_url":"https://api.github.com/repos/ch3lo/registrator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ch3lo/registrator/downloads","issues_url":"https://api.github.com/repos/ch3lo/registrator/issues{/number}","pulls_url":"https://api.github.com/repos/ch3lo/registrator/pulls{/number}","milestones_url":"https://api.github.com/repos/ch3lo/registrator/milestones{/number}","notifications_url":"https://api.github.com/repos/ch3lo/registrator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ch3lo/registrator/labels{/name}","releases_url":"https://api.github.com/repos/ch3lo/registrator/releases{/id}","created_at":"2015-02-20T20:44:50Z","updated_at":"2015-02-23T19:32:09Z","pushed_at":"2015-08-19T18:49:01Z","git_url":"git://github.com/ch3lo/registrator.git","ssh_url":"git@github.com:ch3lo/registrator.git","clone_url":"https://github.com/ch3lo/registrator.git","svn_url":"https://github.com/ch3lo/registrator","homepage":null,"size":20687,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gliderlabs:master","ref":"master","sha":"4ebfa2231a13e93374051d8b52212f88ecbf31ee","user":{"login":"gliderlabs","id":8484931,"avatar_url":"https://avatars.githubusercontent.com/u/8484931?v=3","gravatar_id":"","url":"https://api.github.com/users/gliderlabs","html_url":"https://github.com/gliderlabs","followers_url":"https://api.github.com/users/gliderlabs/followers","following_url":"https://api.github.com/users/gliderlabs/following{/other_user}","gists_url":"https://api.github.com/users/gliderlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/gliderlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gliderlabs/subscriptions","organizations_url":"https://api.github.com/users/gliderlabs/orgs","repos_url":"https://api.github.com/users/gliderlabs/repos","events_url":"https://api.github.com/users/gliderlabs/events{/privacy}","received_events_url":"https://api.github.com/users/gliderlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":22119747,"name":"registrator","full_name":"gliderlabs/registrator","owner":{"login":"gliderlabs","id":8484931,"avatar_url":"https://avatars.githubusercontent.com/u/8484931?v=3","gravatar_id":"","url":"https://api.github.com/users/gliderlabs","html_url":"https://github.com/gliderlabs","followers_url":"https://api.github.com/users/gliderlabs/followers","following_url":"https://api.github.com/users/gliderlabs/following{/other_user}","gists_url":"https://api.github.com/users/gliderlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/gliderlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gliderlabs/subscriptions","organizations_url":"https://api.github.com/users/gliderlabs/orgs","repos_url":"https://api.github.com/users/gliderlabs/repos","events_url":"https://api.github.com/users/gliderlabs/events{/privacy}","received_events_url":"https://api.github.com/users/gliderlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gliderlabs/registrator","description":"Service registry bridge for Docker with pluggable adapters","fork":false,"url":"https://api.github.com/repos/gliderlabs/registrator","forks_url":"https://api.github.com/repos/gliderlabs/registrator/forks","keys_url":"https://api.github.com/repos/gliderlabs/registrator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gliderlabs/registrator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gliderlabs/registrator/teams","hooks_url":"https://api.github.com/repos/gliderlabs/registrator/hooks","issue_events_url":"https://api.github.com/repos/gliderlabs/registrator/issues/events{/number}","events_url":"https://api.github.com/repos/gliderlabs/registrator/events","assignees_url":"https://api.github.com/repos/gliderlabs/registrator/assignees{/user}","branches_url":"https://api.github.com/repos/gliderlabs/registrator/branches{/branch}","tags_url":"https://api.github.com/repos/gliderlabs/registrator/tags","blobs_url":"https://api.github.com/repos/gliderlabs/registrator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gliderlabs/registrator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gliderlabs/registrator/git/refs{/sha}","trees_url":"https://api.github.com/repos/gliderlabs/registrator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gliderlabs/registrator/statuses/{sha}","languages_url":"https://api.github.com/repos/gliderlabs/registrator/languages","stargazers_url":"https://api.github.com/repos/gliderlabs/registrator/stargazers","contributors_url":"https://api.github.com/repos/gliderlabs/registrator/contributors","subscribers_url":"https://api.github.com/repos/gliderlabs/registrator/subscribers","subscription_url":"https://api.github.com/repos/gliderlabs/registrator/subscription","commits_url":"https://api.github.com/repos/gliderlabs/registrator/commits{/sha}","git_commits_url":"https://api.github.com/repos/gliderlabs/registrator/git/commits{/sha}","comments_url":"https://api.github.com/repos/gliderlabs/registrator/comments{/number}","issue_comment_url":"https://api.github.com/repos/gliderlabs/registrator/issues/comments{/number}","contents_url":"https://api.github.com/repos/gliderlabs/registrator/contents/{+path}","compare_url":"https://api.github.com/repos/gliderlabs/registrator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gliderlabs/registrator/merges","archive_url":"https://api.github.com/repos/gliderlabs/registrator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gliderlabs/registrator/downloads","issues_url":"https://api.github.com/repos/gliderlabs/registrator/issues{/number}","pulls_url":"https://api.github.com/repos/gliderlabs/registrator/pulls{/number}","milestones_url":"https://api.github.com/repos/gliderlabs/registrator/milestones{/number}","notifications_url":"https://api.github.com/repos/gliderlabs/registrator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gliderlabs/registrator/labels{/name}","releases_url":"https://api.github.com/repos/gliderlabs/registrator/releases{/id}","created_at":"2014-07-22T20:36:02Z","updated_at":"2015-08-19T17:44:23Z","pushed_at":"2015-08-19T18:50:51Z","git_url":"git://github.com/gliderlabs/registrator.git","ssh_url":"git@github.com:gliderlabs/registrator.git","clone_url":"https://github.com/gliderlabs/registrator.git","svn_url":"https://github.com/gliderlabs/registrator","homepage":"http://gliderlabs.com/registrator","size":24894,"stargazers_count":1305,"watchers_count":1305,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":225,"mirror_url":null,"open_issues_count":59,"forks":225,"open_issues":59,"watchers":1305,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gliderlabs/registrator/pulls/235"},"html":{"href":"https://github.com/gliderlabs/registrator/pull/235"},"issue":{"href":"https://api.github.com/repos/gliderlabs/registrator/issues/235"},"comments":{"href":"https://api.github.com/repos/gliderlabs/registrator/issues/235/comments"},"review_comments":{"href":"https://api.github.com/repos/gliderlabs/registrator/pulls/235/comments"},"review_comment":{"href":"https://api.github.com/repos/gliderlabs/registrator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gliderlabs/registrator/pulls/235/commits"},"statuses":{"href":"https://api.github.com/repos/gliderlabs/registrator/statuses/d3863e3c5016f382776712fb2c57bc4716a7aa7b"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":33,"deletions":3,"changed_files":4}}