Forum Discussion

Daddy_73321's avatar
Daddy_73321
Icon for Nimbostratus rankNimbostratus
Feb 09, 2010

Irule 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.