Forum Discussion
Brad_Parker
Cirrus
Ahh, makes much more sense now. Probably the best/easiest way to accomplish this would be to use priority activation and manual resume on your monitor, but that still would require manual intervention to fail back to the primary pool member. I haven't tested this yet, but give it a try if you have somewhere you can test it. Uses tables and swaps back and forth when LB fails.
when RULE_INIT {
set static::poolA "/Common/poolA"
set static::poolB "Common/poolB"
table set primaryPool $static::poolA indefinite
table set secondaryPool $static:poolB indefinite
}
when HTTP_REQUEST {
pool [table lookup -notouch primaryPool]
}
when LB_FAILED {
set origPrimary [table lookup -notouch primaryPool]
table replace primaryPool [table lookup -notouch secondaryPool] indefinite
table replace secondaryPool $origPrimary indefinite
pool [table lookup -notouch primaryPool]
}
ijdod
Oct 15, 2015Nimbostratus
Unfortunately, you can't use the table command inside RULE_INIT.