Hi David and thank you for replying. This is the output from the cluster allocation explain API:
{
"decider" : "same_shard",
"decision" : "NO",
"explanation" : "a copy of this shard is already allocated to this node [[test_index-000002][0], node[6NlWny21g5SdCMUzGtlcgWaszSQ], [P], s[STARTED], a[id=_AZRb0yaTJWOncpxzpNB0dsy8Q]]"
},
{
"decider" : "awareness",
"decision" : "NO",
"explanation" : "there are too many copies of the shard allocated to nodes with attribute [logical_availability_zone], there are [2] total configured shard copies for this shard id and [2] total attribute values, expected the allocated shard count per attribute [2] to be less than or equal to the upper bound of the required number of shards per attribute [1]"
}
It is pretty intuitive why this happened, but I don't know how to solve it.