I am trying to setup Shard Allocation using multiple includes, although the
behavior is not what I would expect. I have read through the docs and
searched through the group, but I can't seem to figure out what I am doing
wrong. The following is the setup and some examples of what happened vs
what I expected when trying to allocate shards. If anyone has any insight
into this it would be greatly appreciated.
Three nodes set up the following way:
When created my index Initially the shards are split evenly between nodes,
since I have no allocation setup [Expected]...but then things get strange...
- I setup the index to include 'nodeNum:1', then all shards go to NODE1
- I then add include 'nodeAlpha:A', and the shards split up between NODE0
[Expected] - I would expect the shards not to move as we now have include =
'nodeNum:1' & 'nodeAlpha:A', which would include all nodes
- If I then change the first include to 'nodeNum:0', the shards don't move
[Expected] - I would expect the shards all to go to NODE0 as we now have
include = 'nodeNum:0' & 'nodeAlpha:A', which are both settings for NODE0