I am running a test for 20 users from the testing tool.
so the request flow is like this
LoadGenerator ----> haproxy(1.8) ------> tomcat.
Here is the configuration of haproxy
log /dev/log local0
log /dev/log local1 notice
stats timeout 30s
timeout connect 5000
timeout client 50000
timeout server 50000
timeout http-keep-alive 600000
stats uri /haproxy?stats
server demo01 x.x.x.x:8080 check
Now what i want is create a persistence connection between haproxy and tomcat.
The thing i am observing on my tomcat server is the socket with ESTABLISHED connection(request comming from haproxy to tomcat).
Now the problem is i see the foreign host port keeps on changing even though the haproxy documentation says, it uses by default keep-alive setting.
If my understanding is correct then when you use persistence connection then the client making request to server with different port won’t change. If yes how can i solve this issue. If not please put a light on this.