Repository navigation
fix(docker): 健康检查加固 + kafka/zk 僵尸进程根治 + 移除死依赖 - #53
Merged
Merged
Conversation
服务器 2 核负载 38+ 时, 3s 超时的 curl 健康检查频繁失败导致 容器被误判 unhealthy 并重启。调整为: - interval 30s → 60s (降低检查频率) - timeout 3s → 10s (高负载下容忍慢响应) - 新增 start-period 90s (Spring Boot 启动期内不判定)
服务器实测 mes-kafka 1072 个 / mes-zookeeper 137 个僵尸进程: Confluent entrypoint 非 exec 形式, 健康检查脚本频繁 fork 子进程 且无人回收。为两容器加 init: true (dockerd 内置 tini 作 PID 1, 无需下载镜像)。镜像版本保持 7.5.0 不变, 升级可选。
依赖管理中的 co.elastic.clients:elasticsearch-java 无任何模块引用、 源码无 import、compose 无 ES 容器, 纯属冗余。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
3 个提交:
2核负载 38+ 时 3s 超时 healthcheck 频繁失败导致 unhealthy 重启循环
→ interval 60s / timeout 10s / start-period 90s (6 个 Java 容器)
服务器实测 mes-kafka 1072 + mes-zookeeper 137 个僵尸 (Confluent entrypoint 非 exec)
→ init: true 注入 dockerd 内置 tini, 无需升级镜像/额外下载