Forum Discussion
hooleylist
Mar 09, 2012Cirrostratus
Hi Dan,
If all of the content for each application is under a single directory, this should be really simple to implement using a switch statement in an iRule. Here's an example. As you want to move new apps to a separate pool, just add the path to the switch statement and point it to a new pool
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::path]] {
"/app1*" {
pool app1_pool
}
"/app2*" {
pool app2_pool
}
default {
pool default_pool
}
}
}
Or if all of the new servers have the code for all of the URIs, you could combine the switch cases to point to a single new pool:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::path]] {
"/app1*" -
"/app2*" -
"/app3*" {
pool app2_pool
}
default {
pool default_pool
}
}
}
Aaron