Forum Discussion
avik_bose_1048
Nimbostratus
Aug 07, 2008Need help for cache load balancing irule
Hi,
Need help in configuring an irule for cache load balancing.
The customer has a group of 5 bluecoat proxies which are used to load balance all port 80 traffic.
...
Nicolas_Menant
Employee
Aug 07, 2008Hi,
the [HTTP:uri] returns the path after the HOSTNAME so for example, the [HTTP::uri] value for www.dailymotion.com/test/video_funny.php would be: /test/video_funny.php. For more information check this: Click here
In your case it would be best to validate the HTTP::host value -> Click here
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] equals "www.youtube.com"} {
pool pool1
} else {
pool pool2
}
}
You may want to filter the IP too of dailymotion since the client may want to reach it through the IP address directly :
Non-authoritative answer:
Name: www.dailymotion.com
Addresses: 195.8.214.141, 195.8.214.142, 195.8.214.140
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
"www.dailymotion.com" -
"195.8.214.141" -
"195.8.214.142" -
"195.8.214.140" {
if {[active_members pool1] > 1]} {
pool pool1
else {
pool pool2
}
}
default {
pool pool2}
}
}
It may be more interesting to use a class if you add more stuff to filter to different bluecoat: Click here
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