Forum Discussion
manc_63343
Apr 30, 2010Nimbostratus
Can LTM be used to configure Active and Passive Servers?
For a given vip is it possible to define pool of servers that are active and also some pool of members that passive. Basically this is what I want to do:
1. Define active pool of servers for...
Michael_Yates
May 10, 2010Nimbostratus
Manc,
I don't think that you can do what your planning with a Single Virtual Server or a Single Pool.
LTM -> WS 1 - 4 -> DB1
LTM -> WS 5 - 10 -> DB2
You would need 2 Virtual Servers and 2 Pools in order to do this (but then you would have to figure out how to balance the load between these Virtual Servers):
LTM -> Virtual Server 1 (10.10.10.10) - Pool 1 (WS 1 - 4) -> DB1
LTM -> Virtual Server 2 (20.20.20.20) - Pool 2 (WS 5 - 10) -> DB2
If you wanted to do something similar with a single Virtual Server and a Single Pool you could configure the following:
Priority Activation Group - Less than.... 5
10.10.10.1 - Priority Activation Group 2
10.10.10.2 - Priority Activation Group 2
10.10.10.3 - Priority Activation Group 2
10.10.10.4 - Priority Activation Group 2
10.10.10.5 - Priority Activation Group 2
10.10.10.6 - Priority Activation Group 1
10.10.10.7 - Priority Activation Group 1
10.10.10.8 - Priority Activation Group 1
10.10.10.9 - Priority Activation Group 1
10.10.10.10 - Priority Activation Group 1
This would keep five servers active and five servers on Hot-Standby (which is somewhat of an overkill). A failure would be less disruptive (and more evenly distrubute the load) if all of the servers were active in the pool at the same time.
Rudysetiawan,
Yes. Primary and Secondary Farm's can share the same Virtual Server in the scenario that you are describing. See Bhattman's iRule earlier in this discussion chain for one method and an iRule Example.
I am unsure what you mean by this:
And also to add "primary farm is unavailable" means that when LTM found a blank page when it tried to query the members.
Did you want something put into the LTM Log? If so, you can add to Bhattman's iRule example. This will put a comment into the F5 LTM Log located in /var/log/ltm
when CLIENT_ACCEPTED {
if { [active_members active_pool ] >= 1 } {
pool active_pool
} else {
log local0. "Primary Farm is Unavailable"
pool passive_pool
}
}
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