Forum Discussion
Jeremy_Alons_40
Nimbostratus
Nov 19, 2008one virtual server, multiple pools?
Greetings,
Extremely new to iRules and the F5s in general, but here goes.
I haven't seen a way to do this in the configuration, so I'm assuming an iRule is going to be the answer.
We want to maintain persistence to a specific pool for a virtual server, while having multiple pools service that virtual server (with a special, last ditch effort pool defined that basically says "We're having issues yada yada yada"
I've gotten uri matching and the likes working via iRules, simple http->https and the likes, but can't seem to see how to make it go to multiple rules, with persistence, as long as the first pool it hits lives.
So basically:
virtual_serverA
-> Pool1
- nodeA1
- nodeB1
...
- nodeN1
-> Pool2
- nodeA2
- nodeB2
...
- nodeN2
-> PoolN
- nodeAN
- nodeBN
...
- nodeNN
And the likes. There's no URI I can match off of to redirect - I simply need persistence for each user to go to the same pool unless every node in that pool is dead, and then move onto another pool, finally falling out to the "maintenance" pool should all nodes in all pools cease responding.
I can't just have one massive pool, as the cost of replication between them is too high. Is my logic correct? Am I overlooking something obvious? Have I managed to make this harder than it actually is?
- The_Bhattman
Nimbostratus
Assuming that this is website have you you tried creating a cookie persistance for each selection of the irule within your pool selection.persist cookie insert COOKIE_NAME_PoolNN TIMEOUT
- dennypayne
Employee
You just need to create one pool with priority group options enabled. Set your primary servers to priority 3, your secondary ones to priority 2, and your fallback ones to priority 1. Then set the priority group activation to "Less than 1" and that should do what you require. - The_Bhattman
Nimbostratus
Good one Denny. Don't know how I missed that one. - Jeremy_Alons_40
Nimbostratus
I'm not sure I understand the Priority group Activation. - dennypayne
Employee
The higher the number, the higher the priority, so your priority group 4 will get all the traffic first (so, descending order). Stickiness (persistence) will apply to whatever node is chosen. If that node is marked down, the client will be sent to the next available server in the currently active priority group.
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