From 21567a7a6dbee7db2c0f59c265f80713ff5e6fe4 Mon Sep 17 00:00:00 2001 From: OG T Date: Thu, 9 Apr 2026 19:52:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(host=5Faggregator):=20=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E5=9B=9B=E5=8F=B0=E4=B8=BB=E6=A9=9F=20probe=20=E7=AB=AF?= =?UTF-8?q?=E9=BB=9E=E9=8C=AF=E8=AA=A4=E5=B0=8E=E8=87=B4=E5=85=A8=E9=83=A8?= =?UTF-8?q?=E9=A1=AF=E7=A4=BA=20unhealthy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 110: Harbor http→tcp(5000), Docker 2375→Gitea tcp(3001) - 120: K3s 6443 https(401誤判)→tcp, 移除 Traefik 80(closed) - 188: OpenClaw 8089→8088 (實際端口) Co-Authored-By: Claude Sonnet 4.6 --- apps/api/src/services/host_aggregator.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/apps/api/src/services/host_aggregator.py b/apps/api/src/services/host_aggregator.py index f5301841..a41ce475 100644 --- a/apps/api/src/services/host_aggregator.py +++ b/apps/api/src/services/host_aggregator.py @@ -276,14 +276,18 @@ async def _http_probe( # Service definitions: (name, port, probe_type, path_or_none) # probe_type: "tcp" | "http" | "https" +# 2026-04-09 Claude Sonnet 4.6: 修正 HOST_CONFIGS probe 端點 +# - 110: Harbor→tcp(5000), Docker 2375→Gitea tcp(3001) +# - 120: K3s 6443 https→tcp(401 被誤判 down), Traefik 80 closed→刪除 +# - 188: OpenClaw 8089→8088 (實際端口) HOST_CONFIGS = { "192.168.0.110": { "name": "DevOps 金庫", "role": HostRole.DEVOPS, "services": [ - ("Harbor", 5000, "http", "/api/v2/"), + ("Harbor", 5000, "tcp", None), # http /api/v2/ 回 HTML,改 tcp + ("Gitea", 3001, "tcp", None), # CI/CD 主倉,取代 Docker 2375 ("GH Runner", 3000, "tcp", None), - ("Docker", 2375, "tcp", None), ], }, "192.168.0.112": { @@ -298,8 +302,7 @@ HOST_CONFIGS = { "name": "K3s Master", "role": HostRole.K3S, "services": [ - ("K3s API", 6443, "https", "/healthz"), - ("Traefik", 80, "http", "/"), + ("K3s API", 6443, "tcp", None), # https /healthz 回 401 被誤判,改 tcp ("awoooi-prod", 32335, "tcp", None), ], }, @@ -311,7 +314,7 @@ HOST_CONFIGS = { ("PostgreSQL", 5432, "tcp", None), ("Redis", 6380, "tcp", None), ("Ollama", 11434, "http", "/api/tags"), - ("OpenClaw", 8089, "http", "/health"), + ("OpenClaw", 8088, "http", "/health"), # 修正: 8089→8088 ("SigNoz", 3301, "http", "/api/v1/health"), ], },