Layer 7 Load-Balancing Example - Cisco ACE-4710-K9 Administration Manual

Application control engine appliance
Table of Contents

Advertisement

Chapter 4
Configuring Class Maps and Policy Maps

Layer 7 Load-Balancing Example

Step 1
Step 2
Step 3
OL-11157-01
This example shows how to create a Layer 7 load-balancing traffic policy that
enables the following processes to occur on the ACE:
Load balances traffic to the SPORTS-SERVER and NEWS-SERVER server
farms based on the following criteria:
HTTP header and header value expression
URL expression
Classifies the 3-tuple flow of the VIP address, protocol, and port as matching
criteria for server load balancing
Utilizes an HTTP parameter map to enable HTTP persistence
Perform the following steps:
Create a Layer 7 class map that defines an HTTP header and header value
expression string and URL expression for load balancing to the
SPORTS-SERVER server farm.
host1/Admin(config)# class-map type http loadbalance match-all
SPORTS-MAP_CLASS
host1/Admin(config-cmap-http-lb)# match http header host header-value
.*test.com
host1/Admin(config-cmap-http-lb)# match http url /sports/
host1/Admin(config-cmap-http-lb)# exit
Create a Layer 7 class map that defines a URL expression for load balancing to
the NEWS-SERVER serverfarm.
host1/Admin(config)# class-map type http loadbalance NEWS-MAP_CLASS
host1/Admin(config-cmap-http-lb)# match http url /news/
host1/Admin(config-cmap-http-lb)# exit
Create a Layer 7 server load-balancing policy by entering the following
commands:
host1/Admin(config)# policy-map type loadbalance first-match
L7_SLB_POLICY
host1/Admin(config-pmap-lb)# class SPORTS-MAP_CLASS
host1/Admin(config-pmap-lb-c)# serverfarm SPORTS-SERVER
host1/Admin(config-pmap-lb-c)# exit
host1/Admin(config-pmap-lb)# class NEWS-MAP_CLASS
host1/Admin(config-pmap-lb-c)# serverfarm NEWS-SERVER
host1/Admin(config-pmap-lb-c)# exit
Cisco 4700 Series Application Control Engine Appliance Administration Guide
Class Maps and Policy Map Examples
4-63

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

4700 series

Table of Contents