Summary: | Large TCP timeout delays hcheck disabling a node | ||
---|---|---|---|
Product: | Apache httpd-2 | Reporter: | Michael Renz <michael> |
Component: | mod_proxy_hcheck | Assignee: | Apache HTTPD Bugs Mailing List <bugs> |
Status: | NEW --- | ||
Severity: | enhancement | Keywords: | PatchAvailable |
Priority: | P2 | ||
Version: | 2.4.25 | ||
Target Milestone: | --- | ||
Hardware: | Sun | ||
OS: | Solaris | ||
Attachments: |
added new hcconnectiontimeout parameter
I forgot to allow it in ProxyHCTemplate and the parameter is now optional |
Description
Michael Renz
2017-03-31 14:59:41 UTC
Created attachment 34893 [details]
I forgot to allow it in ProxyHCTemplate and the parameter is now optional
I forgot to allow it in ProxyHCTemplate and the parameter is now optional
Hi, any updates on this? an independent timeout for the health check http request would be really helpful! the patch looks okay, any thing that I can do to get this merged? it is confusing to have connectiontimeout and hcconnectiontimeout. I have committed http://svn.apache.org/viewvc?view=revision&revision=1862014 if that helps please close the BZ. This fix seems to only fixes the case when there is a high latency in the TCP connection. However, there is a case we encountered now, that the back-end server does not respond to the health check http request due to an internal issue or resource exhaustion after the connection has been established and the request has been sent. In such a case, the health check from httpd seems to hang there without any read timeout. The consequence is that the load balancer is not able to mark a backend as HCFL, and it seems to be blocking the health check towards other balancer members as well. In this case, the health check is not able to function as it should be. Please advice if my understanding is right. If yes, how can we add the read timeout for health checks. Looks like the backport of r1889936 is missing. Can you check if http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_proxy_hcheck.c?r1=1889936&r2=1889935&pathrev=1889936&view=patch fixes your issue? Thank you for pointing out this, it is helpful. I will test it and hopefully if it works fine, it can be in the coming release. I quickly looked in the patch code, looks like it tries to use the same timeout setting from the balancer config. The concern of that is, in some load balancer config we have to set a large timeout (like 5 minutes) to fit some heavy requests which take minutes to complete. But as per health check, we really expect it to timeout in seconds. It would be better if the health check timeout can be set differently. If you need a different timeout for the hcheck (shorter) and the proxied requests (longer), I saw that could be achieved by setting a short ProxyTimeout for the hcheck and set a longer desired timeout flag on the BalancerMembers. |