Tengine的健康检查模块,


配置nginx.conf

vim nginx.conf

server {

  location /status {

    check_status;


    access_log off;

    allow SOME.IP.ADDRESS

    deny all;

  }

}

在upstream配置如下
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_alivehttp_2xx http_3xx;


相关内容

    暂无相关文章