Hi all:
I am wondering if I set:
proxy_next_upstream error timeout;
Fox example , if the requested service is a counter , I issue the
request use the interface http://example.com/incr . The request is
failed on my first host A, then it is passed to the second host B , is
the counter likely be added twice ?
Unless the request is getting que’d while there is a short wait for host
A
to get online AND fail-over is also happening, its not likely to be
added
twice.
If host A has added the counter and failed to response, the request
would be failed over to host B with successful response, so the
counter would be added twines. Wouldn’t it ?
Then a condition must occur where host A fails right after processing
the
request, they usually fail before accepting a request, it also depends
on
the timeout for a request. And it also depends what nginx considers a
fail,
nginx might not fail a host when it does not return from accepting a
request.
You will have to simulate this to find out the conditions for a fail.
If host A has added the counter and failed to response, the request
would be failed over to host B with successful response, so the counter
would be added twines. Wouldnt it ?
2014114գ5:48itpp2012 [email protected] д
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.