{"action":"closed","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/11122","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/11122/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/11122/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/11122/events","html_url":"https://github.com/elastic/elasticsearch/issues/11122","id":75629414,"number":11122,"title":"Shard allocation should work harder to balance new shards across multiple path.data paths","user":{"login":"mikemccand","id":796508,"avatar_url":"https://avatars.githubusercontent.com/u/796508?v=3","gravatar_id":"","url":"https://api.github.com/users/mikemccand","html_url":"https://github.com/mikemccand","followers_url":"https://api.github.com/users/mikemccand/followers","following_url":"https://api.github.com/users/mikemccand/following{/other_user}","gists_url":"https://api.github.com/users/mikemccand/gists{/gist_id}","starred_url":"https://api.github.com/users/mikemccand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikemccand/subscriptions","organizations_url":"https://api.github.com/users/mikemccand/orgs","repos_url":"https://api.github.com/users/mikemccand/repos","events_url":"https://api.github.com/users/mikemccand/events{/privacy}","received_events_url":"https://api.github.com/users/mikemccand/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Core","name":":Core","color":"009800"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/blocker","name":"blocker","color":"e11d21"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/bug","name":"bug","color":"9e2c2c"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/v2.0.0","name":"v2.0.0","color":"dddddd"}],"state":"closed","locked":false,"assignee":{"login":"mikemccand","id":796508,"avatar_url":"https://avatars.githubusercontent.com/u/796508?v=3","gravatar_id":"","url":"https://api.github.com/users/mikemccand","html_url":"https://github.com/mikemccand","followers_url":"https://api.github.com/users/mikemccand/followers","following_url":"https://api.github.com/users/mikemccand/following{/other_user}","gists_url":"https://api.github.com/users/mikemccand/gists{/gist_id}","starred_url":"https://api.github.com/users/mikemccand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikemccand/subscriptions","organizations_url":"https://api.github.com/users/mikemccand/orgs","repos_url":"https://api.github.com/users/mikemccand/repos","events_url":"https://api.github.com/users/mikemccand/events{/privacy}","received_events_url":"https://api.github.com/users/mikemccand/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-05-12T14:50:45Z","updated_at":"2015-06-17T14:28:34Z","closed_at":"2015-06-17T14:28:34Z","body":"In 2.0 as of #10461 we now allocate each shard on a node to whichever path.data has the most free space at the moment the shard is assigned to the node.\r\n\r\nBut in the case when a new node just started up, and suddenly gets a bunch of new shards assigned (new index), we will put all those shards onto a single path (the one with the most free space at that moment).\r\n\r\nI saw this happen on a node that had 2 identically sized SSDs on the path.data, but on one of them I had installed ES so it had a wee bit less disk space, and then all 5 shards of my new index were assigned to the other SSD."}}