Forum Discussion
jma_44485
Nimbostratus
Oct 10, 2009Irule question about Hash persistence
Hi,
I am really newbie of Irules. The issue I have is that the load is not balanced on our web servers. I have virtual server AAA in BigIP LTM. Hash_persistence profile is assigned to the virtual server AAA. Irule is assigned to the hash persistence profile. The Irule forwards http request to a pool "webpool" with round robin method. Two nodes are in that pool.
The irule is like following.
if { [HTTP::header host] eq "xxx.xxx.com" } {
pool webpool}
elseif { [HTTP::header host] eq "xxx.xxx.com" } {
pool webpool}
...
I have been trying to figure out why the load cannot be balanced in the webpool. I see the Irule "when HTTP_REQUEST { persist hash [HTTP::uri]}" posted on DevCentral, but I don't know how to use it in our environment. Can anyone shed some lights to me?
Many Thanks
19 Replies
- hoolio
Cirrostratus
I'd suggest just doing the following:
Removing the hash persistence profile, add a cookie insert persistence profile and testing?
If the persistence fails, you might need to hardcode the domain on the persistence cookie using an iRule like this. You'll need to update the persistence cookie name and the domain you want to set it with. Make sure to prepend a period to the beginning of the domain (ie .aaa.com, not aaa.com).when HTTP_RESPONSE { Check if persistence cookie has a value if {[HTTP::cookie "BIGipServerMy_pool_name"] ne ""}{ Set domain on the persistence cookie HTTP::cookie domain "BIGipServerMy_pool_name" ".aaa.com" } }
Aaron - hoolio
Cirrostratus
dupe - hoolio
Cirrostratus
dupe - hoolio
Cirrostratus
dupe - hoolio
Cirrostratus
dupe - hoolio
Cirrostratus
dupe - jma_44485
Nimbostratus
Many Thanks - jma_44485
Nimbostratus
Many Thanks - jma_44485
Nimbostratus
Many Thanks
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
