yaoweibin / nginx_upstream_check_module

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

Upsteam & Status error #215

Open investlab opened 4 years ago

investlab commented 4 years ago

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?

oblongx commented 4 years ago

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

investlab commented 3 years ago

Anyone can help meeee!!!