Jeremy_Alons_40
Nov 19, 2008Nimbostratus
one 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?