Master toggle and nested pools?
We have a need to have two sets of pools. An active and a passive group of pools. The idea our management has is that one pool will be active, the other passive, and we can deploy code to the passive pools and cut over to it once tested. The problem I am having is that we have multiple pools. So what I would love to do is nest a pool such that an iRule references some master pool and that master pool then toggles which sub pool is used. For instance
Master - use grouped pool A or B
Pool group A: Ruby Pool A, PHP Pool A, Python Pool A
Pool group B: Ruby Pool B, PHP Pool B, Python Pool A
Then there would need to be some way in the iRULE to define a pool class. Say we have a pool class called RubyWeb... this means to use Ruby Pool A or Ruby Pool B depending on what the master says is active.
Again, the hope is that I can change which pool group is used in a single place rather than having to go back through 100 iRules and change things from say Ruby Pool A to Ruby Pool B in one place, PHP Pool A to PHP Pool B in another place etc.
Can you make some sort of master nested toggle mechanism like this? Or am I thinking about this in the wrong way?