Home > other >  Nginx TCP back-end TCP server restart after the client connection over a period of time
Nginx TCP back-end TCP server restart after the client connection over a period of time

Time:10-28

Ask the warrior, nginx TCP back-end TCP server restart after the client connection over a period of time, excuse me, where there is something wrong with the configuration, the following is the specific configuration:
The stream {
Upstream gateway_socket {
Hash $remote_addr consistent;
Server 127.0.0.1:9001 weight=5 max_fails=1 fail_timeout=10 s.
# server 127.0.0.1:9002 weight=2 max_fails=1 fail_timeout=10 s;
}
Server {
Listen, 9000;
Proxy_connect_timeout 1 s;
# proxy_timeout 3 s;
Proxy_pass gateway_socket;
}

}

Nginx version 1.9.9
  • Related