Forum Discussion
Joshua_Messenge
Nimbostratus
Oct 08, 2015Active / Passive slightly diffrent recovery
I need to setup an active / passive deployment where:
1.) Active server takes all communications
2.) when Active server fails all communications go to passive
3.) If active server recovers all traffi...
Brad_Parker_139
Nacreous
Oct 09, 2015Ahh, 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]
}
- ijdodOct 15, 2015
Nimbostratus
Unfortunately, you can't use the table command inside RULE_INIT.
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