【发布时间】: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