yaoweibin / nginx_upstream_check_module

Health checks upstreams for nginx
http://github.com/yaoweibin/nginx_upstream_check_module
2.06k stars 484 forks source link

default_down=false isn't working #70

Open daveres opened 9 years ago

daveres commented 9 years ago

I have setup several upstreams with checks. After that, I tried to make a change in the upstream conf file and I make a stress test, I receive errors (no upstreams available) and I could see in the status page that several upstreams go down until the next check. I have just added "default_down=false" to avoid this behaviour but I still have problems.

My config:

upstream ups-wwwlogitravelcombr-cars { least_conn; {{range service "ups-wwwlogitravelcombr-cars"}} server {{.Address}}:{{.Port}} max_fails=3 fail_timeout=5s; {{end}}#check_http_send "GET /carsshowcase/chechkapp/SignIn HTTP/1.1\r\nHost:www.example.com.br\r\n\r\n"; check interval=3000 rise=1 fall=3 timeout=10000 default_down=false type=http; check_http_expect_alive http_2xx http_3xx; }

xujpxm commented 3 months ago

+1 the same case

xujpxm commented 3 months ago

nginx version: openresty/1.15.8.3 built by gcc 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC) built with OpenSSL 1.1.1k 25 Mar 2021 TLS SNI support enabled configure arguments: --prefix=/usr/local/openresty/nginx --with-debug --with-cc-opt='-DNGX_LUA_USE_ASSERT -DNGX_LUA_ABORT_AT_PANIC -O2 -I/usr/local/openresty/openssl/include/ -I/usr/local/openresty/pcre/include/' --add-module=../ngx_devel_kit-0.3.1rc1 --add-module=../echo-nginx-module-0.61 --add-module=../xss-nginx-module-0.06 --add-module=../ngx_coolkit-0.2 --add-module=../set-misc-nginx-module-0.32 --add-module=../form-input-nginx-module-0.12 --add-module=../encrypted-session-nginx-module-0.08 --add-module=../srcache-nginx-module-0.31 --add-module=../ngx_lua-0.10.15 --add-module=../ngx_lua_upstream-0.07 --add-module=../headers-more-nginx-module-0.33 --add-module=../array-var-nginx-module-0.05 --add-module=../memc-nginx-module-0.19 --add-module=../redis2-nginx-module-0.15 --add-module=../redis-nginx-module-0.3.7 --add-module=../rds-json-nginx-module-0.15 --add-module=../rds-csv-nginx-module-0.09 --add-module=../ngx_stream_lua-0.0.7 --with-ld-opt='-Wl,-rpath,/usr/local/openresty/luajit/lib -L/usr/local/openresty/openssl/lib/ -L/usr/local/openresty/pcre/lib/' --user=nginx --group=nginx --with-pcre --with-stream --with-threads --with-http_v2_module --with-pcre-jit --with-http_ssl_module --with-stream_ssl_module --with-ipv6 --with-http_sub_module --with-http_stub_status_module --with-http_realip_module --with-http_addition_module --with-http_geoip_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_auth_request_module --http-log-path=/data/nginx/logs/access.log --add-module=./nginx-module-sysguard --add-module=./ngx_cache_purge --add-module=./nginx_upstream_check_module --add-module=./ngx_dynamic_upstream --add-module=./nginx-module-vts --with-stream --with-stream_ssl_preread_module