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
- hoolio
Cirrostratus
Are you using cookie hash persistence or the hash persistence profile which references an iRule? - hoolio
Cirrostratus
dupe - jma_44485
Nimbostratus
Thanks for the reply. - hoolio
Cirrostratus
Are the DNS aliases on the same domain? If you only have one pool and all pool members answer for both host header values, why are you inspecting the host header? - jma_44485
Nimbostratus
I am trying to figure out why http requests are not balanced according to my above configuration. If LTM checks persistence after http request is trigged, the new requests should be forwarded to the other node in the pool. Not sure if I use the wrong irule. - hoolio
Cirrostratus
Are the DNS aliases on the same domain? If you only have one pool and all pool members answer for both host header values, why are you inspecting the host header? - jma_44485
Nimbostratus
I am trying to figure out why http requests are not balanced according to my above configuration. If LTM checks persistence after http request is trigged, the new requests should be forwarded to the other node in the pool. Not sure if I use the wrong irule. - hoolio
Cirrostratus
Are the DNS aliases on the same domain? If you only have one pool and all pool members answer for both host header values, why are you inspecting the host header? - jma_44485
Nimbostratus
I am trying to figure out why http requests are not balanced according to my above configuration. If LTM checks persistence after http request is trigged, the new requests should be forwarded to the other node in the pool. Not sure if I use the wrong irule. - jma_44485
Nimbostratus
Yes, DNS alias are on the same doman. They are like "abc.AAA.com", "123.AAA.com", "xyz.AAA.com", etc.
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