04-01-2011 01:43 PM
Hi,
I'm new to ACE and this is kind of confusing compare to CSS.
I'm configuring stickyness for two servers and load balancing ports 80 and 11230. I need to configure stickyness for port 80 while no stickyness for port 11230.
so on CSS, config would look like:
content lbr:80
vip add 10.10.10.1
balance weightedrr
port 80
protocol tcp
add service server1:80
add service server2:80
advance sticky-srcip
sticky-inact-timeout 60
active
content lbr:11230
vip add 10.10.10.1
balance weightedrr
port 11230
protocol tcp
add service server1:80
add service server2:80
active
how would config look like in ACE? pls advise......
04-02-2011 12:10 AM
probe tcp generic-tcp
interval 5
passdetect interval 20
passdetect count 2
connection term forced
exit
serverfarm host LBR-80-SF
failaction purge
predictor leastconns
probe generic-tcp
rserver RSRV1 80
inservice
rserver RSRV2 80
inservice
exit
exit
serverfarm host LBR-11230-SF
failaction purge
predictor leastconns
probe generic-tcp
rserver RSRV1 80
inservice
rserver RSRV2 80
inservice
exit
exit
sticky ip-netmask 255.255.255.255 address source LBR80-SG
timeout 3600
replicate sticky //only required if HA is in use
serverfarm LBR-80-SF
exit
class-map match-any LBR80-CM
2 match virtual-address 10.10.10.1 255.255.255.255 tcp eq www
exit
class-map match-any LBR11230-CM
2 match virtual-address 10.10.10.1 255.255.255.255 tcp eq 11230
exit
policy-map type loadbalance first-match LBR80-PM
class class-default
sticky-serverfarm LBR80-SG
exit
exit
policy-map type loadbalance first-match LBR11230-PM
class class-default
serverfarm LBR-11230-SF
exit
exit
policy-map multi-match LBR-LB
class LBR80-CM
loadbalance vip inservice
loadbalance policy LBR80-PM
loadbalance vip icmp-reply
class LBR11230-CM
loadbalance vip inservice
loadbalance policy LBR11230-PM
loadbalance vip icmp-reply
exit
exit
interface vlan xxx
ip address xxx
alias xxx
peer ip address xxx
access-group input xxx
service-policy input LBR-LB
no shutdown
exit
04-03-2011 07:57 AM
Thanks! I'll try to implement it..
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