Hello Experts,
I have a couple of ACE that load balances two web servers using stickyness with cookie insert (BTW the topology is one armed mode). You can see the sanitized config below:
rserver host WEBSERVER1
ip address 10.10.10.101
inservice
rserver host WEBSERVER2
ip address 10.10.10.102
inservice
serverfarm host MY-SF
rserver WEBSERVER1
inservice
rserver WEBSERVER2
inservice
sticky http-cookie MY-COOKIE MY-SF-STICKY
cookie insert
replicate sticky
serverfarm MY-SF
class-map match-all WEB-VIP
2 match virtual-address 10.10.10.100 tcp eq www
policy-map type loadbalance http first-match WEB-POLICY
class class-default
sticky-serverfarm MY-SF-STICKY
policy-map multi-match VIPS
class WEB-VIP
loadbalance vip inservice
loadbalance policy WEB-POLICY
loadbalance vip icmp-reply active
nat dynamic 10 vlan 222
interface vlan 222
ip address 10.10.10.1 255.255.255.0
alias 10.10.10.10 255.255.255.0
peer ip address 10.10.10.2 255.255.255.0
access-group input IP-ICMP-ANY
nat-pool 10 10.10.10.200 10.10.10.200 netmask 255.255.255.0 pat
service-policy input VIPS
no shutdown
The web application asks the Client to connect to two different URLs, for example red.xyz.com and blue.xyz.com.
For each URL the Client receives correctly a cookie. How can we force the ACE to send for each of the two URLs a cookie that sticks to a unique real server ? Shall we change the load balancing policy ?
Thanks a Lot
Andrea