Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elasticsearch 无法就续,健康状态一直处于 yellow 状态 #186

Open
YaKazama opened this issue Mar 10, 2023 · 1 comment
Open

Comments

@YaKazama
Copy link

问题:

  • 使用 docker compose 部署时,由于 elasticsearch 是单节点,但是所生成的索引副本数确默认配置为 1 ,导致冲突,使 elasticsearch 状态一直处于 yellow 状态,无法切换至 green 状态。现象如图所示:
    image
    image

  • 不完全确定是否会随着运行时间的增加,索引数量或大小无限制增长,最终导致 elasticsearch 无限崩溃。

期望:

  • 针对第一个问题,在 elasticsearch 就续后,能自动将 index.number_of_replicas 配置改为 0 或将 index.auto_expand_replicas 配置为 0-1。现有可行处理方案:手动执行 curl -X PUT "http://192.168.16.3:9200/_settings" -H 'Content-Type: application/json' -d'{"number_of_replicas":0}' 命令进行重置。
  • 针对第二个问题,由于完全不清楚数据来源及索引生成时调用的规则,只能希望开发者确认并考虑是否进行适当的优化。
@Carazyda
Copy link
Member

Hello @YaKazama Please use English to communicate in the ONLYOFFICE repositories.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants