I have configured below the port range
cat /proc/sys/net/ipv4/ip_local_port_range 32768 61000
28232 so no ports are available
I configured HAProxy to take 5000 connection with 2 processor
So HAProxy records 10,000 concurrent connections
Example file haproxy.conf
frontend main bind *:80 acl is_app_user -i ^/myApp/app/.*/user.* acl is_app_members path_reg -i ^/myApp/.* use_backend user if is_app_user use_backend member if is_app_members backend user server app1 127.0.0.1:8081 backend member server app2 member.app.com:443 ssl verify none check
How many ports does this computer open on which HAProxy is running?
28232 x 2 = 56.464. Since the backend has a different IP address or independent of the backend server, the source port always stays at 28,232.