解决办法
vim ./config/elasticsearch.yml
add
xpack.searchable.snapshot.shared_cache.size: 50%
以下几个设置不起作用:
<!-- 当磁盘使用量低于 cluster.routing.allocation.disk.watermark.low 的阈值时,Elasticsearch 将会解除对分片分配的限制,允许新的分片分配和重新分配操作。默认情况下,cluster.routing.allocation.disk.watermark.low 的值是 85%。 --> cluster.routing.allocation.disk.watermark.low: 75% <!--当磁盘使用量超过cluster.routing.allocation.disk.watermark.high的阈值时,Elasticsearch 将尝试阻止新的分片分配,但仍会继续进行分片的重新分配操作,以平衡集群的负载。--> cluster.routing.allocation.disk.watermark.high: 80% <!--当磁盘使用量超过cluster.routing.allocation.disk.watermark.flood_stage的阈值时,Elasticsearch 将进入洪水阶段,停止所有新的分片分配和重新分配操作。此时,集群将完全停止对磁盘的写入操作,以防止磁盘耗尽。--> cluster.routing.allocation.disk.watermark.flood_stage: 85%