ACE Load Balancing Briefing with Examples of HTTP
ACE Load Balancing Briefing with Examples of HTTP
Configuration Sequence
1- Servers
2- Server Farm
3-Define Class-map for Virtual IP Address [ that will be used to receive request for Load Balancing Servers ]
4- Policy for Sever Farm
5- Policy for Load Balancing
# Defining Servers
server host SERVER1
ip address 172.168.12.10
inservice
rserver host SERVER2
ip address 192.168.12.11
inservice
rserver host SERVER3
ip address 192.168.12.12
inservice
rserver host SERVER4
ip address 192.168.12.13
inservice
rserver host SERVER5
ip address 192.168.12.14
inservice
rserver host SERVER6
ip address 192.168.12.15
inservice
rserver host SERVER7
ip address 192.168.12.16
inservice
rserver host SERVER8
ip address 192.168.12.17
inservice
# Server FARMS
serverfarm host PREDICTOR
probe TCP
rserver SERVER1
inservice
rserver SERVER2
inservice
rserver SERVER6
inservice
rserver SERVER7
no inservice
!
sticky http-cookie COOKIE_TEST STKY-GRP-43
cookie offset 1 length 999
timeout 30
replicate sticky
serverfarm PREDICTOR
# VIP Defined
class-map match-all L4PREDICTOR_117:80_CLASS
2 match virtual-address 192.168.120.117 tcp eq www
# Server Farm Policy
policy-map type loadbalance first-match L7PLBSF_PREDICTOR_POLICY
class class-default
sticky-serverfarm STKY-GRP-43
# Load Balancing Policy
policy-map multi-match L4SH-Gold-VIPs_POLICY ==> LB policy Name
class L4PREDICTOR_117:80_CLASS ==> Called VIP clas
loadbalance vip inservice
loadbalance policy L7PLBSF_PREDICTOR_POLICY ===> called Server FARM
loadbalance vip icmp-reply active
nat dynamic 1 vlan 120
appl-parameter http advanced-options PERSIST-REBALANCE
# The Interface from where the Traffic will Enter and Leave to the Server FARM [ Servers gateway should be ACE ]
interface vlan 120
description Upstream VLAN_120 – Clients and VIPs
ip address 192.168.120.1 255.255.255.0
fragment chain 20
fragment min-mtu 68
access-group input ACL1
nat-pool 1 192.168.120.70 192.168.120.70 netmask 255.255.255.0 pat
service-policy input L4SH-Gold-VIPs_POLICY
no shutdown