ES version - 6.8
Setup - 3 nodes with default rack_id
I am trying to logically separate out clusters inside the single cluster by using the rack_id awareness attribute, the problem I am facing is that only one shard is getting assigned per node within the default rack (which has 3 nodes).
If we want to have multiple shards of an index on a single node, is there any way of doing it?
{
"index" : "racktest3",
"shard" : 0,
"primary" : false,
"current_state" : "unassigned",
"unassigned_info" : {
"reason" : "INDEX_CREATED",
"at" : "2021-07-28T04:36:12.746Z",
"last_allocation_status" : "no_attempt"
},
"can_allocate" : "no",
"allocate_explanation" : "cannot allocate because allocation is not permitted to any of the nodes",
"node_allocation_decisions" : [
{
"node_id" : "Jq9ziPd6RNCu84sp62Es8Q",
"node_name" : "NODE1",
"transport_address" : "NODE1:9300",
"node_attributes" : {
"rack_id" : "default",
"xpack.installed" : "true"
},
"node_decision" : "no",
"weight_ranking" : 1,
"deciders" : [
{
"decider" : "same_shard",
"decision" : "NO",
"explanation" : "the shard cannot be allocated to the same node on which a copy of the shard already exists [[racktest3][0], node[Jq9ziPd6RNCu84sp62Es8Q], [P], s[STARTED], a[id=7NrHDQGEQ7aBXCUa4UdZzw]]"
}
]
},
{
"node_id" : "R5zPkbcXRRKCYXpDCscxKA",
"node_name" : "NODE2",
"transport_address" : "NODE2:9300",
"node_attributes" : {
"rack_id" : "default",
"xpack.installed" : "true"
},
"node_decision" : "no",
"weight_ranking" : 2,
"deciders" : [
{
"decider" : "same_shard",
"decision" : "NO",
"explanation" : "the shard cannot be allocated to the same node on which a copy of the shard already exists [[racktest3][0], node[R5zPkbcXRRKCYXpDCscxKA], [R], s[STARTED], a[id=9IAhcRAWReO9vSsf_uBDag]]"
}
]
},
{
"node_id" : "J3wOYnrrTJm4yQuuK4iU7g",
"node_name" : "NODE3",
"transport_address" : "NODE3:9300",
"node_attributes" : {
"rack_id" : "default",
"xpack.installed" : "true"
},
"node_decision" : "no",
"weight_ranking" : 3,
"deciders" : [
{
"decider" : "same_shard",
"decision" : "NO",
"explanation" : "the shard cannot be allocated to the same node on which a copy of the shard already exists [[racktest3][0], node[J3wOYnrrTJm4yQuuK4iU7g], [R], s[STARTED], a[id=ZmZ--EYkQPSjuYMAw9fzCA]]"
}
]
}
]
}