Forum Discussion
Reproduce NGinx proxy_next_upstream system on F5
Hi,
I'm asking myself if it possible to reproduce NGinx
system on proxy_next_upstream
F5.
As a reminder, here is how it works on NGinx:
Given a pool of upstream servers let's call it
webservers compose by 2 instances:
upstream webservers {
server 192.168.1.10:8080 max_fails=1 fail_timeout=10s;
server 192.168.1.20:8080 max_fails=1 fail_timeout=10s;
}
With the following instruction, if a tcp connection fail on first instance when routing a request (because instance is down for example), NGinx automatically reroute request to the second instance (USER DOESN'T SEE ANY ERROR).
Furthermore, instance 1 is blacklisted for 10 seconds (fail_timeout=10s).
Every 10 sec, NGinx will try to route 1 request to instance 1 (to know if instance is coming back) and make the instance available again if it succeed otherwise it wait again 10 sec to try.
location / {
proxy_next_upstream error;
proxy_pass http://webservers/$1;
}
I hope I'm clear enough...
Thanks for your help.
Pierre from France.
1 Reply
- Arnaud_Lemaire
Employee
Bonjour Pierre,
You should have a look to this document describing options which seem to be close to what you are looking for :https://support.f5.com/kb/en-us/solutions/public/10000/600/sol10640.html
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
