nginx: reduce cost of spurious connectivity loss;

default value of fail_timeout (10sec) makes server unavailable for that
amount of time, even if the server is just down for a quick restart
This commit is contained in:
ed 2023-11-03 17:13:11 +00:00
parent 7c1d97af3b
commit 7ede509973

View file

@ -13,7 +13,7 @@
# on fedora/rhel, remember to setsebool -P httpd_can_network_connect 1
upstream cpp {
server 127.0.0.1:3923;
server 127.0.0.1:3923 fail_timeout=1s;
keepalive 1;
}
server {