Cisco Systems 6000 manual Configuring Real Servers

Page 25

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

 

 

 

 

 

Image 25
Contents Contents Overview Describes the features of the CSM FeaturesThese sections describe the CSM Front Panel Description CSM front panel features are shown in FigureStatus LED RJ-45 Connector Operation ModeOff Red Orange Green Green to Orange Content Switching Module and Servers Client-to-CSM-to-Server Traffic Flow Client-to-Content Switching Module-to-Server Traffic FlowSafety Overview System Requirements CSM memory is not configurableMemory Requirements Hardware Supported Power RequirementsEnvironmental Requirements 72-876-01 Console Cable Not applicablePreparing to Install the CSM Installing the Content Switching ModuleRequired Tools Software RequirementsInstalling the CSM Power supply Installing Modules in the Catalyst 6000 Family Switch Verifying the Installation Verifying the InstallationAccessing Online Help Using the Command-Line InterfaceUpgrading to a New Software Release Set up a session between the supervisor engine and the CSM Upgrading from the Supervisor Engine BootflashCSM upgrade 127.0.0.zz c6slb-apc.revision-num.bin Routerconfig# power cycle module slot-numberCSM upgrade slot0 c6slb-apc.revision-num.bin Routerconfig# tftp-server slotxc6slb-apc.revision-num.binRouter config# power cycle module slot-number Upgrading from a Pcmcia CardSwitchport Configuring the Content Switching ModuleSwitchport access vlan Router# vlan databaseConfiguration Overview Configure the required parameters in the following sections Configuring VLANsSee for the following notes Configuring VLANsConfiguring Server-Side VLANs Configuring Client-Side VLANsConfiguring Server Farms Configuring Real Servers Configuring Policies Configuring Maps Configure multiple cookies Configure multiple cookies into a cookie mapConfiguring Sticky Groups Configuring Virtual Servers Configuring Dynamic Feedback Protocol Configuring TCP ParametersConfiguring Redirect Virtual Servers Configuring Client NAT Pools Configuring Server NAT Writing and Restoring ConfigurationsSingle Subnet Bridge Mode Configuration Configuration ExamplesConfigure a client-side Vlan Enter the Vlan modeConfigure a server-side Vlan Exit to have the configuration take effectVlan mode Secure Router Mode ConfigurationCreate the client-side Vlan 2 and enter the SLB Routerconfig# ip slb vlan 3 server Fault-Tolerant ConfigurationCreate the server-side Vlan 3 and enter the SLB Exit the submodeRouterconfig# mac access-list extended Venus Router# configure terminalRouterconfig# int GigabitEthernet 2/1 Routerconfig-if#service-policy input VenusConfiguration Parameter On Both Content Switching Modules Fault-tolerant configuration, the following rules applyAssign the Content Switching IP address on Create the client-side Vlan 2 and enter the SLB Vlan modeRouter B Hsrp address 192.158.38.10Define Vlan 9 as a fault-tolerant Vlan Assign the default route for VlanCreate the Content Switching primary Configure a client-side VLAN2Hsrp Configuration Overview Configuring HsrpCSG Vlan Configure Switch 2-FT2 Hsrp secondary as followsConfigure VLANs on Hsrp FT2 as follows Configuring CSM VLANsConfigure EtherChannel on both switches as follows Configuring Probes for Health MonitoringAdd ports to the EtherChannel as follows Http creates an Http probe with a default configuration Probe-name is the name of the probe being configured it hasIcmp creates an Icmp probe with a default configuration Telnet creates a Telnet probe with a default configurationHttp Probe Commands Available to all Probe ConfigurationsIcmp Probe FTP, SMTP, and Telnet Probe TCP ProbeDNS Probe Submode Understanding RHI Configuring Route Health InjectionRHI Overview Routing to VIP Addresses With RHI Routing to VIP Addresses Without RHIRouterconfig# ip slb vserver vserver1 Configuring RHI for Virtual ServersUnderstanding How the CSM Determines VIP Availability Understanding Propagation of VIP Availability InformationSafety Information Referral Warning Translated Safety WarningsRegulatory Standards Compliance Wrist Strap Warning Blank Faceplate Installation Requirement Warning Translated Safety Warnings Qualified Personnel Warning Related DocumentationRelease Notes for Catalyst 6000 Family IOS Software World Wide Web Obtaining DocumentationDocumentation CD-ROM Ordering DocumentationTo access Cisco.com, go to the following website Contacting TAC by Using the Cisco TAC WebsiteObtaining Technical Assistance Cisco.comContacting TAC by Telephone Obtaining Technical Assistance