Cisco ACE Module New Farm - 2 Servers http/https - w/ sticky

Create Rservers Create Serverfarm Create VIP This is specific to my environment and doesn't create the probes but should be easy enough or enough of a baseline for most simple configs.

mbalasko
February 16, 2012











rserver host %{RSERVER01_HOST}%
description %{RSERVER01_DESC}%
ip address %{RSERVER01_IPADD}%
probe PRB-ICMP
inservice

rserver host %{RSERVER02_HOST}%
description %{RSERVER02_DESC}%
ip address %{RSERVER02_IPADD}%
probe PRB-ICMP
inservice

serverfarm host SF-%{SERVERFARM_NAME}%
predictor leastconns slowstart 120
desc %{SERVERFARM_DESC}%
rserver %{RSERVER01_HOST}%
probe %{SF_PROBE}%
inservice
rserver %{RSERVER02_HOST}%
probe %{SF_PROBE}%
inservice

class-map match-all VS-%{VIP_NAME}%
  2 match virtual-address %{VIP_IPADDRESS}% tcp eq www
  3 match virtual-address %{VIP_IPADDRESS}% tcp eq https


sticky ip-netmask 255.255.255.255 address source STKY-SRC-IP-$[VIP_NAME}%
  timeout 720
  replicate sticky
  serverfarm SF-%{SERVERFARM_NAME}%

policy-map type loadbalance first-match VS-%{VIP_NAME}%
  class class-default
    sticky-serverfarm STKY-SRC-IP-%{VIP_NAME}%
    
class VS-%{VIP_NAME}%
   loadbalance vip inservice
    loadbalance policy VS-%{VIP_NAME}%
    loadbalance vip icmp-reply active