Increase worker connections and update upstream settings

This commit is contained in:
Jose Eduardo 2025-08-17 04:30:51 -04:00
parent bb80471b2a
commit 7e9251be64

View File

@ -1,4 +1,6 @@
events {}
events {
worker_connections 1024;
}
http {
access_log off;
@ -8,6 +10,8 @@ http {
least_conn;
server api1:9999;
server api2:9999;
server api3:9999;
keepalive 32;
}
server {
@ -20,10 +24,10 @@ http {
proxy_buffering off;
proxy_cache off;
proxy_store off;
proxy_connect_timeout 100ms;
proxy_send_timeout 2s;
proxy_read_timeout 2s;
proxy_connect_timeout 1s;
proxy_send_timeout 5s;
proxy_read_timeout 5s;
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
}
}
}
}