cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
885
Views
0
Helpful
5
Replies

Balancing services with clients through Proxy

guigonza
Level 1
Level 1

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.

1 Accepted Solution

Accepted Solutions

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

http://www.cisco.com/en/US/docs/interfaces_modules/services_modules/ace/vA4_2_0/command/reference/sticky.html#wp1010723

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

View solution in original post

5 Replies 5

asharmav
Level 1
Level 1

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

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

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

http://www.cisco.com/en/US/docs/interfaces_modules/services_modules/ace/vA4_2_0/command/reference/sticky.html#wp1010723

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

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.

Sure,

Please let me know if you need more help regarding your setup.

Regards

Abijith

Review Cisco Networking for a $25 gift card