MEDIDAS DE TENDENCIA CENTRAL, DISPERSIÓN Y FORMA DE UNA DISTRIBUCIÓN DE FRECUENCIAS
1) Datos presentados en forma de lista
3.6. CARACTERISTICAS DE FORMA
To configure the HTTP load balancing solution described in “Overview” on page 109, perform the following tasks on the AX device:
1. Configure an HTTP health monitor.
2. Configure the real servers. On each real server:
• Add the HTTP service port.
• Enable the HTTP health monitor.
3. Configure the service group. Add the real servers and service ports to the group.
4. Configure the virtual server:
• Add the HTTP service port, with service type Fast-HTTP.
• Bind the service group to the virtual port.
U
SINGTHEGUI
To configure an HTTP health method 1. Select Config > Service > Health Monitor.
2. Select Health Monitor on the menu bar.
3. Click Add.
4. In the Health Monitor section, enter a name for the monitor.
5. In the Method section, select HTTP from the Type drop-down list.
The other configuration fields change to those that apply to HTTP health monitors.
6. Optionally, select or enter additional options for the health monitor. (See
“Health Monitoring” on page 373.)
In this example, you can use all the default settings
7. Click OK. The new monitor appears in the health monitor table.
FIGURE 33 Config > Service > Health Monitor > Health Monitor
To configure the real servers
Perform the following procedure separately for each real server.
1. Select Config > Service > SLB.
2. Select Server on the menu bar.
3. Click Add.
4. In the General section, enter a name for the server in the Name field.
5. In the IP Address field, enter the IP address of the server.
Note: Enter the server’s real address, not the virtual server IP address.
6. In the Health Monitor drop-down list, select ping or leave the monitor unset.
Note: If you leave the monitor unset, the Layer 3 health monitor that comes in the AX configuration by default is used. (See “Default Health Checks” on page 373.)
7. In the Port section, enter the number of the service port on the real server in the Port field. In this example, enter “80”.
8. In the Health Monitor drop-down list, select the HTTP health monitor configured in “To configure an HTTP health method” on page 114.
9. Click Add. The port appears in the port list.
10. Click OK. The real server appears in the server table.
FIGURE 34 Config > Service > SLB > Server
FIGURE 35 Config > Service > SLB > Server (real servers added)
Note: The AX device begins sending health checks to a real server’s IP address and service ports as soon as you finish configuring the server. The overall health status for the server is shown in the Health column. If the status is Down ( ) instead of Up ( ), verify that health monitors are config-ured for all the service ports. The default Layer 3 health method is
auto-matically used for the Layer 3 health check, unless you selected another health method instead.
To configure the service group
1. Select Config > Service > SLB, if not still selected.
2. Select Service Group on the menu bar.
3. Click Add.
4. In the Service Group section, select the load-balancing method from the Algorithm drop-down list.
For this example, you can leave the default selected: Round Robin 5. In the Server section, select a real server from the Server drop-down list.
6. In the port field, enter the service port number.
7. Click Add.
8. Repeat step 5 through step 7 for each real server.
9. Click OK. The new group appears in the service group table.
FIGURE 36 Config > Service > SLB > Service Group
To configure the virtual server
1. Select Config > Service > SLB, if not still selected.
2. Select Virtual Server on the menu bar.
3. Click Add. The General section appears.
4. In the General section, enter a name for the virtual server in the Name field.
5. In the IP Address field, enter the IP address that clients will request.
6. In the Port section, click Add. The Virtual Server Port section appears.
7. In the Type drop-down list, select the service type. In this example, select Fast-HTTP.
8. In the Port field, enter the service port number. In this example, enter
“80”.
9. In the Service Group drop-down list, select the service group.
10. Click OK. The port appears in the Port list of the Port section.
11. Click OK. The virtual server appears in the virtual server table.
FIGURE 37 Config > Service > SLB > Virtual Server
FIGURE 38 Config > Service > SLB > Virtual Server - Virtual Server Port section
U
SINGTHECLI
Note: The command syntax shown in this section is simplified for the configu-ration example in this chapter. For complete syntax information about any command, see the AX Series CLI Reference.
1. To configure HTTP and HTTPS health methods, use the following com-mands:
health monitor monitor-name
Enter this command at the global configuration level of the CLI, for each monitor to be configured. The command changes the CLI to the configuration level for the monitor. At the monitor configuration level, enter the following command:
method http
Entering this command, without entering additional commands at this level, configures the monitor to use all the default settings for the HTTP method.
To customize settings for a health monitor, use additional commands at the configuration level for the monitor.
2. To configure the real servers, use the following commands:
slb server server-name ipaddr
This command changes the CLI to the configuration level for the real server, where you can use the following command to add the HTTP port to the server:
port port-num tcp
The port-num specifies the protocol port number. In this example, spec-ify “80”.
This command adds the port and changes the CLI to the configuration level for the port, where you can use the following command to enable the HTTP health check:
health-check monitor-name
For monitor-name, specify the name of the HTTP health monitor config-ured in step 1.
3. To configure the service group, use the following commands:
slb service-group group-name tcp
This command changes the CLI to the configuration level for the service group, where you can use the following command to add the real servers and service ports to the group:
member server-name:portnum
The portnum is the protocol port number of the service to be load bal-anced. In this example, specify “80”.
Repeat the command for each real server.
4. To configure the virtual server and virtual port, use the following com-mands:
slb virtual-server name ipaddr
This command changes the CLI to the configuration level for the virtual server, where you can use the following command to add the virtual port to the server:
port port-number fast-http or
port port-num http
For this example, use the first command (the one with fast-http as the service type) and specify “80” as the port-num.
The port command changes the CLI to the configuration level for the virtual port, where you can use the following command to bind the vir-tual port to the service group:
service-group group-name
The group-name is the name of the service group configured in step 3.
CLI E
XAMPLEThe following commands configure the HTTP health monitor:
AX(config)#health monitor http-monitor AX(config-health:monitor)#method http AX(config-health:monitor)#exit
The following commands configure the real servers:
AX(config)#slb server web-2 10.10.10.2
AX(config-real server)#exit
AX(config)#slb server web-4 10.10.10.4 AX(config-real server)#port 80 tcp
AX(config-real server-node port)#health-check http-hmon AX(config-real server-node port)#exit
AX(config-real server)#exit
The following commands configure the service group:
AX(config)#slb service-group sg-web tcp AX(config-slb service group)#member web-2:80 AX(config-slb service group)#member web-3:80 AX(config-slb service group)#member web-4:80 AX(config-slb service group)#exit
The following commands configure the virtual server:
AX(config)#slb virtual-server web-vip 192.168.10.11 AX(config-slb virtual server)#port 80 fast-http
AX(config-slb virtual server-slb virtua...)#service-group sg-web AX(config-slb virtual server-slb virtua...)#exit