{"action":"created","comment":{"url":"https://api.github.com/repos/karafka/karafka/pulls/comments/51188679","id":51188679,"diff_hunk":"@@ -134,6 +134,10 @@ There are several env settings you can use:\n | KARAFKA_ENV       | development     | In what mode this application should boot (production/development/test/etc)   |\n | KARAFKA_BOOT_FILE | app_root/app.rb | Path to a file that contains Karafka app configuration and booting procedures |\n \n+### Kafka brokers auto-discovery\n+\n+Karafka supports Kafka brokers auto-discovery during both startup and runtime. It means that **zookeeper_hosts** option allows Karafka to get all the details it needs about Kafka brokers, first during boot and after each failure. If something happens to a connection on which we werelistening (or if we cannot connect to a given broker), Karafka will refresh list of available brokers. This allows it to be aware of changes that happen in the infrastructure (adding and removing nodes) and allows it to be up and running as long as Zookeeper is able to provide it all the required informations.\n+","path":"README.md","position":51,"original_position":51,"commit_id":"a1b11c34e586b3966c058429814f6b9878a24e4b","original_commit_id":"a1b11c34e586b3966c058429814f6b9878a24e4b","user":{"login":"pavlo-vavruk","id":6217914,"avatar_url":"https://avatars.githubusercontent.com/u/6217914?v=3","gravatar_id":"","url":"https://api.github.com/users/pavlo-vavruk","html_url":"https://github.com/pavlo-vavruk","followers_url":"https://api.github.com/users/pavlo-vavruk/followers","following_url":"https://api.github.com/users/pavlo-vavruk/following{/other_user}","gists_url":"https://api.github.com/users/pavlo-vavruk/gists{/gist_id}","starred_url":"https://api.github.com/users/pavlo-vavruk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavlo-vavruk/subscriptions","organizations_url":"https://api.github.com/users/pavlo-vavruk/orgs","repos_url":"https://api.github.com/users/pavlo-vavruk/repos","events_url":"https://api.github.com/users/pavlo-vavruk/events{/privacy}","received_events_url":"https://api.github.com/users/pavlo-vavruk/received_events","type":"User","site_admin":false},"body":"werelistening => were listening\r\ninformations => information","created_at":"2016-01-28T21:16:02Z","updated_at":"2016-01-28T21:16:02Z","html_url":"https://github.com/karafka/karafka/pull/62#discussion_r51188679","pull_request_url":"https://api.github.com/repos/karafka/karafka/pulls/62","_links":{"self":{"href":"https://api.github.com/repos/karafka/karafka/pulls/comments/51188679"},"html":{"href":"https://github.com/karafka/karafka/pull/62#discussion_r51188679"},"pull_request":{"href":"https://api.github.com/repos/karafka/karafka/pulls/62"}}},"pull_request":{"url":"https://api.github.com/repos/karafka/karafka/pulls/62","id":57537538,"html_url":"https://github.com/karafka/karafka/pull/62","diff_url":"https://github.com/karafka/karafka/pull/62.diff","patch_url":"https://github.com/karafka/karafka/pull/62.patch","issue_url":"https://api.github.com/repos/karafka/karafka/issues/62","number":62,"state":"open","locked":false,"title":"Discovery","user":{"login":"mensfeld","id":392754,"avatar_url":"https://avatars.githubusercontent.com/u/392754?v=3","gravatar_id":"","url":"https://api.github.com/users/mensfeld","html_url":"https://github.com/mensfeld","followers_url":"https://api.github.com/users/mensfeld/followers","following_url":"https://api.github.com/users/mensfeld/following{/other_user}","gists_url":"https://api.github.com/users/mensfeld/gists{/gist_id}","starred_url":"https://api.github.com/users/mensfeld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mensfeld/subscriptions","organizations_url":"https://api.github.com/users/mensfeld/orgs","repos_url":"https://api.github.com/users/mensfeld/repos","events_url":"https://api.github.com/users/mensfeld/events{/privacy}","received_events_url":"https://api.github.com/users/mensfeld/received_events","type":"User","site_admin":false},"body":"@agwozdowski  @pavlo-vavruk have fun :)","created_at":"2016-01-28T17:40:04Z","updated_at":"2016-01-28T21:16:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f2ebdbc852ea2bcb4f45c2f9041dcc8b2330bd0","assignee":{"login":"agwozdowski","id":10708382,"avatar_url":"https://avatars.githubusercontent.com/u/10708382?v=3","gravatar_id":"","url":"https://api.github.com/users/agwozdowski","html_url":"https://github.com/agwozdowski","followers_url":"https://api.github.com/users/agwozdowski/followers","following_url":"https://api.github.com/users/agwozdowski/following{/other_user}","gists_url":"https://api.github.com/users/agwozdowski/gists{/gist_id}","starred_url":"https://api.github.com/users/agwozdowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agwozdowski/subscriptions","organizations_url":"https://api.github.com/users/agwozdowski/orgs","repos_url":"https://api.github.com/users/agwozdowski/repos","events_url":"https://api.github.com/users/agwozdowski/events{/privacy}","received_events_url":"https://api.github.com/users/agwozdowski/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/karafka/karafka/pulls/62/commits","review_comments_url":"https://api.github.com/repos/karafka/karafka/pulls/62/comments","review_comment_url":"https://api.github.com/repos/karafka/karafka/pulls/comments{/number}","comments_url":"https://api.github.com/repos/karafka/karafka/issues/62/comments","statuses_url":"https://api.github.com/repos/karafka/karafka/statuses/a1b11c34e586b3966c058429814f6b9878a24e4b","head":{"label":"karafka:discovery","ref":"discovery","sha":"a1b11c34e586b3966c058429814f6b9878a24e4b","user":{"login":"karafka","id":13313336,"avatar_url":"https://avatars.githubusercontent.com/u/13313336?v=3","gravatar_id":"","url":"https://api.github.com/users/karafka","html_url":"https://github.com/karafka","followers_url":"https://api.github.com/users/karafka/followers","following_url":"https://api.github.com/users/karafka/following{/other_user}","gists_url":"https://api.github.com/users/karafka/gists{/gist_id}","starred_url":"https://api.github.com/users/karafka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karafka/subscriptions","organizations_url":"https://api.github.com/users/karafka/orgs","repos_url":"https://api.github.com/users/karafka/repos","events_url":"https://api.github.com/users/karafka/events{/privacy}","received_events_url":"https://api.github.com/users/karafka/received_events","type":"Organization","site_admin":false},"repo":{"id":39947871,"name":"karafka","full_name":"karafka/karafka","owner":{"login":"karafka","id":13313336,"avatar_url":"https://avatars.githubusercontent.com/u/13313336?v=3","gravatar_id":"","url":"https://api.github.com/users/karafka","html_url":"https://github.com/karafka","followers_url":"https://api.github.com/users/karafka/followers","following_url":"https://api.github.com/users/karafka/following{/other_user}","gists_url":"https://api.github.com/users/karafka/gists{/gist_id}","starred_url":"https://api.github.com/users/karafka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karafka/subscriptions","organizations_url":"https://api.github.com/users/karafka/orgs","repos_url":"https://api.github.com/users/karafka/repos","events_url":"https://api.github.com/users/karafka/events{/privacy}","received_events_url":"https://api.github.com/users/karafka/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/karafka/karafka","description":"Microframework used to simplify Apache Kafka based Ruby applications development","fork":false,"url":"https://api.github.com/repos/karafka/karafka","forks_url":"https://api.github.com/repos/karafka/karafka/forks","keys_url":"https://api.github.com/repos/karafka/karafka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/karafka/karafka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/karafka/karafka/teams","hooks_url":"https://api.github.com/repos/karafka/karafka/hooks","issue_events_url":"https://api.github.com/repos/karafka/karafka/issues/events{/number}","events_url":"https://api.github.com/repos/karafka/karafka/events","assignees_url":"https://api.github.com/repos/karafka/karafka/assignees{/user}","branches_url":"https://api.github.com/repos/karafka/karafka/branches{/branch}","tags_url":"https://api.github.com/repos/karafka/karafka/tags","blobs_url":"https://api.github.com/repos/karafka/karafka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/karafka/karafka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/karafka/karafka/git/refs{/sha}","trees_url":"https://api.github.com/repos/karafka/karafka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/karafka/karafka/statuses/{sha}","languages_url":"https://api.github.com/repos/karafka/karafka/languages","stargazers_url":"https://api.github.com/repos/karafka/karafka/stargazers","contributors_url":"https://api.github.com/repos/karafka/karafka/contributors","subscribers_url":"https://api.github.com/repos/karafka/karafka/subscribers","subscription_url":"https://api.github.com/repos/karafka/karafka/subscription","commits_url":"https://api.github.com/repos/karafka/karafka/commits{/sha}","git_commits_url":"https://api.github.com/repos/karafka/karafka/git/commits{/sha}","comments_url":"https://api.github.com/repos/karafka/karafka/comments{/number}","issue_comment_url":"https://api.github.com/repos/karafka/karafka/issues/comments{/number}","contents_url":"https://api.github.com/repos/karafka/karafka/contents/{+path}","compare_url":"https://api.github.com/repos/karafka/karafka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/karafka/karafka/merges","archive_url":"https://api.github.com/repos/karafka/karafka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/karafka/karafka/downloads","issues_url":"https://api.github.com/repos/karafka/karafka/issues{/number}","pulls_url":"https://api.github.com/repos/karafka/karafka/pulls{/number}","milestones_url":"https://api.github.com/repos/karafka/karafka/milestones{/number}","notifications_url":"https://api.github.com/repos/karafka/karafka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/karafka/karafka/labels{/name}","releases_url":"https://api.github.com/repos/karafka/karafka/releases{/id}","deployments_url":"https://api.github.com/repos/karafka/karafka/deployments","created_at":"2015-07-30T11:49:27Z","updated_at":"2016-01-27T17:10:44Z","pushed_at":"2016-01-28T17:40:04Z","git_url":"git://github.com/karafka/karafka.git","ssh_url":"git@github.com:karafka/karafka.git","clone_url":"https://github.com/karafka/karafka.git","svn_url":"https://github.com/karafka/karafka","homepage":"","size":446,"stargazers_count":136,"watchers_count":136,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":5,"forks":5,"open_issues":5,"watchers":136,"default_branch":"master"}},"base":{"label":"karafka:master","ref":"master","sha":"5299f606081f63ad4339c29980291e9d66d11713","user":{"login":"karafka","id":13313336,"avatar_url":"https://avatars.githubusercontent.com/u/13313336?v=3","gravatar_id":"","url":"https://api.github.com/users/karafka","html_url":"https://github.com/karafka","followers_url":"https://api.github.com/users/karafka/followers","following_url":"https://api.github.com/users/karafka/following{/other_user}","gists_url":"https://api.github.com/users/karafka/gists{/gist_id}","starred_url":"https://api.github.com/users/karafka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karafka/subscriptions","organizations_url":"https://api.github.com/users/karafka/orgs","repos_url":"https://api.github.com/users/karafka/repos","events_url":"https://api.github.com/users/karafka/events{/privacy}","received_events_url":"https://api.github.com/users/karafka/received_events","type":"Organization","site_admin":false},"repo":{"id":39947871,"name":"karafka","full_name":"karafka/karafka","owner":{"login":"karafka","id":13313336,"avatar_url":"https://avatars.githubusercontent.com/u/13313336?v=3","gravatar_id":"","url":"https://api.github.com/users/karafka","html_url":"https://github.com/karafka","followers_url":"https://api.github.com/users/karafka/followers","following_url":"https://api.github.com/users/karafka/following{/other_user}","gists_url":"https://api.github.com/users/karafka/gists{/gist_id}","starred_url":"https://api.github.com/users/karafka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karafka/subscriptions","organizations_url":"https://api.github.com/users/karafka/orgs","repos_url":"https://api.github.com/users/karafka/repos","events_url":"https://api.github.com/users/karafka/events{/privacy}","received_events_url":"https://api.github.com/users/karafka/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/karafka/karafka","description":"Microframework used to simplify Apache Kafka based Ruby applications development","fork":false,"url":"https://api.github.com/repos/karafka/karafka","forks_url":"https://api.github.com/repos/karafka/karafka/forks","keys_url":"https://api.github.com/repos/karafka/karafka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/karafka/karafka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/karafka/karafka/teams","hooks_url":"https://api.github.com/repos/karafka/karafka/hooks","issue_events_url":"https://api.github.com/repos/karafka/karafka/issues/events{/number}","events_url":"https://api.github.com/repos/karafka/karafka/events","assignees_url":"https://api.github.com/repos/karafka/karafka/assignees{/user}","branches_url":"https://api.github.com/repos/karafka/karafka/branches{/branch}","tags_url":"https://api.github.com/repos/karafka/karafka/tags","blobs_url":"https://api.github.com/repos/karafka/karafka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/karafka/karafka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/karafka/karafka/git/refs{/sha}","trees_url":"https://api.github.com/repos/karafka/karafka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/karafka/karafka/statuses/{sha}","languages_url":"https://api.github.com/repos/karafka/karafka/languages","stargazers_url":"https://api.github.com/repos/karafka/karafka/stargazers","contributors_url":"https://api.github.com/repos/karafka/karafka/contributors","subscribers_url":"https://api.github.com/repos/karafka/karafka/subscribers","subscription_url":"https://api.github.com/repos/karafka/karafka/subscription","commits_url":"https://api.github.com/repos/karafka/karafka/commits{/sha}","git_commits_url":"https://api.github.com/repos/karafka/karafka/git/commits{/sha}","comments_url":"https://api.github.com/repos/karafka/karafka/comments{/number}","issue_comment_url":"https://api.github.com/repos/karafka/karafka/issues/comments{/number}","contents_url":"https://api.github.com/repos/karafka/karafka/contents/{+path}","compare_url":"https://api.github.com/repos/karafka/karafka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/karafka/karafka/merges","archive_url":"https://api.github.com/repos/karafka/karafka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/karafka/karafka/downloads","issues_url":"https://api.github.com/repos/karafka/karafka/issues{/number}","pulls_url":"https://api.github.com/repos/karafka/karafka/pulls{/number}","milestones_url":"https://api.github.com/repos/karafka/karafka/milestones{/number}","notifications_url":"https://api.github.com/repos/karafka/karafka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/karafka/karafka/labels{/name}","releases_url":"https://api.github.com/repos/karafka/karafka/releases{/id}","deployments_url":"https://api.github.com/repos/karafka/karafka/deployments","created_at":"2015-07-30T11:49:27Z","updated_at":"2016-01-27T17:10:44Z","pushed_at":"2016-01-28T17:40:04Z","git_url":"git://github.com/karafka/karafka.git","ssh_url":"git@github.com:karafka/karafka.git","clone_url":"https://github.com/karafka/karafka.git","svn_url":"https://github.com/karafka/karafka","homepage":"","size":446,"stargazers_count":136,"watchers_count":136,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":5,"forks":5,"open_issues":5,"watchers":136,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/karafka/karafka/pulls/62"},"html":{"href":"https://github.com/karafka/karafka/pull/62"},"issue":{"href":"https://api.github.com/repos/karafka/karafka/issues/62"},"comments":{"href":"https://api.github.com/repos/karafka/karafka/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/karafka/karafka/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/karafka/karafka/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/karafka/karafka/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/karafka/karafka/statuses/a1b11c34e586b3966c058429814f6b9878a24e4b"}}}}