Forum Discussion
rodrigo_Benzaqu
Nimbostratus
May 23, 2006HASH PERSISTENCE
Hi guys, I´m trying to use HASH PERSISTENCE.
In my POOL_IMG I have 2 WEBCACHEs.
For some reason 172.16.0.188 is receiving all the traffic, and no traffic to 172.16.0.189.
What is wrong ? Is possible to obteing the HASH value for each URL ?
Thanks
Rodrigo.
virtual VS_IMG {
destination 172.16.0.12:http
ip protocol tcp
profile http oneconnect tcp
persist hash
pool POOL_IMG
rule cache_rule
}
rule cache_rule {
when HTTP_REQUEST {
if { [HTTP::uri] != "xxxx" } {
pool POOL_IMG
set key [crc32 [domain [HTTP::host] 2]]
Make sure persistence record is added for this domain
persist hash $key
} else {
pool POOL_IMG
}
if { [string toupper [HTTP::method]] eq "CONNECT" } {
Proxy connect method should continue as a passthru
HTTP::disable
}
}
}
pool POOL_IMG {
lb method predictive
min active members 1
monitor all http
member 172.16.0.188:http priority 2
member 172.16.0.189:http priority 2
member 172.16.0.234:http
}
3 Replies
- Colin_Walker_12Historic F5 AccountIt sounds more like you're having troubles with the load balancing within the pool itself than a problem with the iRule.
Are you receiving any errors in your /var/log/ltm log when passing traffic through the Virtual with the Rule enabled?
I'd try toying with the load balancing settings in the pool to see if you can get some traffic to route to the other host.
If you do suspect an error in the iRule after checking out the pool settings and testing things, then I'd start by adding some log lines in your iRule to let you know what's going on at each logical step of the process.
HTH,
Colin - rodrigo_Benzaqu
Nimbostratus
Thanks for your reply.
I think I don´t have problem with the load balancing , maybe I don´t explain my goal very good.
let me try to do it.
I have 2 Netcache (Reverse Proxy), both belong to a Virtual Server.
Now, if you go to this VS yo will go either to Netcache1 or Netcache2. If there is a way to have a HASH based on the URL to send some traffic to Netcache1 and not the same traffic to Netcache2 ?
I mean, now I have duplicated object on both Netcaches.
Thanks
Rodrigo - Deb_Allen_18Historic F5 Accountcheck out this article for some helpful info on this topic:
http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=135 (Click here)
/deb
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
