{"action":"created","issue":{"url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/9023","labels_url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/9023/labels{/name}","comments_url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/9023/comments","events_url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/9023/events","html_url":"https://github.com/elasticsearch/elasticsearch/issues/9023","id":52614393,"number":9023,"title":"Odd shard distribution in Elasticsearch 1.4.2","user":{"login":"vichargrave","id":260028,"avatar_url":"https://avatars.githubusercontent.com/u/260028?v=3","gravatar_id":"","url":"https://api.github.com/users/vichargrave","html_url":"https://github.com/vichargrave","followers_url":"https://api.github.com/users/vichargrave/followers","following_url":"https://api.github.com/users/vichargrave/following{/other_user}","gists_url":"https://api.github.com/users/vichargrave/gists{/gist_id}","starred_url":"https://api.github.com/users/vichargrave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vichargrave/subscriptions","organizations_url":"https://api.github.com/users/vichargrave/orgs","repos_url":"https://api.github.com/users/vichargrave/repos","events_url":"https://api.github.com/users/vichargrave/events{/privacy}","received_events_url":"https://api.github.com/users/vichargrave/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elasticsearch/elasticsearch/labels/feedback_needed","name":"feedback_needed","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2014-12-22T02:14:49Z","updated_at":"2015-01-02T22:27:11Z","closed_at":null,"body":"I'm using a 4 node Elasticsearch cluster to ingest tweets from one of the public Twitter streams.  After upgrading my from 1.3.2 to 1.4.2 I'm noticing an odd behavior with respect to how shards are distributed across the nodes.  Whereas with 1.3.2 the 5 primary shards and 1 replica set of shards were evenly distributed across all 4 nodes, now I'm seeing this behavior:\r\n\r\n1. All the primary shards are saved to one node\r\n2. The replicas are split between two other nodes\r\n3. The fourth node receives no shards at all\r\n\r\nI'm using default values for these settings:\r\n\r\ncluster.routing.allocation.balance.shard\r\ncluster.routing.allocation.balance.index\r\ncluster.routing.allocation.balance.primary\r\ncluster.routing.allocation.balance.threshold\r\n\r\nHowever I've set cluster.routing.allocation.balance.shard to 0.6f and cluster.routing.allocation.balance.primary to 0.06f in the hope that these settings will coerce Elasticsearch to distribute the shards more evenly.   \r\n\r\nIs this issue a bug?\r\n "},"comment":{"url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/comments/68568585","html_url":"https://github.com/elasticsearch/elasticsearch/issues/9023#issuecomment-68568585","issue_url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/9023","id":68568585,"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},"created_at":"2015-01-02T22:27:11Z","updated_at":"2015-01-02T22:27:11Z","body":"sure `simon at elasticsearch DOT com`"}}