Maybe the problem is related to the template settings.
Because not all nodes have the settings:
node.attr.zone: zone_one
node.attr.disk: ssd
Or
node.attr.zone: zone_one
node.attr.disk: sata
,i select the include and exlude settings for index:
the template:
default:
{
"order": 0,
"template": "*",
"settings": {
"index": {
"routing": {
"allocation": {
"exclude": {
"disk": "sata"
}
}
}...
other tempate:
{
"order": 1,
"template": "apm.store_tranport-*",
"settings": {
"index": {
"routing": {
"allocation": {
"include": {
"disk": "sata"
},
"exclude": {
"disk": null
}
}
}
...
I think i can add the node.attr.disk: ssd settings for the nodes needed, then restart the nodes, modify exlude to include which maybe solve the issue.