docker-compose遇到的坑

昨天安装了一天的 docker-compose 拉起 es8 集群,结果尝试多种方式,启动的 es 总是 red 状态。找问题的方向,一直纠结于 security-7 not primary index。查询各种 google 也无法解决,后来,晚上通过 docker 单独安装 es8,返现是因为磁盘空间不够,造成的 disk hig watermark,会造成集群 red 的

You can see the settings you have applied with this command:

GET _cluster/settings

If they are not appropriate, you can modify them using a command such as below:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
PUT _cluster/settings
{

  "transient": {
 "cluster.routing.allocation.disk.watermark.low": "85%",

"cluster.routing.allocation.disk.watermark.high": "90%",

 "cluster.routing.allocation.disk.watermark.flood_stage": "95%",

 "cluster.info.update.interval": "1m"

  }

}

Note: Threshold can be specified both as percentage and byte values, but the former is more flexible and easier to maintain (in case different nodes have different disk sizes, like in hot/warm deployments).

image-20221123094035389

参考文档: https://opster.com/guides/elasticsearch/capacity-planning/elasticsearch-high-disk-watermark/

https://blog.csdn.net/boling_cavalry/article/details/125232858

Licensed under CC BY-NC-SA 4.0
最后更新于 Jan 06, 2025 05:52 UTC
comments powered by Disqus
Built with Hugo
主题 StackJimmy 设计
Caret Up