gpt4 book ai didi

elasticsearch - Elasticsearch分片重定位不起作用

转载 作者:行者123 更新时间:2023-12-03 00:42:24 29 4
gpt4 key购买 nike

我将12个新数据节点添加到8个数据节点的现有集群中。我正在尝试按照建议使用“排除分配”关闭先前的8个节点

curl -XPUT localhost:9200/_cluster/settings -d '{ "transient" : { "cluster.routing.allocation.exclude._ip" : "10.0.0.1" } }'



它没有重定位任何碎片,所以我运行带有“explain”选项的reroute命令。有人可以解释以下文字在说什么吗?
>  "explanations" : [ {
> "command" : "move",
> "parameters" : {
> "index" : "2015-09-20",
> "shard" : 0,
> "from_node" : "_dDn1SmqSquhMGgjti6vGg",
> "to_node" : "OQBFMt17RaWboOzMnUy2jA"
> },
> "decisions" : [ {
> "decider" : "same_shard",
> "decision" : "YES",
> "explanation" : "shard is not allocated to same node or host"
> }, {
> "decider" : "filter",
> "decision" : "YES",
> "explanation" : "node passes include/exclude/require filters"
> }, {
> "decider" : "replica_after_primary_active",
> "decision" : "YES",
> "explanation" : "shard is primary"
> }, {
> "decider" : "throttling",
> "decision" : "YES",
> "explanation" : "below shard recovery limit of [16]"
> }, {
> "decider" : "enable",
> "decision" : "YES",
> "explanation" : "allocation disabling is ignored"
> }, {
> "decider" : "disable",
> "decision" : "YES",
> "explanation" : "allocation disabling is ignored"
> }, {
> "decider" : "awareness",
> "decision" : "NO",
> "explanation" : "too many shards on nodes for attribute: [dc]" }, {
> "decider" : "shards_limit",
> "decision" : "YES",
> "explanation" : "total shard limit disabled: [-1] <= 0"
> }, {
> "decider" : "node_version",
> "decision" : "YES",
> "explanation" : "target node version [1.4.5] is same or newer than source node version [1.4.5]"
> }, {
> "decider" : "disk_threshold",
> "decision" : "YES",
> "explanation" : "enough disk for shard on node, free: [1.4tb]"
> }, {
> "decider" : "snapshot_in_progress",
> "decision" : "YES", "explanation" : "no snapshots are currently running"
>

最佳答案

如果您有副本,则可以简单地一个接一个地关闭节点,然后等待每个节点使集群再次变为绿色。

在这种情况下,您无需显式重新路由。

就是说,在您的日志中,听起来好像您正在awareness文件中使用elasticsearch.yml。您应该检查您的设置。

关于elasticsearch - Elasticsearch分片重定位不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32685188/

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