Forum Discussion
ra3ac_138315
Nimbostratus
May 10, 2014LTM - load balancing to the same web server
Hi,
I'm hoping someone has had the same scenario.
We have two identical web servers. The web servers host multiple sites which uses the same IP and a URL to differentiate the pages. I hav...
Kevin_Stewart
Employee
May 10, 2014Just to add to Henrik's excellent idea:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/app1*" { pool app1_pool }
"/app2*" { pool app2_pool }
}
} And then have a different pool and monitor(s) for each app. The beauty of this approach is that you scale up or down individual applications without affecting other services or modifying any code. If you wanted to get fancy with it, you could also do something like this:
if { [active_members app1_pool] < 1 } {
HTTP::respond 200 content "HTML maintenance page content"
} else {
pool app1_pool
}Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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