llm timeout 문제

This commit is contained in:
Macbook
2026-06-17 15:19:41 +09:00
parent c7f538c36b
commit 301f45301f
5 changed files with 27 additions and 24 deletions
+20 -7
View File
@@ -23,21 +23,34 @@
chunked_transfer_encoding on;
}
# ── LLM / AI 검증 (Ta4j 재평가 + LLM 최대 120s — 일반 /api/ 60s 초과) ───
location ~ ^/api/strategy/evaluation/(ai-verify|llm-test)$ {
# ── LLM / AI 검증 (Ta4j 재평가 + LLM — exact match, 일반 /api/ 60s 회피) ───
location = /api/strategy/evaluation/ai-verify {
proxy_pass http://backend:8080;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_connect_timeout 30s;
proxy_read_timeout 300s;
proxy_send_timeout 300s;
proxy_connect_timeout 60s;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
proxy_buffering off;
client_max_body_size 16m;
}
location = /api/strategy/evaluation/llm-test {
proxy_pass http://backend:8080;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_connect_timeout 60s;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
proxy_buffering off;
}
# ── GoldenChart Spring Boot Backend 프록시 ────────────────────────
location /api/ {
proxy_pass http://backend:8080;
@@ -49,8 +62,8 @@
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_connect_timeout 10s;
proxy_read_timeout 60s;
proxy_send_timeout 60s;
proxy_read_timeout 180s;
proxy_send_timeout 180s;
proxy_buffering off;
}
+2 -2
View File
@@ -1749,7 +1749,7 @@ export async function fetchStrategyEvaluationAiVerify(
cache: 'no-store',
body: JSON.stringify({ context }),
},
200_000,
620_000,
);
}
@@ -1768,7 +1768,7 @@ export async function fetchLlmConnectionTest(): Promise<LlmConnectionTestRespons
method: 'POST',
cache: 'no-store',
},
130_000,
620_000,
);
}