{"action":"created","comment":{"url":"https://api.github.com/repos/elasticsearch/logstash/pulls/comments/22880396","id":22880396,"diff_hunk":"@@ -185,7 +188,13 @@ def congestion_check(key)\n     return if @congestion_threshold == 0\n     if (Time.now.to_i - @congestion_check_times[key]) >= @congestion_interval # Check congestion only if enough time has passed since last check.\n       while @redis.llen(key) > @congestion_threshold # Don't push event to Redis key which has reached @congestion_threshold.\n-        @logger.warn? and @logger.warn(\"Redis key size has hit a congestion threshold #{@congestion_threshold} suspending output for #{@congestion_interval} seconds\")\n+        if @shuffle_hosts\n+          # Switch to different server, and try again.\n+          @logger.warn? and @logger.warn(\"Redis key size has hit a congrestion threshold #{@congestion_threshold} switching to next server.\")","path":"lib/logstash/outputs/redis.rb","position":17,"original_position":17,"commit_id":"d6e73fd3bf797556c566ddf1a76fa81905f6c2ec","original_commit_id":"d6e73fd3bf797556c566ddf1a76fa81905f6c2ec","user":{"login":"jordansissel","id":131818,"avatar_url":"https://avatars.githubusercontent.com/u/131818?v=3","gravatar_id":"","url":"https://api.github.com/users/jordansissel","html_url":"https://github.com/jordansissel","followers_url":"https://api.github.com/users/jordansissel/followers","following_url":"https://api.github.com/users/jordansissel/following{/other_user}","gists_url":"https://api.github.com/users/jordansissel/gists{/gist_id}","starred_url":"https://api.github.com/users/jordansissel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordansissel/subscriptions","organizations_url":"https://api.github.com/users/jordansissel/orgs","repos_url":"https://api.github.com/users/jordansissel/repos","events_url":"https://api.github.com/users/jordansissel/events{/privacy}","received_events_url":"https://api.github.com/users/jordansissel/received_events","type":"User","site_admin":false},"body":"See my contextual logging comment below; same comment here.","created_at":"2015-01-13T17:58:35Z","updated_at":"2015-01-13T17:58:35Z","html_url":"https://github.com/elasticsearch/logstash/pull/1616#discussion_r22880396","pull_request_url":"https://api.github.com/repos/elasticsearch/logstash/pulls/1616","_links":{"self":{"href":"https://api.github.com/repos/elasticsearch/logstash/pulls/comments/22880396"},"html":{"href":"https://github.com/elasticsearch/logstash/pull/1616#discussion_r22880396"},"pull_request":{"href":"https://api.github.com/repos/elasticsearch/logstash/pulls/1616"}}},"pull_request":{"url":"https://api.github.com/repos/elasticsearch/logstash/pulls/1616","id":19516467,"html_url":"https://github.com/elasticsearch/logstash/pull/1616","diff_url":"https://github.com/elasticsearch/logstash/pull/1616.diff","patch_url":"https://github.com/elasticsearch/logstash/pull/1616.patch","issue_url":"https://api.github.com/repos/elasticsearch/logstash/issues/1616","number":1616,"state":"open","locked":false,"title":"Congestion next","user":{"login":"Stolas","id":610753,"avatar_url":"https://avatars.githubusercontent.com/u/610753?v=3","gravatar_id":"","url":"https://api.github.com/users/Stolas","html_url":"https://github.com/Stolas","followers_url":"https://api.github.com/users/Stolas/followers","following_url":"https://api.github.com/users/Stolas/following{/other_user}","gists_url":"https://api.github.com/users/Stolas/gists{/gist_id}","starred_url":"https://api.github.com/users/Stolas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stolas/subscriptions","organizations_url":"https://api.github.com/users/Stolas/orgs","repos_url":"https://api.github.com/users/Stolas/repos","events_url":"https://api.github.com/users/Stolas/events{/privacy}","received_events_url":"https://api.github.com/users/Stolas/received_events","type":"User","site_admin":false},"body":"we had a problem that the queue would lock if one queue is full. This patch switches when a queue is full if a specific config value is set (:congestion_switch) couple of lines so you can easily see my changes. ","created_at":"2014-08-08T09:06:57Z","updated_at":"2015-01-13T17:58:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2616e467365d806ad2246f6223ced06948fe46c8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/elasticsearch/logstash/pulls/1616/commits","review_comments_url":"https://api.github.com/repos/elasticsearch/logstash/pulls/1616/comments","review_comment_url":"https://api.github.com/repos/elasticsearch/logstash/pulls/comments/{number}","comments_url":"https://api.github.com/repos/elasticsearch/logstash/issues/1616/comments","statuses_url":"https://api.github.com/repos/elasticsearch/logstash/statuses/d6e73fd3bf797556c566ddf1a76fa81905f6c2ec","head":{"label":"Stolas:congestion_shuffle","ref":"congestion_shuffle","sha":"d6e73fd3bf797556c566ddf1a76fa81905f6c2ec","user":{"login":"Stolas","id":610753,"avatar_url":"https://avatars.githubusercontent.com/u/610753?v=3","gravatar_id":"","url":"https://api.github.com/users/Stolas","html_url":"https://github.com/Stolas","followers_url":"https://api.github.com/users/Stolas/followers","following_url":"https://api.github.com/users/Stolas/following{/other_user}","gists_url":"https://api.github.com/users/Stolas/gists{/gist_id}","starred_url":"https://api.github.com/users/Stolas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stolas/subscriptions","organizations_url":"https://api.github.com/users/Stolas/orgs","repos_url":"https://api.github.com/users/Stolas/repos","events_url":"https://api.github.com/users/Stolas/events{/privacy}","received_events_url":"https://api.github.com/users/Stolas/received_events","type":"User","site_admin":false},"repo":{"id":22750617,"name":"logstash","full_name":"Stolas/logstash","owner":{"login":"Stolas","id":610753,"avatar_url":"https://avatars.githubusercontent.com/u/610753?v=3","gravatar_id":"","url":"https://api.github.com/users/Stolas","html_url":"https://github.com/Stolas","followers_url":"https://api.github.com/users/Stolas/followers","following_url":"https://api.github.com/users/Stolas/following{/other_user}","gists_url":"https://api.github.com/users/Stolas/gists{/gist_id}","starred_url":"https://api.github.com/users/Stolas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stolas/subscriptions","organizations_url":"https://api.github.com/users/Stolas/orgs","repos_url":"https://api.github.com/users/Stolas/repos","events_url":"https://api.github.com/users/Stolas/events{/privacy}","received_events_url":"https://api.github.com/users/Stolas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Stolas/logstash","description":"logstash - logs/event transport, processing, management, search.","fork":true,"url":"https://api.github.com/repos/Stolas/logstash","forks_url":"https://api.github.com/repos/Stolas/logstash/forks","keys_url":"https://api.github.com/repos/Stolas/logstash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Stolas/logstash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Stolas/logstash/teams","hooks_url":"https://api.github.com/repos/Stolas/logstash/hooks","issue_events_url":"https://api.github.com/repos/Stolas/logstash/issues/events{/number}","events_url":"https://api.github.com/repos/Stolas/logstash/events","assignees_url":"https://api.github.com/repos/Stolas/logstash/assignees{/user}","branches_url":"https://api.github.com/repos/Stolas/logstash/branches{/branch}","tags_url":"https://api.github.com/repos/Stolas/logstash/tags","blobs_url":"https://api.github.com/repos/Stolas/logstash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Stolas/logstash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Stolas/logstash/git/refs{/sha}","trees_url":"https://api.github.com/repos/Stolas/logstash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Stolas/logstash/statuses/{sha}","languages_url":"https://api.github.com/repos/Stolas/logstash/languages","stargazers_url":"https://api.github.com/repos/Stolas/logstash/stargazers","contributors_url":"https://api.github.com/repos/Stolas/logstash/contributors","subscribers_url":"https://api.github.com/repos/Stolas/logstash/subscribers","subscription_url":"https://api.github.com/repos/Stolas/logstash/subscription","commits_url":"https://api.github.com/repos/Stolas/logstash/commits{/sha}","git_commits_url":"https://api.github.com/repos/Stolas/logstash/git/commits{/sha}","comments_url":"https://api.github.com/repos/Stolas/logstash/comments{/number}","issue_comment_url":"https://api.github.com/repos/Stolas/logstash/issues/comments/{number}","contents_url":"https://api.github.com/repos/Stolas/logstash/contents/{+path}","compare_url":"https://api.github.com/repos/Stolas/logstash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Stolas/logstash/merges","archive_url":"https://api.github.com/repos/Stolas/logstash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Stolas/logstash/downloads","issues_url":"https://api.github.com/repos/Stolas/logstash/issues{/number}","pulls_url":"https://api.github.com/repos/Stolas/logstash/pulls{/number}","milestones_url":"https://api.github.com/repos/Stolas/logstash/milestones{/number}","notifications_url":"https://api.github.com/repos/Stolas/logstash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Stolas/logstash/labels{/name}","releases_url":"https://api.github.com/repos/Stolas/logstash/releases{/id}","created_at":"2014-08-08T08:07:57Z","updated_at":"2014-08-08T06:55:05Z","pushed_at":"2014-08-08T09:05:57Z","git_url":"git://github.com/Stolas/logstash.git","ssh_url":"git@github.com:Stolas/logstash.git","clone_url":"https://github.com/Stolas/logstash.git","svn_url":"https://github.com/Stolas/logstash","homepage":"http://logstash.net/","size":69866,"stargazers_count":0,"watchers_count":0,"language":null,"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":"elasticsearch:master","ref":"master","sha":"a536eefad2251f690cab0ba545cedf4d16a21365","user":{"login":"elasticsearch","id":141304,"avatar_url":"https://avatars.githubusercontent.com/u/141304?v=3","gravatar_id":"","url":"https://api.github.com/users/elasticsearch","html_url":"https://github.com/elasticsearch","followers_url":"https://api.github.com/users/elasticsearch/followers","following_url":"https://api.github.com/users/elasticsearch/following{/other_user}","gists_url":"https://api.github.com/users/elasticsearch/gists{/gist_id}","starred_url":"https://api.github.com/users/elasticsearch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elasticsearch/subscriptions","organizations_url":"https://api.github.com/users/elasticsearch/orgs","repos_url":"https://api.github.com/users/elasticsearch/repos","events_url":"https://api.github.com/users/elasticsearch/events{/privacy}","received_events_url":"https://api.github.com/users/elasticsearch/received_events","type":"Organization","site_admin":false},"repo":{"id":1090311,"name":"logstash","full_name":"elasticsearch/logstash","owner":{"login":"elasticsearch","id":141304,"avatar_url":"https://avatars.githubusercontent.com/u/141304?v=3","gravatar_id":"","url":"https://api.github.com/users/elasticsearch","html_url":"https://github.com/elasticsearch","followers_url":"https://api.github.com/users/elasticsearch/followers","following_url":"https://api.github.com/users/elasticsearch/following{/other_user}","gists_url":"https://api.github.com/users/elasticsearch/gists{/gist_id}","starred_url":"https://api.github.com/users/elasticsearch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elasticsearch/subscriptions","organizations_url":"https://api.github.com/users/elasticsearch/orgs","repos_url":"https://api.github.com/users/elasticsearch/repos","events_url":"https://api.github.com/users/elasticsearch/events{/privacy}","received_events_url":"https://api.github.com/users/elasticsearch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elasticsearch/logstash","description":"logstash - logs/event transport, processing, management, search.","fork":false,"url":"https://api.github.com/repos/elasticsearch/logstash","forks_url":"https://api.github.com/repos/elasticsearch/logstash/forks","keys_url":"https://api.github.com/repos/elasticsearch/logstash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elasticsearch/logstash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elasticsearch/logstash/teams","hooks_url":"https://api.github.com/repos/elasticsearch/logstash/hooks","issue_events_url":"https://api.github.com/repos/elasticsearch/logstash/issues/events{/number}","events_url":"https://api.github.com/repos/elasticsearch/logstash/events","assignees_url":"https://api.github.com/repos/elasticsearch/logstash/assignees{/user}","branches_url":"https://api.github.com/repos/elasticsearch/logstash/branches{/branch}","tags_url":"https://api.github.com/repos/elasticsearch/logstash/tags","blobs_url":"https://api.github.com/repos/elasticsearch/logstash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elasticsearch/logstash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elasticsearch/logstash/git/refs{/sha}","trees_url":"https://api.github.com/repos/elasticsearch/logstash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elasticsearch/logstash/statuses/{sha}","languages_url":"https://api.github.com/repos/elasticsearch/logstash/languages","stargazers_url":"https://api.github.com/repos/elasticsearch/logstash/stargazers","contributors_url":"https://api.github.com/repos/elasticsearch/logstash/contributors","subscribers_url":"https://api.github.com/repos/elasticsearch/logstash/subscribers","subscription_url":"https://api.github.com/repos/elasticsearch/logstash/subscription","commits_url":"https://api.github.com/repos/elasticsearch/logstash/commits{/sha}","git_commits_url":"https://api.github.com/repos/elasticsearch/logstash/git/commits{/sha}","comments_url":"https://api.github.com/repos/elasticsearch/logstash/comments{/number}","issue_comment_url":"https://api.github.com/repos/elasticsearch/logstash/issues/comments/{number}","contents_url":"https://api.github.com/repos/elasticsearch/logstash/contents/{+path}","compare_url":"https://api.github.com/repos/elasticsearch/logstash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elasticsearch/logstash/merges","archive_url":"https://api.github.com/repos/elasticsearch/logstash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elasticsearch/logstash/downloads","issues_url":"https://api.github.com/repos/elasticsearch/logstash/issues{/number}","pulls_url":"https://api.github.com/repos/elasticsearch/logstash/pulls{/number}","milestones_url":"https://api.github.com/repos/elasticsearch/logstash/milestones{/number}","notifications_url":"https://api.github.com/repos/elasticsearch/logstash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elasticsearch/logstash/labels{/name}","releases_url":"https://api.github.com/repos/elasticsearch/logstash/releases{/id}","created_at":"2010-11-18T01:31:50Z","updated_at":"2015-01-13T17:02:10Z","pushed_at":"2015-01-12T18:23:12Z","git_url":"git://github.com/elasticsearch/logstash.git","ssh_url":"git@github.com:elasticsearch/logstash.git","clone_url":"https://github.com/elasticsearch/logstash.git","svn_url":"https://github.com/elasticsearch/logstash","homepage":"http://logstash.net/","size":85707,"stargazers_count":3515,"watchers_count":3515,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1315,"mirror_url":null,"open_issues_count":572,"forks":1315,"open_issues":572,"watchers":3515,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elasticsearch/logstash/pulls/1616"},"html":{"href":"https://github.com/elasticsearch/logstash/pull/1616"},"issue":{"href":"https://api.github.com/repos/elasticsearch/logstash/issues/1616"},"comments":{"href":"https://api.github.com/repos/elasticsearch/logstash/issues/1616/comments"},"review_comments":{"href":"https://api.github.com/repos/elasticsearch/logstash/pulls/1616/comments"},"review_comment":{"href":"https://api.github.com/repos/elasticsearch/logstash/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/elasticsearch/logstash/pulls/1616/commits"},"statuses":{"href":"https://api.github.com/repos/elasticsearch/logstash/statuses/d6e73fd3bf797556c566ddf1a76fa81905f6c2ec"}}}}