Skip to content
Discussion options

You must be logged in to vote

Solution

这是 Hermes 网关的 worker 进程在处理大量并发请求时超时未回收导致的。根因是网关 worker 数量不足会话泄漏

排查步骤

# 1. 检查当前 worker 状态
hermes gateway status

# 2. 查看 worker 统计
systemctl --user status hermes-web-ui

# 3. 增加 worker 数量(编辑 config.yaml)
# max_workers: 10  →  max_workers: 20

推荐配置

# ~/.hermes/config.yaml 或 profile config
gateway:
  max_workers: 20
  worker_timeout: 300  # 5分钟无活动自动回收
  max_concurrency: 50

验证

重启后按以下步骤验证:

# 确认 worker 池大小
hermes gateway workers
# 应显示 20 个可用 worker

# 模拟并发请求
hermes gateway stress --requests 10 --concurrent 5
# 不应出现 503

参考

  • Error catalog: HER-20260714-003 (Hermes fallback 全部失败)
  • AgentHive discussion #4 (systemd PATH 问题)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by normdist-ai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant