gpt4 book ai didi

amazon-web-services - AWS Elasticsearch Service:如何删除集群create_index block ?

转载 作者:行者123 更新时间:2023-12-03 02:15:49 29 4
gpt4 key购买 nike

最初,我认为该块是自动放置的,因为我的群集运行状况为黄色。我阅读了分片优化,发现我有许多未分配的分片。我将节点数增加到2,然后变为绿色。

GET /_cluster/health?level=indices
{
"cluster_name" : "861156488073:hd-staging",
"status" : "green",
"timed_out" : false,
"number_of_nodes" : 2,
"number_of_data_nodes" : 2,
"discovered_master" : true,
"active_primary_shards" : 47,
"active_shards" : 94,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0,
"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" : 100.0,
"indices" : {
".kibana_-1326395655_honestdoorstg_1" : {
"status" : "green",
"number_of_shards" : 1,
"number_of_replicas" : 1,
"active_primary_shards" : 1,
"active_shards" : 2,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0
},
".kibana_-1326395655_honestdoorstg_2" : {
"status" : "green",
"number_of_shards" : 1,
"number_of_replicas" : 1,
"active_primary_shards" : 1,
"active_shards" : 2,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0
},
".kibana_2" : {
"status" : "green",
"number_of_shards" : 1,
"number_of_replicas" : 1,
"active_primary_shards" : 1,
"active_shards" : 2,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0
},
"neighbourhood_assessment" : {
"status" : "green",
"number_of_shards" : 5,
"number_of_replicas" : 1,
"active_primary_shards" : 5,
"active_shards" : 10,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0
},
".kibana_1" : {
"status" : "green",
"number_of_shards" : 1,
"number_of_replicas" : 1,
"active_primary_shards" : 1,
"active_shards" : 2,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0
},
".opendistro_security" : {
"status" : "green",
"number_of_shards" : 1,
"number_of_replicas" : 1,
"active_primary_shards" : 1,
"active_shards" : 2,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0
},
".tasks" : {
"status" : "green",
"number_of_shards" : 1,
"number_of_replicas" : 1,
"active_primary_shards" : 1,
"active_shards" : 2,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0
},
".kibana_3" : {
"status" : "green",
"number_of_shards" : 1,
"number_of_replicas" : 1,
"active_primary_shards" : 1,
"active_shards" : 2,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0
},
"assessment" : {
"status" : "green",
"number_of_shards" : 5,
"number_of_replicas" : 1,
"active_primary_shards" : 5,
"active_shards" : 10,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0
},
"valuation" : {
"status" : "green",
"number_of_shards" : 5,
"number_of_replicas" : 1,
"active_primary_shards" : 5,
"active_shards" : 10,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0
},
"neighbourhood" : {
"status" : "green",
"number_of_shards" : 5,
"number_of_replicas" : 1,
"active_primary_shards" : 5,
"active_shards" : 10,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0
},
"permit" : {
"status" : "green",
"number_of_shards" : 5,
"number_of_replicas" : 1,
"active_primary_shards" : 5,
"active_shards" : 10,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0
},
"property" : {
"status" : "green",
"number_of_shards" : 5,
"number_of_replicas" : 1,
"active_primary_shards" : 5,
"active_shards" : 10,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0
},
"listing" : {
"status" : "green",
"number_of_shards" : 5,
"number_of_replicas" : 1,
"active_primary_shards" : 5,
"active_shards" : 10,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0
},
"close" : {
"status" : "green",
"number_of_shards" : 5,
"number_of_replicas" : 1,
"active_primary_shards" : 5,
"active_shards" : 10,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0
}
}
}
但是该块仍然存在:
GET /_cluster/settings
{
"persistent" : {
"cluster" : {
"routing" : {
"allocation" : {
"cluster_concurrent_rebalance" : "2",
"node_concurrent_recoveries" : "2",
"disk" : {
"watermark" : {
"low" : "1.35gb",
"flood_stage" : "0.45gb",
"high" : "0.9gb"
}
},
"node_initial_primaries_recoveries" : "4"
}
},
"blocks" : {
"create_index" : "true"
}
},
"indices" : {
"recovery" : {
"max_bytes_per_sec" : "60mb"
}
}
},
"transient" : {
"cluster" : {
"routing" : {
"allocation" : {
"cluster_concurrent_rebalance" : "2",
"node_concurrent_recoveries" : "2",
"disk" : {
"watermark" : {
"low" : "1.35gb",
"flood_stage" : "0.45gb",
"high" : "0.9gb"
}
},
"exclude" : { },
"node_initial_primaries_recoveries" : "4"
}
}
},
"indices" : {
"recovery" : {
"max_bytes_per_sec" : "60mb"
}
}
}
}
我已经尝试将_cluster / settings API与以下所有功能结合使用:
PUT /_cluster/settings
{"persistent": {"cluster": {"blocks.create_index": (null and false)}}}

PUT /_cluster/settings
{"persistent": {"cluster.blocks": (null and false)}}

PUT /_cluster/settings
{
"persistent" : {
"cluster.blocks.create_index": (null and false)
}
}
# all return
{"Message":"Your request: '/_cluster/settings' payload is not allowed."}
如何清除该块以便重新索引?永久设置甚至可以在Elasticsearch Service上进行编辑吗?我想念什么?
我认为将域增加到2个节点将我推到EBS分配的容量存储上:
https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/aes-handling-errors.html

最佳答案

实例上的磁盘空间就是问题。 ♂‍♂️
一个非常方便的分片优化工具,因此您不会遇到此问题:
https://gbaptista.github.io/elastic-calculator/

关于amazon-web-services - AWS Elasticsearch Service:如何删除集群create_index block ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63622873/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com