According to the previous Nginxtcpproxymodule trial settings, tcp connections are often dropped in the Test environment. Find an issue on the project site and talk about it, but others use the websocket protocol. In fact, there are a few fewer settings. The README configuration cannot be used... according to the previous Nginx tcp proxy module trial settings, tcp connections are often dropped in the Test environment. Find an issue on the project site and talk about it, but others use the web socket protocol. The README configuration cannot be used in the production environment. My configuration is as follows:
Tcp {timeout 1d; proxy_read_timeout 10d; proxy_send_timeout 10d; proxy_connect_timeout 30; upstream tcpend {server 192.168.1.55: 7778; server 192.168.1.58: 7778; check interval = 60000 rise = 2 fall = 5 timeout = 10000 type = tcp;} server {server_name 192.168.1.56; listen 192.168.1.56: 7777; proxy_pass tcpend; so_keepalive on; tcp_nodelay on ;}}