Forum Discussion
Balance to webserver port based on value held in status file
Hi all,
First time poster, and recently getting into load balancing. I'm perfectly fine with setting up virtual servers to do the basic tasks, but I'm getting stuck on iRules. Is the below possible with an iRule?
The client wants to have a status text file, which would have 3 numbers in it. 1, 2 or 3. Based on the value in the text file I want the F5 to follow a certain set of rules, below is the flow how I imagine it:
value=1 send https: traffic to port 7007 (Release N)
if Release N is unreachable then send the traffic to port 7008 (Release N+1)
if Release N and Release N+1 are unreachable, then display the generic outage page from the F5 ("We apologise, the website you are trying to reach is current experiencing technical difficulties.")
value=2 send https: traffic to port 7008 (Release N+1)
if Release N+1 is unreachable then send the traffic to port 7007 (Release N)
if Release N and Release N+1 are unreachable, then display the generic outage page from the F5 ("We apologise, the website you are trying to reach is current experiencing technical difficulties.")
value=3 send https: traffic to a page static page on the IIS server (eg, http://server/schedoutage.html which says 'We apologise, the we are currently down for maintenance, the expected restoration is 8pm)
If the status text file on the server is 404, then display the generic outage page from the F5 ("We apologise, the website you are trying to reach is current experiencing technical difficulties.")
Is this possible on the F5? And if so, could someone please give me some pointers? I really would appreciate it :)
Thankyou all so much, and once I get up to speed with iRules, I look forward to helping the community out too.
- Ryan_Paras_7933Nimbostratushow many servers are supposed to be behind this VIP?
- The_BhattmanNimbostratusHi lucaspawpaw,
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