46 reputation
4
bio website
location
age 27
visits member for 2 years, 9 months
seen Dec 2 '12 at 2:07

Oct
8
awarded  Teacher
May
22
awarded  Popular Question
Sep
19
awarded  Popular Question
Apr
1
answered Nginx Retry of Requests ( Nginx - Haproxy Combination )
Apr
1
comment Nginx Retry of Requests ( Nginx - Haproxy Combination )
So , is there a way ( may be some hacky way ) u think that can help to overcoming this small window of time between the old process finishing and new ha-proxy process starting. I thought of a persistent job running but the problem with that is that new process won't even start unless you the old job hands over and also finishes the queue assigned to it.
Apr
1
comment Nginx Retry of Requests ( Nginx - Haproxy Combination )
So Walden , may be I am a little late , but was trying some things out and had end days of my quarter here :) So I tried the set up as u said , and haproxy does reload but there is a caveat. 1) So when I try with 10 seconds sleep , it does reload and when i do a ps aux | grep haproxy , i see 2 process unless the first process finishes the running items and those assigned to it in the queue. 2) Now when the requests are small ( and not the 10 seconds sleep ) what I think the reload still happens but still some requests get lost because of small window of time between old & new haproxy. cont.
Mar
13
comment Nginx Retry of Requests ( Nginx - Haproxy Combination )
So wats happening is I send requests from ab to nginx and I monitor the Haproxy queues and the request themselves dont do anything and just sleep after which response is provide. So at the time of reload all the requests in the queue ( existing connections that moment) get dropped. And I see failed requests as a result of that in ab result. So its not only the connections in the window , its the connections in the queue I am worried abt ( is there any specific required to be done for this to work in Haproxy )
Mar
12
comment Nginx Retry of Requests ( Nginx - Haproxy Combination )
bit.ly/x8pkeT - This was my previous post. I am using the -sf for haproxy option but the requests are still getting lost. I first tried to find solutions for that , when that didn't work have to nginx layer to take action for lost requests. I mean nginx has the option for retries , where it sends to next upstream server . Just if I could get something which can say after how long that request is send to the next upstream server , i may succeed.
Mar
12
awarded  Student
Mar
11
asked Nginx Retry of Requests ( Nginx - Haproxy Combination )
Feb
19
comment Haproxy graceful reload
Hey James, thanks for the reply. The missing $ was a typo I did while posting the question, I have it in my command and the restart goes through. I have a question though, when u say "it should be graceful in the sense that connections are drained from the first process rather than instantly killed" You mean that the requests should complete and not fail. I am sending requests from ab to nginx which sends request to haproxy & i see failed requests, which I think are the requests in the queue at reload. And from your reply it seems that queue going down to 0 is expected behavior.Am I right?
Feb
18
asked Haproxy graceful reload