tomcat - HAProxy - connection reset during transfer -
i using haproxy in front of 2 webapps deployed in tomcat. when testing high availability, made 10000 requests , @ point kill 1 of tomcat instances. 1 or 2 requests errors. request sent using spring's resttemplate. here exception: "org.springframework.web.client.resourceaccessexception: i/o error on post request "http://:8080/myservice/_doaction":unexpected end of file server; nested exception java.net.socketexception: unexpected end of file server"
the haproxy stats says in "errors" section, "resp" subsection, when hover on number shown there, 2 : "connection resets during transfers:1 client, 2 servers". means?
also, on "warnings" section have "retr":29 , "redis":1. tells me request being redispatched "living" server. assumption correct?
here haproxy.cfg:
listen tomcat_frontend
bind *:8080
timeout client 5000ms
timeout server 5000ms
mode http
option httpclose
option httplog
acl myservice_tomcat path_beg /myservice
use_backend tomcat_myservice_backend if myservice_tomcat
backend tomcat_myservice_backend
option forwardfor
option redispatch
retries 30
server server-2 :8080 check inter 10
server server-1 :8080 check inter 10
balance leastconn
mode http
Comments
Post a Comment