10-18-2011 10:47 AM
Hi ...
I have a infrastructure with Cisco ACE for balancing two Web Servers.
The inside users are using a proxy server.
We need to configure persistence for the sessions, but we can't use sticky ip-netmask because of proxy.
What is the best way to do this persistence and how we can configure it ?
I'll appreciate your help.
In the attachments, the schema and configuration of the ACE.
Solved! Go to Solution.
10-18-2011 11:12 AM
sticky http-cookie ACE-Insert web-sticky
cookie insert browser-expire
timeout 5
serverfarm XYZ
policy-map type loadbalance http first-match ABC
class class-default
sticky-serverfarm web-sticky
Please refer to the above example config and the config reference link which will tell you how to configure these cookie insert.
If the server is not setting any cookie , then you need to use cookie insert feature.
Hope this helps.
Regards
Abijith
10-18-2011 10:57 AM
Hi,
You can use the cookie insert feature of ace to achive loadbalencing. Client requests will arrive at the VIP, and the ACE will check the request to see if it contains a cookie. If it does, the sticky table will be checked to see which server should receive the request. If the cookie entry has expired, or if the client does not have a cookie the ACE will pick the appropriate server to receive the request based on the requested URL. When the server responds ACE will insert a cookie into the HTTP Response to so that upon future requests client persistence to the server will be maintained.
Hope this helps achieve persistance based loadbalencing.
Regards
Abijith
10-18-2011 11:03 AM
Thanks Asharmav, don't you have any example configuration ?
When I try to configure this stickyness with http cookies the ACE I've seen the cookie name in the command sentence of configuration. When I read the manual it talks about cookie name which the ACEs are expecting to see.
I have doubs and I don't understand the configuration in this case. Would you have any example to do that ?
Thanks for help, and apologize my ignorance ...
10-18-2011 11:12 AM
sticky http-cookie ACE-Insert web-sticky
cookie insert browser-expire
timeout 5
serverfarm XYZ
policy-map type loadbalance http first-match ABC
class class-default
sticky-serverfarm web-sticky
Please refer to the above example config and the config reference link which will tell you how to configure these cookie insert.
If the server is not setting any cookie , then you need to use cookie insert feature.
Hope this helps.
Regards
Abijith
10-18-2011 02:17 PM
Thanks a lot Friend ...
I configured as an example, and it's working fine.
Now we are checking details with cookies timeouts and persistance sessions to validate the final setup.
Thanks.
10-18-2011 05:50 PM
Sure,
Please let me know if you need more help regarding your setup.
Regards
Abijith
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