@elizabethk wrote:
Iām having this strange issue where HAProxy randomly stops working for a specific URL/IP and I cannot figure out the reason. A restart of the service will resolve the issue but I need to determine a permanent fix for this rather than a workaround cronjob that restarts the service periodically.
I am proxying a request from a server to an API
When HAProxy is working my logs will look like below (URL replaced with āsiteā and IP changed for confidentiality):
/var/log/haproxy/access.log-20200117.gz:
haproxy[26037]: 10.10.50.50.:42386 [16/Jan/2020:13:39:14.934] site-uat_site.com site-uat_com/site-uat_com 0/153/272 1104 ā 1/1/0/1/0 0/0and then at some random time, possibly after a request hasnāt been sent to this URL for a while I get the below in my logs:
/var/log/haproxy/access.log-20200118.gz:
haproxy[26037]:10.10.50.10:60657 [17/Jan/2020:12:49:26.065] site-uat_site.com site-uat_com/site-uat_com 0/-1/120008 212 sC 0/0/0/0/3 0/0Note the 212 error code and sC termination code. Iāve tried doing some research into this:
s: the server-side time-out expired first.
C: waiting for CONNECTION to establish on the server. The server might at most have noticed a connection attempt.I check the log on the backend of the proxy and I donāt see any traffic reaching it.
Any help or ideas would be greatly appreciated, Iām even a little stuck on how to start troubleshooting this.
Config:
frontend site-uat_site_com bind 10.10.50.50:6443 mode tcp log global option tcplog option dontlognull timeout client 90s use_backend site-uat_com backend site-uat_com mode http timeout connect 30s timeout server 30s balance roundrobin http-request set-header Host nonprod-site.com server site-uat_com nonprod-site.com:443 ssl verify none
Posts: 1
Participants: 1