01-19-2009 05:55 AM
I have the next scenario:
Two servers WAS01 (IP 10.0.0.1) and WAS02 (IP 10.0.0.2), each one with this cookies:
WAS01= Cookie: $Version=0; ASPSESSIONIDQQCBRBTD=KBHBNKBCPMIOPMPPONLGENGO;
WAS02= Cookie: $Version=0; ASPSESSIONIDSSBCRCTC=ELKDELBCNKJHDNLFMIKIOFMD
I need to stuck the clients request based on cookies but the cookie is not fixed, so I need make the sticky based only in the prefix because everything after the "=" sign expires after 10 seconds.
I dont know what to do cause and aditional requirement is that the client need to be sticky as long as the cookie remains active ( 10 secs ).
Thanks a lot for all the help that can bring me.
Fran
01-20-2009 01:02 AM
Fran,
if these are the only 2 cookie names that will exist, you could use a class-map type http loadbalance like this :
switch/Admin(config-cmap-http-lb)# match http header Cookie header-value ?
switch/Admin(config-cmap-http-lb)# match http header Cookie header-value .*ASPSESSIONIDQQCBRBTD.*
But if the prefix does change as well, then why not use the cookie insert function from ACE.
ACE can insert its own cookie to guarantee stickyness.
Gilles.
01-20-2009 04:46 AM
Gilles
Thanks a lot for your help, the prefix will be ever the same for a server (and different between then), i am going to probe the sticky in the http header as you recommended me, but i still got 2 questions.
I need that when a client make a request against a server, stuck in there but if that server is going down stuck to another, is that possible?
other question is
The CSS can insert their own cookies?? i am totally ignorant :)
Thanks A lot
Fran
01-20-2009 05:37 AM
Fran,
for some reason I thought it was ACE not CSS.
ACE can't learn dynamic cookie.
So, simply ignore my recommendation.
I would suggest to use CSS function to insert its own cookie.
Just configure 'advanced-balance arrowpoint-cookie' and 'url "/*"' in your content rule config.
Stickyness will work.
Gilles.
01-20-2009 05:49 AM
Gilles
I already probed:
1.- in the content rule the advanced-balance Cookie and nothing, there is no match in sticky table and use the balance round robin (default), the client accepts cookies I checked that first.
2.- i put in the content rule the command string prefix $Version=0; ASPSESSIONIDQ and in the services the rest of the prefix but nothing.
3.- i use the string range in the content rule to match "ASPSESSIONID" and nothing.
the real thing is i have no idea of what to do
Fran
01-20-2009 08:44 AM
Fran,
see my previous post.
The CAN'T LEARN dynamic cookie.
So just go for cookie created by the CSS with the arrowpoint-cookie advanced-balance method.
gilles.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide