【问题标题】:Elasticsearch Low watermark setting triggered by disk partitions磁盘分区触发的 Elasticsearch Low watermark 设置
【发布时间】:2021-07-14 20:24:25
【问题描述】:

我的索引处于“黄色”状态,因为一个分片未分配。我的三个数据节点总体上有足够的磁盘空间,但它们是分区的。每个数据节点都有三个磁盘分区,分别称为/data1/data2/data3。 Elasticsearch 仅在 /data1 上存储分片。继手册中的this page 之后,我在头节点上修改了elasticsearch.yml 以包含以下内容:

path.data: /data1/elasticsearch, /data2/elasticsearch_2, /data3/elasticsearch_3

然后跑:

curl -XPOST "localhost:9200/_cluster/reroute?retry_failed"

尝试重新分配分片。但是,我收到来自节点的警告the node is above the low watermark cluster setting [cluster.routing.allocation.disk.watermark.low=85% 和来自第三个数据节点的the shard cannot be allocated to the same node on which a copy of the shard already exists

在这个集群上还有第二个小得多的索引,它处于绿色状态。

我的问题是,当第一个分区已满时,如何让 Elasticsearch 将分片存储在数据节点的其他分区上?每个分区本身都足够大,可以存储一个分片,但我认为因为我在一个分区中有多个索引的数据,所以它会触发警告并阻止副本分片的分布。

【问题讨论】:

  • 你的副本是什么?

标签: elasticsearch replication database-replication disk-partitioning


【解决方案1】:

当簇为黄色时,索引无法重新定位。我建议将 number_of_replica 设置为 0,将 set cluster.routing.allocation.disk.watermark.lowcluster.routing.allocation.disk.watermark.high 设置为 95%。然后等待索引重新定位。之后将这些设置设置为默认值(1、85%、95%)。

注意cluster.routing.allocation.total_shards_per_node默认为-1并检查其值。

【讨论】:

猜你喜欢
  • 2013-10-11
  • 2015-01-05
  • 2011-01-09
  • 2018-11-07
  • 1970-01-01
  • 2019-10-13
  • 2011-11-19
  • 2019-04-05
  • 2011-12-05
相关资源
最近更新 更多