es_status_red_to_green

参考: http://www.jwsblog.com/archives/59.html

_cluster/health

_cluster/health?level=indices

UNASSIGNED

_cat/shards

Unknown AllocationCommand [allocate]

allocate_empty_primary

https://www.elastic.co/guide/en/elasticsearch/reference/5.6/breaking_50_allocation.html

The reroute command allocate has been split into two distinct commands allocate_replica and allocate_empty_primary. This was done as we introduced a new allocate_stale_primary command. The new allocate_replica command corresponds to the old allocate command with allow_primary set to false. The new allocate_empty_primary command corresponds to the old allocate command with allow_primary set to true.

1
2
3
4
5
6
7
8
9
10
11
12
13
POST /_cluster/reroute
{
"commands": [
{
"allocate_empty_primary": {
"index": "financialinfo_hub",
"shard": 1,
"node": "82kRgwG",
"accept_data_loss": true
}
}
]
}

success

但是:

节点磁盘使用率

Look at your mood.