Hi David,
GET _internal/desired_balance
returns a 500 error message.
Please see both the error message and the output for explain for one of the indexes in question.
{
"error":{
"root_cause":[
{
"type":"null_pointer_exception",
"reason":"Cannot invoke \"org.elasticsearch.action.admin.cluster.allocation.DesiredBalanceResponse$ShardAssignmentView.writeTo(org.elasticsearch.common.io.stream.StreamOutput)\" because \"this.desired\" is null"
}
],
"type":"null_pointer_exception",
"reason":"Cannot invoke \"org.elasticsearch.action.admin.cluster.allocation.DesiredBalanceResponse$ShardAssignmentView.writeTo(org.elasticsearch.common.io.stream.StreamOutput)\" because \"this.desired\" is null"
},
"status":500
}
{
"index": ".ds-logs-ti_misp.threat-default-2023.07.18-000008",
"shard": 0,
"primary": true,
"current_state": "unassigned",
"unassigned_info": {
"reason": "INDEX_CREATED",
"at": "2023-07-18T06:04:05.703Z",
"last_allocation_status": "no_attempt"
},
"can_allocate": "yes",
"allocate_explanation": "Elasticsearch can allocate the shard.",
"target_node": {
"id": "UiIl6H2FQrqSUThr1ZQtRg",
"name": "client-es-masters-hot-1",
"transport_address": "172.16.195.84:9300",
"attributes": {
"ml.allocated_processors": "8",
"ml.max_jvm_size": "4294967296",
"xpack.installed": "true",
"ml.machine_memory": "6442450944",
"ml.allocated_processors_double": "8.0",
"k8s_node_name": "ip-10-0-68-59.ap-southeast-2.compute.internal"
}
},
"node_allocation_decisions": [
{
"node_id": "UiIl6H2FQrqSUThr1ZQtRg",
"node_name": "client-es-masters-hot-1",
"transport_address": "172.16.195.84:9300",
"node_attributes": {
"ml.allocated_processors": "8",
"ml.max_jvm_size": "4294967296",
"xpack.installed": "true",
"ml.machine_memory": "6442450944",
"ml.allocated_processors_double": "8.0",
"k8s_node_name": "ip-10-0-68-59.ap-southeast-2.compute.internal"
},
"node_decision": "yes",
"weight_ranking": 4
},
{
"node_id": "30V_RblrRSaYKprD4iJ5og",
"node_name": "client-es-masters-hot-0",
"transport_address": "172.16.10.137:9300",
"node_attributes": {
"ml.max_jvm_size": "4294967296",
"xpack.installed": "true",
"ml.machine_memory": "6442450944",
"ml.allocated_processors_double": "8.0",
"ml.allocated_processors": "8",
"k8s_node_name": "ip-10-0-115-74.ap-southeast-2.compute.internal"
},
"node_decision": "yes",
"weight_ranking": 5
},
{
"node_id": "XfjyU7pGSVOFmjqKJAngyA",
"node_name": "client-es-masters-hot-2",
"transport_address": "172.16.235.221:9300",
"node_attributes": {
"xpack.installed": "true",
"ml.machine_memory": "6442450944",
"ml.allocated_processors_double": "8.0",
"ml.max_jvm_size": "4294967296",
"ml.allocated_processors": "8",
"k8s_node_name": "ip-10-0-82-81.ap-southeast-2.compute.internal"
},
"node_decision": "yes",
"weight_ranking": 6
},
{
"node_id": "HnfWmpd3Ria9xfvH5Y88FQ",
"node_name": "client-es-masters-warm-ebs-2",
"transport_address": "172.16.175.150:9300",
"node_attributes": {
"k8s_node_name": "ip-10-0-64-101.ap-southeast-2.compute.internal",
"xpack.installed": "true"
},
"node_decision": "no",
"weight_ranking": 1,
"deciders": [
{
"decider": "data_tier",
"decision": "NO",
"explanation": "index has a preference for tiers [data_hot] and node does not meet the required [data_hot] tier"
}
]
},
{
"node_id": "sCHJV5mmQrCCcVAavWc-qg",
"node_name": "client-es-masters-warm-ebs-0",
"transport_address": "172.16.213.107:9300",
"node_attributes": {
"k8s_node_name": "ip-10-0-117-195.ap-southeast-2.compute.internal",
"xpack.installed": "true"
},
"node_decision": "no",
"weight_ranking": 2,
"deciders": [
{
"decider": "data_tier",
"decision": "NO",
"explanation": "index has a preference for tiers [data_hot] and node does not meet the required [data_hot] tier"
}
]
},
{
"node_id": "CdzzX7_5RvONdkjWU10T2w",
"node_name": "client-es-masters-warm-ebs-1",
"transport_address": "172.16.69.250:9300",
"node_attributes": {
"k8s_node_name": "ip-10-0-80-196.ap-southeast-2.compute.internal",
"xpack.installed": "true"
},
"node_decision": "no",
"weight_ranking": 3,
"deciders": [
{
"decider": "data_tier",
"decision": "NO",
"explanation": "index has a preference for tiers [data_hot] and node does not meet the required [data_hot] tier"
}
]
}
]
}