nginx_upstream_check_module icon indicating copy to clipboard operation
nginx_upstream_check_module copied to clipboard

Upsteam & Status error

Open investlab opened this issue 5 years ago • 2 comments

This is my config: #----------------------------------------------------

upstream appserver {
        server 10.0.16.46:8080 weight=1;
        server 10.0.16.48:8080 weight=1;
        check interval=3000 rise=2 fall=5 timeout=1000 port=8080 type=http;
        check_http_send "GET /healthcheck HTTP/1.0\r\n\r\n";
        check_http_expect_alive http_2xx;
}

server {
        listen       8099 ;

        server_name  _default;

        access_log  /var/log/nginx/apicore.alipay.cn_access.log main;
        error_log       /var/log/nginx/apicore.alipay.cn_error.log;

        location / {
                proxy_pass http://appserver;
      }
        location /status {
                check_status;

                access_log on;
        }
}

#---------------------------------------------------- But Upstream check doesn't work and /status respone 500. Is my config correct or not?

investlab avatar Dec 20 '19 09:12 investlab

I too have noticed that 10.x.x.x addresses don't get health checked for some reason.

oblongx avatar Apr 27 '20 22:04 oblongx

Anyone can help meeee!!!

investlab avatar Oct 26 '20 08:10 investlab