Layer 7 Load Balancing - Cisco catalyst 6500 series Configuration Note

Content switching module
Hide thumbs Also See for catalyst 6500 series:
Table of Contents

Advertisement

Layer 7 Load Balancing

max parse len = 2000, persist rebalance = TRUE
ssl sticky offset = 0, length = 32
conns = 0, total conns = 6
Default policy:
Policy
-----------------------------------------------------
SOURCE-IP-50
(default)
# This example shows that SERVER3 and SERVER4 have received 3 connections each.
Cat6k-2# show mod csm 5 real detail
SERVER1, WEBFARM, state = OPERATIONAL
address = 10.20.220.10, location = <NA>
conns = 0, maxconns = 4294967295, minconns = 0
weight = 8, weight(admin) = 8, metric = 0, remainder = 0
total conns established = 0, total conn failures = 0
SERVER2, WEBFARM, state = OPERATIONAL
address = 10.20.220.20, location = <NA>
conns = 0, maxconns = 4294967295, minconns = 0
weight = 8, weight(admin) = 8, metric = 0, remainder = 0
total conns established = 0, total conn failures = 0
SERVER3, WEBFARM2, state = OPERATIONAL
address = 10.20.220.30, location = <NA>
conns = 0, maxconns = 4294967295, minconns = 0
weight = 8, weight(admin) = 8, metric = 0, remainder = 0
total conns established = 3, total conn failures = 0
SERVER4, WEBFARM2, state = OPERATIONAL
address = 10.20.220.40, location = <NA>
conns = 0, maxconns = 4294967295, minconns = 0
weight = 8, weight(admin) = 8, metric = 0, remainder = 0
total conns established = 3, total conn failures = 0
Cat6k-2#
Layer 7 Load Balancing
This example shows how to make load-balancing decisions based on Layer 7 information. In this case,
the CSM terminates the TCP connection, buffers the request, and parses it to see if the request matches
the policy conditions. When a load-balancing decision is made, the CSM opens the connection to the
selected server and splices the two flows together.
The configuration in this example requires the use of maps and policies. A policy is a list of conditions
and actions that are taken if all the conditions are true.
Cat6k-2(config-module-csm)# policy test
Cat6k-2(config-slb-policy)# ?
SLB policy config
client-group
cookie-map
default
exit
header-map
no
reverse-sticky
serverfarm
set
sticky-group
url-map
Catalyst 6500 Series Content Switching Module Configuration Note
A-26
server farm = WEBFARM, backup = <not assigned>
sticky: timer = 0, subnet = 0.0.0.0, group id = 0
Tot matches
6
0
define policy client group
define policy cookie map
Set a command to its defaults
exit slb policy submode
define policy header map
Negate a command or set its defaults
define sticky group for reverse traffic
define policy serverfarm
set policy parameters
define policy sticky group
define policy URL map
Client pkts
Server pkts
36
30
0
0
Appendix A
Configuration Examples
OL-4612-01

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 6000 series

Table of Contents