Browse Source

fix(langgraph): healthcheck timeout 5s -> 10s(模型加载慢时避免误报 unhealthy)

Xiaogang Liao 1 month ago
parent
commit
611f5eb745
1 changed files with 2 additions and 2 deletions
  1. 2 2
      cfc-langgraph/docker-compose.yml

+ 2 - 2
cfc-langgraph/docker-compose.yml

@@ -17,7 +17,7 @@ services:
     healthcheck:
       test: ["CMD", "curl", "-f", "http://localhost:9082/actuator/health"]
       interval: 30s
-      timeout: 5s
+      timeout: 10s
       retries: 3
 
   langgraph-svc:
@@ -46,7 +46,7 @@ services:
     healthcheck:
       test: ["CMD", "python", "-c", "import urllib.request,sys; sys.exit(0 if urllib.request.urlopen('http://localhost:9000/health', timeout=5).status==200 else 1)"]
       interval: 30s
-      timeout: 5s
+      timeout: 10s
       retries: 3