![]() |
Catalyst 6500 Series Switch Content Switching Module (CSM) Installation and Configuration Note, Software Release 2.2
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Health Monitoring
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Table of ContentsConfiguring Health MonitoringConfiguring Probes for Health Monitoring Probe Configuration Commands
Configuring Route Health InjectionConfiguring an HTTP Probe Configuring an ICMP Probe Configuring a TCP Probe Configuring FTP, SMTP, and Telnet Probes Specifying the DNS Resolve Request Understanding RHI
Configuring Inband Health MonitoringRHI Overview
Configuring RHI for Virtual ServersRouting to VIP Addresses Without RHI Routing to VIP Addresses with RHI Understanding How the CSM Determines VIP Availability Understanding Propagation of VIP Availability Information Configuring HTTP Return Code Checking Configuring Health MonitoringThis chapter describes how to configure the health monitoring on the CSM and contains these sections: Configuring Probes for Health MonitoringConfiguring probes to the real servers allows you to determine if the real servers are operating correctly. A real server's health is categorized as follows:
The CSM supports probes used to monitor real servers. Configuring a probe involves the following: The CSM supports a variety of probe types that monitor real servers, including FTP, DNS, or HTTP.
To set up a probe, you must configure it by naming the probe and specifying the probe type while in probe submode. After configuring a probe, you must associate it with a server farm for the probe to take effect. All servers in the server farm receive probes of the probe types that are associated with that server farm. You can associate one or more probe types with a server farm. After you configure a probe, associate single or multiple probes with a server farm. All servers in the server farm receive probes of the probe types that are associated with that pool. To specify a probe type and name, perform this task:
This example shows how to configure a probe:
Probe Configuration CommandsThese commands are common to all probe types:
Configuring an HTTP ProbeAn HTTP probe establishes an HTTP connection to a real server and then sends an HTTP request and verifies the response. The probe probe-name http command places the user in HTTP probe configuration submode. To configure an HTTP probe, perform this task:
Configuring an ICMP ProbeAn ICMP probe sends an ICMP echo (for example, ping) to the real server. The probe icmp command enters the ICMP probe configuration mode. All the common probe commands are supported except the open command, which is ignored. To configure an ICMP probe, perform this task:
Configuring a TCP ProbeA TCP probe establishes and removes connections. The probe tcp command enters the TCP probe configuration mode. All the common probe commands are supported. To configure a TCP probe, perform this task:
Configuring FTP, SMTP, and Telnet ProbesAn FTP, SMTP, or Telnet probe establishes a connection to the real server and verifies that a greeting from the application was received. The probe (ftp, smtp, or telnet) command enters the corresponding probe configuration mode. All the probe common options are supported. Multiple status ranges are supported, one command at a time. To configure a status code to expect from the FTP, SMTP, or Telnet probe, perform this task:
Specifying the DNS Resolve RequestA DNS probe sends a domain name resolve request to the real server and verifies the returned IP address. The probe dns command places the user in DNS probe configuration submode. All the probe common options are supported except open, which is ignored. To specify the domain name resolve request, perform this task:
Configuring Route Health InjectionThese sections describe the route health injection (RHI): Understanding RHIThese sections describe the RHI: RHI OverviewRHI allows the CSM to advertise the availability of a VIP address throughout the network. Multiple CSM devices with identical VIP addresses and services can exist throughout the network. One CSM can override the server load-balancing services over the other devices if the services are no longer available on the other devices. One CSM also can provide the services because it is logically closer to the client systems than other server load-balancing devices.
To enable RHI, configure the CSM to do the following:
The MSFC periodically propagates the VIP address availability information that RHI provides.
Routing to VIP Addresses Without RHIWithout RHI, traffic reaches the VIP address by following a route to the client VLAN to which the VIP address belongs. When the CSM powers on, the MSFC creates routes to client VLANs in its routing table and shares this route information with other routers. To reach the VIP, the client systems rely on the router to send the requests to the network subnet address where the individual VIP address lives. If the subnet or segment is reachable but the virtual servers on the CSM at this location are not operating, the requests fail. Other CSM devices can be at different locations. However, the routers only send the requests based on the logical distance to the subnet. Without RHI, traffic is sent to the VIP address without any verification that the VIP address is available. The real servers attached to the VIP might not be active.
Routing to VIP Addresses with RHIWith RHI, the CSM sends advertisements to the MSFC when VIP addresses become available and withdraws advertisements for VIP addresses that are no longer available. The router looks in the routing table to find the path information it needs to send the request from the client to the VIP address. When the RHI feature is turned on, the advertised VIP address information is the most specific match. The request for the client is sent through the path where it reaches the CSM with active VIP services. When multiple instances of a VIP address exist, a client router receives the information it needs (availability and hop count) for each instance of a VIP address, allowing it to determine the best available route to that VIP address. The router picks the path where the CSM is logically closer to the client system.
Understanding How the CSM Determines VIP AvailabilityFor the CSM to determine if a VIP is available, you must configure a probe (HTTP, ICMP, Telnet, TCP, FTP, SMTP, or DNS) and associate it with a server farm. With probes configured, the CSM performs these checks:
Understanding Propagation of VIP Availability InformationWith RHI, the CSM sends advertise messages to the MSFC containing the available VIP addresses. The MSFC adds an entry in its routing table for each VIP address it receives from the CSM. The routing protocol running on the MSFC sends routing table updates to other routers. When a VIP address becomes unavailable, its route is no longer advertised, the entry times out, and the routing protocol propagates the change.
Configuring RHI for Virtual ServersTo configure RHI for the virtual servers, follow these steps: Step 1 Verify that you have configured VLANs (see the "Configuring VLANs" section). Step 2 Associate the probe with a server farm (see the "Configuring Server Farms" section). Step 3 Configure the CSM to probe real servers (see the "Configuring Probes for Health Monitoring" section). Step 4 Enter the advertise active SLB virtual server command to enable RHI for each virtual server: This example shows how to enable RHI for the virtual server named vserver1: Configuring Inband Health MonitoringThese sections describe inband health monitoring: Understanding Inband Health MonitoringTo efficiently balance connections, the CSM must continuously monitor the health of all real servers in its configuration. The inband health monitoring feature is configured for each server farm to monitor the health of the servers. The parameters configured per server farm are then applied to each real server in that server farm. You can configure the number of abnormal end sessions that occur before the system considers the real server unreachable and you also can specify a time to wait before a real server is reintroduced into the server farm and a connection attempt is made. This feature works with health probes. If health probes and inband health monitoring are both configured on a particular server, both sets of health checks are required to keep a real server in service within a server farm. If either health checking feature finds a server out of service, the server will not be selected by the CSM for load balancing. Configuring Inband Health MonitoringTo configure inband health monitoring, follow these steps: Step 1 Verify that you have configured server farms (see the "Configuring Server Farms" section). Step 2 Enter the serverfarm submode command to enable inband health monitoring for each server farm:
This example shows how to enable inband health monitoring for a server farm named geo: Configuring HTTP Return Code CheckingThese sections describe HTTP retrn code checking: Understanding HTTP Return Code CheckingThe return error code checking (return code parsing) feature is used to indicate when a server is not returning web pages correctly. This feature extends the capability of CSM to inspect packets, parse the HTML return codes, and act upon the return codes returned by the server. After receiving an HTTP request from the CSM, the server responds with an HTTP return code. The CSM can use the HTTP return error codes to determine the availability of the server. The CSM can be configured to take a server out of use in response to receiving specific return codes. A list of predefined codes (100 through 599) are in RFC 2616. For return code checking, some codes are more usable than others. For example, a return code of 404 is defined as a URL not found, which may be the result of the user entering the URL incorrectly. Error code 404 also might mean that the web server has a hardware problem, such as a defective disk drive preventing the server from finding the data requested. In this case, the web server is still alive, but the server cannot send the requested data because of the defective disk drive. Because of the inability of the server to return the data, you do not want future requests for data sent to this server. To determine the error codes you want to use for return code checking, refer to RFC 2616. When HTTP return code checking is configured, the CSM monitors HTTP responses from all balanced HTTP connections and logs the occurrence of the return code for each real server. The CSM stores return code counts. When a threshold for a return code is reached, the CSM may send syslog messages or remove the server from service. A default action, counting return codes, syslog messaging, or removing the real server from service or a set of these actions can be applied to a server farm. You also can bind a single virtual group to multiple server farms allowing you to reuse a single return code server farm policy on multiple server farms.
Configuring HTTP Return Code CheckingConfiguring return error code checking involves configuring the attributes of a server farm and associating it with a return code map. To configure the return code checking follow these steps: Step 1 Verify that you have configured HTTP virtual servers (see the "Configuring Virtual Servers" section). Step 2 Enter the map return code command to enable return code mapping and enter the return code map submode: Step 3 Configure the return code parsing: Router(config-slb-map-retcode)# match protocol http retcode min max action [count | log | remove] threshold [reset seconds]
You can set up as many matches as you want in the map. Step 4 Assign a return code map to a server farm: This example shows how to enable return error code checking:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|