我正在使用ES 2.4.4。
当前,我在_cluster/health?level=nodes
收到此内容回复
{
"cluster_name":"logging-es",
"status":"red",
"timed_out":false,
"number_of_nodes":1,
"number_of_data_nodes":1,
"active_primary_shards":62,
"active_shards":62,
"relocating_shards":0,
"initializing_shards":0,
"unassigned_shards":2,
"delayed_unassigned_shards":0,
"number_of_pending_tasks":0,
"number_of_in_flight_fetch":0,
"task_max_waiting_in_queue_millis":0,
"active_shards_percent_as_number":96.875
}
如您所见,集群有两个未分配的分片:"unassigned_shards":2
。
相关的索引是:
$ _cat/indices -s | grep red
red open project.istio-project-two.242ef609-8f... 1 0
red open project.3scale-amp-2.08baf3f... 1 0
这些是未分配的分片:
$ _cat/shards | grep UNASSIGNED
project.istio-project-two.242ef609-8f... 0 p UNASSIGNED
project.3scale-amp-2.08baf3f5-c3... 0 p UNASSIGNED
我不知道这是ES运行此问题的原因。
每天我都删除这些,然后重新创建。但是,每天早上我都需要套用这种解决方法,这让我感到不舒服。
节点数:
$ _cat/nodes
10.128.2.21 10.128.2.21 67 99 0.41 d * logging-es-data-master-yl7ddqw7
索引设置:
$GET /project.istio-project-two.242ef609-8f/_settings?pretty
{
"project.istio-project-two.242ef609-8f..." : {
"settings" : {
"index" : {
"creation_date" : "1532649602432",
"refresh_interval" : "5s",
"number_of_shards" : "1",
"number_of_replicas" : "0",
"uuid" : "XY-tFCkhQVOLlXmndoKpSQ",
"version" : {
"created" : "2040499"
}
}
}
}
}
有什么想法吗?