cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
492
Views
5
Helpful
2
Replies

ACE: stickyness for one of the port of server while no sticky for others

gavin han
Level 1
Level 1

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

2 Replies 2

Surya ARBY
Level 4
Level 4
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

Thanks! I'll try to implement it..

Review Cisco Networking for a $25 gift card