nginx_upstream_check_module
nginx_upstream_check_module copied to clipboard
nginx_upstream_check_module nginx 1.17.9 ip_bash not work
In nginx-1.17.9, add the ip_hash instruction, TCP detection can not check the back-end host in the upstream, the check will always be located on a back-end host, other hosts will not be detected, even if other hosts are offline
configuration example: upstream cluster {
# simple round-robin
ip_hash; # Open instruction
server 127.0.0.1:801 ; # check
server 127.0.0.1:8080 ; # offline, no check
check interval=5000 rise=1 fall=3 timeout=4000;
#check interval=3000 rise=2 fall=5 timeout=1000 type=ssl_hello;
#check interval=3000 rise=2 fall=5 timeout=1000 type=http;
#check_http_send "HEAD / HTTP/1.0\r\n\r\n";
#check_http_expect_alive http_2xx http_3xx;
}
Which version of patch did you add?
check_1.16.1+.patch