Hi, I have unassigned replicas in my cluster. I try allocating them manually but I can't:
POST _cluster/reroute?pretty
{
"commands": [
{
"allocate_replica": {
"index": "apm-7.6.2-transaction-2020.05.20-000001",
"shard": 1,
"node": "s-monitoring-es-warm-00"
}
}
]
}
Result:
{
"error" : {
"root_cause" : [
{
"type" : "illegal_argument_exception",
"reason" : "[allocate_replica] allocation of [apm-7.6.2-transaction-2020.05.20-000021][1] on node {s-monitoring-es-warm-00}{hpjwIe2GRs-bqm3yAjCy1Q}{6LM4LhW2TtebgZUAOl7gDA}{10.194.112.6}{10.194.112.6:9300}{dil}{ml.machine_memory=12591763456, ml.max_open_jobs=20, xpack.installed=true, data=warm} is not allowed, reason: [YES(shard has no previous failures)][YES(primary shard for this replica is already active)][YES(explicitly ignoring any disabling of allocation due to manual allocation commands via the reroute API)][YES(can allocate replica shard to a node with version [7.6.2] since this is equal-or-newer than the primary version [7.6.2])][YES(the shard is not being snapshotted)][YES(ignored as shard is not being recovered from a snapshot)][NO(node does not match index setting [index.routing.allocation.require] filters [data:\"warm\",_id:\"0qZ83lt-RsufPTuk0eD_aA\"])][YES(the shard does not exist on the same node)][YES(enough disk for shard on node, free: [1.4tb], shard size: [0b], free after allocating shard: [1.4tb])][YES(below shard recovery limit of outgoing: [0 < 24] incoming: [0 < 24])][YES(total shard limits are disabled: [index: -1, cluster: -1] <= 0)][YES(allocation awareness is not enabled, set cluster setting [cluster.routing.allocation.awareness.attributes] to enable it)]"
}
],
"type" : "illegal_argument_exception",
"reason" : "[allocate_replica] allocation of [apm-7.6.2-transaction-2020.05.20-000021][1] on node {s-monitoring-es-warm-00}{hpjwIe2GRs-bqm3yAjCy1Q}{6LM4LhW2TtebgZUAOl7gDA}{10.194.112.6}{10.194.112.6:9300}{dil}{ml.machine_memory=12591763456, ml.max_open_jobs=20, xpack.installed=true, data=warm} is not allowed, reason: [YES(shard has no previous failures)][YES(primary shard for this replica is already active)][YES(explicitly ignoring any disabling of allocation due to manual allocation commands via the reroute API)][YES(can allocate replica shard to a node with version [7.6.2] since this is equal-or-newer than the primary version [7.6.2])][YES(the shard is not being snapshotted)][YES(ignored as shard is not being recovered from a snapshot)][NO(node does not match index setting [index.routing.allocation.require] filters [data:\"warm\",_id:\"0qZ83lt-RsufPTuk0eD_aA\"])][YES(the shard does not exist on the same node)][YES(enough disk for shard on node, free: [1.4tb], shard size: [0b], free after allocating shard: [1.4tb])][YES(below shard recovery limit of outgoing: [0 < 24] incoming: [0 < 24])][YES(total shard limits are disabled: [index: -1, cluster: -1] <= 0)][YES(allocation awareness is not enabled, set cluster setting [cluster.routing.allocation.awareness.attributes] to enable it)]"
},
"status" : 400
}
I don't have anything strange in my cluster settings:
{
"persistent" : {
"xpack" : {
"monitoring" : {
"collection" : {
"enabled" : "true"
}
}
}
},
"transient" : { }
}
I also try setting number of replicas to 0 and then to 1 again, but it's the same.
Can someone help me?