Forum Discussion
Florin_Andrei_2
Nimbostratus
Mar 09, 2010multiple pools with one virtual server
Situation:
Two data centers, A and B. Each one has a load balancer. Each load balancer has a virtual server. Each virtual server points to a local pool of servers.
So, virtual server A on load balancer A uses pool of servers A, and v.s. B uses pool B. So far so good.
I am trying to find out whether a virtual server can have more than one pool, and switch to the "backup pool" if the primary pool goes down. Basically, add pool B to virtual server A (on load balancer A), and have it take over the virtual server if pool A goes down.
Is there a way to do that?
The reason why I'm trying to do it:
The two data centers are disaster recovery sites, and the clients are sent to one site or another based on DNS. But some clients (Explorer) ignore the DNS TTL so remain stuck on one site.
So, if clients are stuck on site B while they should really go to site A, I would like the load balancer B to automatically add pool A to virtual server B - this way the clients are automatically routed internally to the right servers. This assumes the internal routing between sites still works.
4 Replies
- L4L7_53191
Nimbostratus
This sounds like a good use case for priority group activation. Put the servers in the priority group as 'backup' so when n number of systems from the local pool go offline (or all of them) you can spin up the members at the remote site. Check the manuals on ask.f5.com for information on setting this up. It's quite straight forward. - The_Bhattman
Nimbostratus
Hi Florin, - Florin_Andrei_2
Nimbostratus
Yes, I think I could do it with priority group activation. I was wondering if there's a way to do it so that the two groups of servers are more neatly separated. - Florin_Andrei_2
Nimbostratus
So how about this:when CLIENT_ACCEPTED { if { ([active_members pool_A] < 1) and ([active_members pool_B] >= 1) } { pool pool_B } if { ([active_members pool_B] < 1) and ([active_members pool_A] >= 1) } { pool pool_A } }
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