Forum Discussion
Blaise_12761
Nimbostratus
Nov 05, 2007Transition from Foundry to LTM loadbalancer
Hello,
I am not sure if this has been addressed in the past, but I am in the process of moving from a Foundry platform to a LTM. One of the key features that I am going to need to implement is w...
Nov 05, 2007
This can be implemented in several ways.
1. HTTP Class Profile
In the LTM GUI (Assuming you have this feature licensed), Select Local Traffic.Virtual Servers.Profiles. Then from the drop down menus select Protocol.HTTP Class. In here you can create class profiles that associate certain classes of HTTP requests (Uris, Hosts, Headers, Cookies) to map to certain pools. In this case you could create the virtual server with the default pool of servers and then assign the class profile with the above URI's mapping to a secondary pool of servers.
2. iRules
Associate a default pool of servers to your Virtual server. Then assign an iRule like the following
when HTTP_REQUEST {
switch [string tolower [HTTP::uri]] {
"/test/something/junk123.swf" -
"/test/something/junk135.swf" -
"/test/something/junk157.swf" -
"/test/something/junk246.swf" {
pool swf_pool
}
}
}If you want to assign to multiple pools, you can use wildcards as follows
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/test/something/junk123.swf" -
"/test/something/junk135.swf" -
"/test/something/junk157.swf" -
"/test/something/junk246.swf" {
pool swf_pool
}
"*.gif" -
"*.jpg" -
"*.png" {
pool img_pool
}
}
}Hopefully this gives you enough to get you going.
-Joe
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