Trying to get all traffic on port 388 to do least_conn; through a load balancer in the DMZ to a couple different nodes not in the DMZ. This is the error I get:
ERROR ldmping.c:75:
rint_hstat() ADDRESSED 10.001020 0 nginx.loadbalancer.hostname RPC: Timed out
Right now, all requests are coming from internal machines to the load balancer that isn't in the DMZ yet, it has an internal address on a vnic now.
Code:
user root;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
# Load dynamic modules. See /usr/share/nginx/README.dynamic.
include /usr/share/nginx/modules/*.conf;
events {
worker_connections 1024;
}
stream {
upstream stream_backend {
least_conn;
server 172.xx.xx.xx:388;
server 172.xx.xx.xx:388;
server 172.xx.xx.xx:9100;
server 172.xx.xx.xx:9100;
server 172.xx.xx.xx:388;
server 172.xx.xx.xx:9100;
}
server {
listen 388;
proxy_pass stream_backend;
proxy_bind $remote_addr:$remote_port transparent;
proxy_protocol on;
}
server {
listen 9100;
proxy_pass stream_backend;
proxy_bind $remote_addr:$remote_port transparent;
proxy_protocol on;
}
}