diff --git a/nginx.conf b/nginx.conf index d3762009..e2ba3594 100644 --- a/nginx.conf +++ b/nginx.conf @@ -8,12 +8,15 @@ http { upstream api_servers { least_conn; - server corinee_server_1:3000 weight=4 max_fails=1 fail_timeout=10s; # 메인 서버의 API (docker network 내부 이름 사용) + server corinee_server_1:3000 weight=4 max_fails=2 fail_timeout=5s; # 메인 서버의 API (docker network 내부 이름 사용) # server 223.130.134.167:3000 weight=8 max_fails=1 fail_timeout=10s; # 두 번째 서버의 공인 IP # server 223.130.130.192:3000 weight=8 max_fails=1 fail_timeout=10s; # server 211.188.59.137:3000 weight=8 max_fails=1 fail_timeout=10s; # server 211.188.59.126:3000 weight=1 max_fails=1 fail_timeout=10s; - server 124.28.132.80:7999 weight=80 max_fails=1 fail_timeout=10s; + server 124.28.132.80:7999 weight=80 max_fails=2 fail_timeout=5s; + + health_check interval=5s fails=2 passes=2; + health_check uri=/api/health; } server {