{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/18467","repository_url":"https://api.github.com/repos/elastic/elasticsearch","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/18467/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/18467/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/18467/events","html_url":"https://github.com/elastic/elasticsearch/pull/18467","id":155765302,"number":18467,"title":"Limit retries of failed allocations per index","user":{"login":"s1monw","id":973334,"avatar_url":"https://avatars.githubusercontent.com/u/973334?v=3","gravatar_id":"","url":"https://api.github.com/users/s1monw","html_url":"https://github.com/s1monw","followers_url":"https://api.github.com/users/s1monw/followers","following_url":"https://api.github.com/users/s1monw/following{/other_user}","gists_url":"https://api.github.com/users/s1monw/gists{/gist_id}","starred_url":"https://api.github.com/users/s1monw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s1monw/subscriptions","organizations_url":"https://api.github.com/users/s1monw/orgs","repos_url":"https://api.github.com/users/s1monw/repos","events_url":"https://api.github.com/users/s1monw/events{/privacy}","received_events_url":"https://api.github.com/users/s1monw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Allocation","name":":Allocation","color":"009800"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/enhancement","name":"enhancement","color":"4a4ea8"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/resiliency","name":"resiliency","color":"009800"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/review","name":"review","color":"0052cc"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/v5.0.0","name":"v5.0.0","color":"dddddd"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-05-19T15:26:07Z","updated_at":"2016-05-20T10:06:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/elastic/elasticsearch/pulls/18467","html_url":"https://github.com/elastic/elasticsearch/pull/18467","diff_url":"https://github.com/elastic/elasticsearch/pull/18467.diff","patch_url":"https://github.com/elastic/elasticsearch/pull/18467.patch"},"body":"Today if a shard fails during initialization phase due to misconfiguration, broken disks,\r\nmissing analyzers, not installed plugins etc. elasticsaerch keeps on trying to initialize\r\nor rather allocate that shard. Yet, in the worst case scenario this ends in an endless\r\nallocation loop. To prevent this loop and all it's sideeffects like spamming log files over\r\nand over again this commit adds an allocation decider that stops allocating a shard that\r\nfailed more than N times in a row to allocate. The number or retries can be configured via\r\n`index.allocation.max_retry` and it's default is set to `5`. Once the setting is updated\r\nshards with less failures than the number set per index will be allowed to allocate again.\r\n\r\nInternally we maintain a counter on the UnassignedInfo that is reset to `0` once the shards\r\nhas been started.\r\n\r\nRelates to #18417"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/220567219","html_url":"https://github.com/elastic/elasticsearch/pull/18467#issuecomment-220567219","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/18467","id":220567219,"user":{"login":"ywelsch","id":3718355,"avatar_url":"https://avatars.githubusercontent.com/u/3718355?v=3","gravatar_id":"","url":"https://api.github.com/users/ywelsch","html_url":"https://github.com/ywelsch","followers_url":"https://api.github.com/users/ywelsch/followers","following_url":"https://api.github.com/users/ywelsch/following{/other_user}","gists_url":"https://api.github.com/users/ywelsch/gists{/gist_id}","starred_url":"https://api.github.com/users/ywelsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ywelsch/subscriptions","organizations_url":"https://api.github.com/users/ywelsch/orgs","repos_url":"https://api.github.com/users/ywelsch/repos","events_url":"https://api.github.com/users/ywelsch/events{/privacy}","received_events_url":"https://api.github.com/users/ywelsch/received_events","type":"User","site_admin":false},"created_at":"2016-05-20T10:06:25Z","updated_at":"2016-05-20T10:06:25Z","body":"Found a small issue. LGTM after fixing this. Thanks @s1monw!"}}
{"actor":{"display_login":"ywelsch"}}