Forum Discussion
Daddy_73321
Nimbostratus
Feb 09, 2010Irule issue
Hello All,
I have an issue with the below irule written to direct the traffic to a node or a pool.
I have a pool CMS-http-pool with below two members.
pool CMS-http-pool {
monitor all http
member 10.103.42.100:http
member 10.103.42.101:http
}
I am redirecting an url to a specific node of the conditions matches are else move to the pool for load balancing.
Below is the irule
when HTTP_REQUEST {
if { ([HTTP::uri] starts_with "/citsitdocumentation") or ([HTTP::uri] starts_with "/psoftdms") or ([HTTP::uri] starts_with "/cso") } {
node 10.103.42.100 80
} else {
pool CMS-http-pool
}
}
I have noticed the redirect to node is working and if the condition is not met it is moving to the pool. Here is my issue now, when the condition is not met and the Load balancing is done and pool member 10.103.42.101 is serving in the pool, if i try to reach a URL in the condition with the same browser. I get cookie errors and the login page is not loading.
I am using the below cookie.
profile persist CMS_Cookie {
defaults from cookie
mode cookie
cookie mode insert
cookie name CMS
cookie expiration 0d 00:00:00
}
virtual CMS-http-vip {
destination 10.103.42.121:http
ip protocol tcp
profile http tcp
persist CMS_Cookie
rule CMS-http-pool-irule
}
Thanks in advance.
Renith
IPsoft, Inc.
Could someone please help me with this case.
- hoolio
Cirrostratus
Hi Renith, - Daddy_73321
Nimbostratus
Hi Aaron, - hoolio
Cirrostratus
What cookie error do you see? Is the error coming from the application or LTM? - Daddy_73321
Nimbostratus
Hi Aaron, - hoolio
Cirrostratus
Hi Renith, - Daddy_73321
Nimbostratus
Hi Aaron, - hoolio
Cirrostratus
Hi Renith, - Daddy_73321
Nimbostratus
I have got few session taken w.r.t the irule conditions, unable to trace anything from this. - hoolio
Cirrostratus
Thanks for that. Can you add details of the pool member selected to the browser logs?when SERVER_CONNECTED { log local0. "[IP::client_addr]:[TCP::client_port]: Connected to server [IP::server_addr]:[TCP::server_port]" }
- Daddy_73321
Nimbostratus
Thanks Aaron.
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