fix(tarot): Claude 응답 시간 단축 + nginx timeout 정리
504 Gateway Timeout 근본 원인은 DSM Reverse Proxy의 60s 기본 timeout (agent-office는 200 OK 정상 응답했으나 client 도달 전 DSM이 끊음). 사용자 측 DSM Reverse Proxy timeout 늘리기 별도 필요. 코드 측 대응: - pipeline.py max_tokens 2048 → 1400 (응답 시간 단축, 3-card spread 충분) - pipeline.py에 latency_ms·tokens 로그 출력 (모니터링) - nginx /api/agent-office/에 proxy_send_timeout 300s, proxy_connect_timeout 60s 추가 (proxy_read_timeout은 WebSocket 위해 86400s 유지) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -357,6 +357,8 @@ server {
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_read_timeout 86400s;
|
||||
proxy_send_timeout 300s;
|
||||
proxy_connect_timeout 60s;
|
||||
proxy_pass http://$agent_office_backend$request_uri;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user