GET _nodes/type:data
{
"_nodes" : {
"total" : 1,
"successful" : 1,
"failed" : 0
},
"cluster_name" : "elasticsearch-staging",
"nodes" : {
"5Sl5vunZSAu8JSzX-BNqjQ" : {
"name" : "elasticsearch-staging-es-data-0",
"transport_address" : "10.0.4.22:9300",
"host" : "10.0.4.22",
"ip" : "10.0.4.22",
"version" : "7.16.2",
"build_flavor" : "default",
"build_type" : "docker",
"build_hash" : "2b937c44140b6559905130a8650c64dbd0879cfb",
"total_indexing_buffer" : 214748364,
"roles" : [
"data",
"data_cold",
"data_content",
"data_frozen",
"data_hot",
"data_warm",
"ingest",
"master",
"ml",
"remote_cluster_client",
"transform"
],
"attributes" : {
"k8s_node_name" : "ip-10-0-4-99.us-east-2.compute.internal",
"ml.machine_memory" : "4294967296",
"xpack.installed" : "true",
"transform.node" : "true",
"ml.max_open_jobs" : "512",
"ml.max_jvm_size" : "2147483648",
"type" : "data"
},
....
GET _nodes/type:default
{
"_nodes" : {
"total" : 1,
"successful" : 1,
"failed" : 0
},
"cluster_name" : "elasticsearch-staging",
"nodes" : {
"wjLRod1ESg-rwpyHRg5K2w" : {
"name" : "elasticsearch-staging-es-default-0",
"transport_address" : "10.0.1.167:9300",
"host" : "10.0.1.167",
"ip" : "10.0.1.167",
"version" : "7.16.2",
"build_flavor" : "default",
"build_type" : "docker",
"build_hash" : "2b937c44140b6559905130a8650c64dbd0879cfb",
"total_indexing_buffer" : 214748364,
"roles" : [
"data",
"data_cold",
"data_content",
"data_frozen",
"data_hot",
"data_warm",
"ingest",
"master",
"ml",
"remote_cluster_client",
"transform"
],
"attributes" : {
"k8s_node_name" : "ip-10-0-1-215.us-east-2.compute.internal",
"ml.machine_memory" : "4294967296",
"xpack.installed" : "true",
"transform.node" : "true",
"ml.max_open_jobs" : "512",
"ml.max_jvm_size" : "2147483648",
"type" : "default"
},
...
GET /_cluster/allocation/explain
{
"index": "search_index_2",
"shard": 0,
"primary": true
}
{
"index" : "search_index_2",
"shard" : 0,
"primary" : true,
"current_state" : "started",
"current_node" : {
"id" : "5Sl5vunZSAu8JSzX-BNqjQ",
"name" : "elasticsearch-staging-es-data-0",
"transport_address" : "10.0.4.22:9300",
"attributes" : {
"k8s_node_name" : "ip-10-0-4-99.us-east-2.compute.internal",
"ml.machine_memory" : "4294967296",
"xpack.installed" : "true",
"transform.node" : "true",
"ml.max_open_jobs" : "512",
"ml.max_jvm_size" : "2147483648",
"type" : "data"
}
},
"can_remain_on_current_node" : "no",
"can_remain_decisions" : [
{
"decider" : "filter",
"decision" : "NO",
"explanation" : """node does not match index setting [index.routing.allocation.require] filters [type:"default"]"""
}
],
"can_move_to_other_node" : "no",
"move_explanation" : "cannot move shard to another node, even though it is not allowed to remain on its current node",
"node_allocation_decisions" : [
{
"node_id" : "I4JjWB9YQ7SaWbyV2leB3w",
"node_name" : "elasticsearch-staging-es-logging-0",
"transport_address" : "10.0.1.209:9300",
"node_attributes" : {
"k8s_node_name" : "ip-10-0-1-54.us-east-2.compute.internal",
"ml.machine_memory" : "4294967296",
"xpack.installed" : "true",
"transform.node" : "true",
"ml.max_open_jobs" : "512",
"ml.max_jvm_size" : "2147483648",
"type" : "logging"
},
"node_decision" : "no",
"weight_ranking" : 1,
"deciders" : [
{
"decider" : "filter",
"decision" : "NO",
"explanation" : """node does not match index setting [index.routing.allocation.require] filters [type:"default"]"""
}
]
},
{
"node_id" : "wjLRod1ESg-rwpyHRg5K2w",
"node_name" : "elasticsearch-staging-es-default-0",
"transport_address" : "10.0.1.167:9300",
"node_attributes" : {
"k8s_node_name" : "ip-10-0-1-215.us-east-2.compute.internal",
"ml.machine_memory" : "4294967296",
"xpack.installed" : "true",
"transform.node" : "true",
"ml.max_open_jobs" : "512",
"ml.max_jvm_size" : "2147483648",
"type" : "default"
},
"node_decision" : "no",
"weight_ranking" : 2,
"deciders" : [
{
"decider" : "same_shard",
"decision" : "NO",
"explanation" : "a copy of this shard is already allocated to this node [[search_index_2][0], node[wjLRod1ESg-rwpyHRg5K2w], [R], s[STARTED], a[id=iY556ql0TDqCE-pP0SwHAQ]]"
},
{
"decider" : "awareness",
"decision" : "NO",
"explanation" : "there are [2] copies of this shard and [3] values for attribute [k8s_node_name] ([ip-10-0-1-215.us-east-2.compute.internal, ip-10-0-1-54.us-east-2.compute.internal, ip-10-0-4-99.us-east-2.compute.internal] from nodes in the cluster and no forced awareness) so there may be at most [1] copies of this shard allocated to nodes with each value, but (including this copy) there would be [2] copies allocated to nodes with [node.attr.k8s_node_name: ip-10-0-1-215.us-east-2.compute.internal]"
}
]
}
]
}
Had to cut of some information from the first 2 outputs due to the body limitations of this forum. But i think it is enough?
I can see the last command has shed more light on the issue, but not sure where to go from here...