@souravsum wrote:
Hi Team,
I am running a test for 20 users from the testing tool.
so the request flow is like thisLoadGenerator ----> haproxy(1.8) ------> tomcat.
Here is the configuration of haproxy
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats timeout 30s
user haproxy
group haproxy
daemondefaults
log global
mode http
option httplog
option dontlognull
option http-keep-alive
timeout connect 5000
timeout client 50000
timeout server 50000
timeout http-keep-alive 600000
max-keep-alive-queue 20
maxconn 40frontend http_front
bind *:80
stats uri /haproxy?stats
default_backend http_backbackend http_back
balance roundrobin
http-reuse safe
server demo01 x.x.x.x:8080 checkNow 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.
Regards,
Sourav Suman
Posts: 3
Participants: 2