Configuring the Content Switching Module

This example shows how to configure a server farm, named p1_nat, using the least-connections

(leastconns) algorithm. The least-connections algorithm specifies which real server handles the next new connection for this server farm.

Router(config)# ip slb serverfarm pl_nat

Router(config-slb-sfarm)# predictor leastconns

Configuring Real Servers

Real servers are physical devices assigned to a server farm. Real servers provide the services that are load balanced. When the server receives a client request, it pulls matching information from a disk and sends it to the CSM for forwarding to the client.

You configure the real server in the real server configuration mode by specifying the server IP address and port when you assign it to a server farm. You enter the real server configuration mode from the serverfarm mode where you are adding the real server.

To configure real servers, perform this task:

 

Command

Purpose

Step 1

 

 

Router(config-slb-sfarm)# real

Identify a real server as a member of the server farm and

 

ip-address [port]

enter the real server configuration mode. An optional

 

 

translation port can also be configured1, 2.

Step 2

Router(config-slb-real)# weight

(Optional) Set the weighting value for the virtual server

 

weighting-value

predictor algorithm to assign the server’s workload

 

 

capacity relative to the other servers in the server farm if

 

 

the round robin or least connection is selected2.

Step 3

Router(config-slb-real)# maxconns

(Optional) Set the maximum number of active

 

max-conns

connections on the real server2. When the specified

 

 

maximum is reached, no more new connections are sent

 

 

to that real server until the number of active connections

 

 

drops below the minimum threshold.

 

 

 

Step 4

Router(config-slb-real)# minconns

(Optional) Set the minimum connection threshold2.

 

min-conns

 

 

 

 

 

Step 5

Router(config-slb-real)# inservice

Enable the real server for use by the CSM2.

 

 

Note

Repeat Steps 1 through 5 for each real server you

 

 

 

are configuring.

Step 6

 

 

Router# show ip slb reals [sfarm

(Optional) Display information about configured real

 

serverfarm-name] [detail]

servers. The vserver option limits the display to real

 

 

servers associated with a particular virtual server. The

 

 

detail option displays detailed real server information.

Step 7

 

 

Router# show ip slb conns [sfarm

Display active connections to the CSM. The sfarm

 

vserver virtserver-name] [client

option limits the display to connections associated with

 

ip-address] [detail]

a particular server farm. The client option limits the

 

 

 

 

display to connections for a particular client. The detail

 

 

option displays detailed connection information.

 

 

 

 

1.Enter the exit command to leave a mode or submode. Enter the end command to return to the menu’s top level.

2.The no form of this command restores the defaults.

 

 

Catalyst 6000 Family Content Switching Module Installation and Configuration Note

 

 

 

 

 

 

 

78-11631-02 Rev. A0

 

 

25

 

 

 

 

 

Page 25
Image 25
Cisco Systems 6000 manual Configuring Real Servers