title: Elasticsearch shard allocation
body: <p>I have 1 ES cluster with 3 nodes, 1 index, 3 shards and 2 replica per shard.</p>
  
  <p>For some reason, all my primary shards are located on the same node:</p>
  
  <ul>
  <li>Node 1: replica 0, replica 1, replica 2</li>
  <li>Node 2: replica 0, replica 1, replica 2</li>
  <li>Node 3: primary 0, primary 1, primary 2.</li>
  </ul>
  
  <p>What I should do to rebalance shards? I want to have 1 primary shard per 1 node, for example:</p>
  
  <ul>
  <li>Node 1: primary 0, replica 1, replica 2</li>
  <li>Node 2: replica 0, primary 1, replica 2</li>
  <li>Node 3: replica 0, replica 1, primary 2.</li>
  </ul>