不好意思,我是剛接觸ELK的新手,接手之前的系統發現有很多unassigned shard、狀態
也是 red ,請問我要怎麼做才能解決掉unassigned shards並且會恢復狀態到green
curl -XGET 'localhost:9200/_cluster/health?pretty'
{
"cluster_name" : "ucfunnel",
"status" : "red",
"timed_out" : false,
"number_of_nodes" : 3,
"number_of_data_nodes" : 3,
"active_primary_shards" : 602,
"active_shards" : 1105,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 257,
"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" : 81.13069016152717
}
也是 red ,請問我要怎麼做才能解決掉unassigned shards並且會恢復狀態到green
curl -XGET 'localhost:9200/_cluster/health?pretty'
{
"cluster_name" : "ucfunnel",
"status" : "red",
"timed_out" : false,
"number_of_nodes" : 3,
"number_of_data_nodes" : 3,
"active_primary_shards" : 602,
"active_shards" : 1105,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 257,
"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" : 81.13069016152717
}
3 个回复
zaqweb
赞同来自: c981337
不行,参考官方手动sharding
c981337
赞同来自:
1.
如上圖,我有些Data沒有replica,要怎樣才能讓我的replica加入node中
2.
我有些primary跟replica各占一個node,但我希望他們可以分散開,讓Data更有容錯性,要怎麼辦呢
typuc - 80后IT男,乒乓球爱好者
赞同来自:
把脱离集群节点重新加入,replica 会自动分配到加入的节点
2,有些primary跟replica各占一個node,但我希望他們可以分散開,讓Data更有容錯性,要怎麼辦呢
有些primary跟replica各占一個node ??各占一个节点是默认的啊(节点数大于等于副本数)。不是同时占一个吧