Forum Discussion
Dazzla_20011
Feb 25, 2011Nimbostratus
i-rule to force traffic to one Pool Member unless it fails
Hi,
I've a pool containing two bluecoat proxies which are load balanced using Dynamic Raio (member) and source ip persistence of 10 hours. I have a requirement to force traffic going to a particular https website to always use the same pool member unless it fail. Once the pool member is up the traffic to this particular destination needs to be sent via it.
Is this something I can achieve easily with an i-rule. I've not created an i-rule yet so any guidance appreciated.
Thanks
Darren
- hooleylistCirrostratusHey Darren,
- Dazzla_20011NimbostratusHi Aaron,
- Steve_Brown_882Historic F5 AccountHi the way I read your problem you could continue to use 1 virtual server and just apply an irule similar to the one below. This would send your servers to one specific proxy unless it was down and continue load balance all of your users.
- Dazzla_20011NimbostratusThanks Steve I will give this a try.
- hooleylistCirrostratusHere is a slightly more efficient version with a few typos fixed:
when CLIENT_ACCEPTED { Check to see if the IP matches an one in a group and that the member is up. before sending it directly to that member. if { [class match [IP::client_addr] equals "ServerGroup" ] }{ if { [LB::status pool Pool1 member 10.1.2.3 80] ne "down" } { pool Pool1 member 10.1.2.3 80 Exit this event from this rule return } elseif {[LB::status pool Pool1 member 10.1.2.4 80] ne "down" } { pool Pool1 member 10.1.2.4 80 Exit this event from this rule return } } Default to load balancing all users pool Pool1 }
- Dazzla_20011NimbostratusHi,
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects