View
232
Download
1
Category
Preview:
Citation preview
Managing the F5 BIG-IP Load Balancer
• About F5 Load Balancing, page 1
• Understanding Load Balancing Terminology, page 2
• Adding a Network Element, page 3
• Virtual Servers, page 4
• Creating an Application Service, page 9
• Creating a Pool, page 10
• Adding Members to a Pool, page 11
• Viewing Pool Statistics, page 12
• Viewing Node Lists, page 13
• Viewing Node Statistics, page 13
• Viewing TCP Profiles, page 14
• Viewing UDP Profiles, page 15
About F5 Load BalancingCisco UCS Director supports the creation of a Fenced Virtual application container that utilizes F5 loadbalancing.
Although load balancing may be quite prevalent in the routing environment, it is also of growing importancein the virtual networking and VM environment. Server load balancing is a mechanism for distributing trafficacross multiple virtual servers, offering high application and server resource utilization.
Server load balancing (SLB) is the process of deciding to which server a load-balancing device should senda client request for service. For example, a client request can consist of an HTTP GET for a Web page or anFTP GET to download a file. The job of the load balancer is to select the server that can successfully fulfillthe client request and do so in the shortest amount of time without overloading either the server or the serverfarm as a whole.
Depending on the load-balancing algorithm or predictor that you configure, the Cisco UCS Director performsa series of checks and calculations to determine the server that can best service each client request. Cisco UCS
Cisco UCS Director F5 BIG-IP Management Guide, Release 5.0 OL-32425-01 1
Director bases server selection on several factors, including the server with the fewest connections with respectto load, source or destination address, cookies, URLs, or HTTP headers.
A high-level process flow of load balancing is described below:
1 A client attempts to connect with a service on the load balancer using the Cisco UCSDirector F5 Connector.
2 The load balancer accepts the connection.
3 The load balancer decides which host should receive the connection and changes the destination IP address(or port) in order to match the service of the selected host.
4 The host accepts the load balancer's connection and responds back to the original source, the client (throughits default route), and to the load balancer.
5 The load balancer acquires the return packet from the host and now changes the source IP (or port) tocorrespond to the virtual server IP and port, and forwards the packet back to the client.
6 The client receives the return packet assuming it came from the virtual server, and continues the rest ofthe process.
Cisco UCSDirector enables the management, orchestration, andmonitoring of the F5 load balancer. Followingis a summary of the crucial processes:
1 You add the F5 load balancer usingAdministration > Physical Accounts >Managed Network Element> Add Network Element.
2 When the F5 load balancer is added to Cisco UCS Director as a managed element, the Cisco UCSDirectortask inventory collection is triggered. The polling interval configured on the System Tasks tabspecifies the frequency of inventory collection.
3 After the F5 is added to the Pod, it is listed with all other components of the pod environment at the accountlevel. To see the F5 component information, navigate to Physical > Network > Network ManagedElements.
There are two ways to implement load balancing using an F5 device:
1 Use an iApps (BIG-IP) application service, OR
2 Use Cisco UCS Director to:
• Set up a managed element and
• Create a Pool
• Add pool members
• Create a virtual server
The Cisco UCS Director tasks listed above are documented in detail in the Cisco UCS Director ApplicationContainer Guide.
Understanding Load Balancing TerminologyThis section describes common terms found in the Cisco UCS Director F5 connector environment. In aload-balancing environment, a virtual server is a construct that allows multiple physical servers to appear asone for load-balancing purposes. A virtual server is bound to physical services running on real servers in a
Cisco UCS Director F5 BIG-IP Management Guide, Release 5.02 OL-32425-01
Managing the F5 BIG-IP Load BalancerUnderstanding Load Balancing Terminology
server farm and uses IP address and port information to distribute incoming client requests to the servers inthe server farm according to a specified load-balancing algorithm.
• Virtual servers— In a load-balancing environment, a virtual server is a construct that allows multiplephysical servers to appear as one for load-balancing purposes. A virtual server is bound to physicalservices running on real servers in a server farm and uses IP address and port information to distributeincoming client requests to the servers in the server farm according to a specified load-balancing algorithm.
• Pools—A pool is a collection of virtual servers that provide similar services available on multiple hosts.(See the pool members or nodes entry below for additional information).
• Pool members or nodes—When creating a pool, you assign one or more pool members to it. A poolmember/node is a logical object that represents a physical node (and a service) on the network. Whenyou add a virtual server to a pool, it becomes a pool member. A member/node includes the TCP port ofthe actual application that is receiving traffic.
Be aware that a virtual server can be a member of multiple pools. In a different pool, itcan have different attributes and play a different role. For example, a virtual server couldbe a backup resource for a different type of requests, such as requests from a differentpart of the world.
Tip
• Nodes— Physical servers that receive traffic from a load balancer.
• Profiles— A profile can be either local or roaming. It is recommended that you should operate usingroaming profiles rather than local profiles. Using roaming profiles assures you that your settings arealways available to you at all times.
Adding a Network ElementIn order to create a virtual server that will support load balancing, you first have to add a network element inCisco UCS Director. Once the F5 load balancer is added as a network element in Cisco UCS Director, itappears under theManaged Network Element tab.
Before You Begin
You must be logged in to the appliance to complete this task.
Step 1 On the menu bar, choose Administration > Physical Accounts.Step 2 Choose theManaged Network Elements tab.Step 3 Click Add Network Element.Step 4 In the Add Network Element dialog box, complete the following fields:
DescriptionName
Choose the pod to which the network element belongs.Pod drop-down list
Choose the device category for this network element. Forexample, F5 Load Balancer.
Device Category drop-down list
Cisco UCS Director F5 BIG-IP Management Guide, Release 5.0 OL-32425-01 3
Managing the F5 BIG-IP Load BalancerAdding a Network Element
DescriptionName
The IP address for this device.Device IP field
Choose the protocol to be used. The list may include thefollowing:
• telnet
• ssh
• http
• https
When working with an F5 load balancer device,http and https are the only valid selections.
Note
Protocol drop-down list
The port to use.Port field
The login name.Login field
The password associated with the login name.Password field
Step 5 Click Submit.
When the F5 Load Balancer is added, the system task inventory collection is triggered. The polling intervalconfigured on the System Tasks tab specifies the frequency of inventory collection.
What to Do Next
To make changes to a virtual server, choose the server, then click theModify button. To remove a virtualserver, choose the server, then click theDelete button.
Virtual ServersIn a load-balancing environment, a virtual server is a construct that allows multiple physical servers to appearas one for load-balancing purposes. A virtual server is bound to physical services running on real servers ina server farm. The virtual server uses IP address and port information to distribute incoming client requeststo the servers in the server farm according to a specified load-balancing algorithm.
Although the virtual server is of primary importance because it is used to administer pools and pool members,the practical flow of performing the setup is as follows:
1 Create a pool
2 Add members to pool
3 Create a virtual server that uses the pool
Cisco UCS Director F5 BIG-IP Management Guide, Release 5.04 OL-32425-01
Managing the F5 BIG-IP Load BalancerVirtual Servers
Before you can create a virtual server that will support load balancing, you must add the F5 load balanceras a network element.
Remember
Creating a Virtual Server
To get inventory information about the F5 device, navigate to Converged > Pod, then click on middle ofthe large Pod icon. In the row of Network images, double-click on BIG-IP to see current information aboutit.
Tip
Before You Begin
An account with the F5 BIG-IP server.
Step 1 On the menu bar, choose Physical >Network .Step 2 Click on a pod in which one of the Managed Network Elements is the F5 BIG-IP device you want to use, then click on
that network.With a Pod highlighted under Physical >Network , and theManaged Network Elements tab selected, a row of informationin the table should include the IP address for the F5 BIG-IP device you want to use. In the left-hand column, click onthe network associated with this device.
Step 3 Click the Virtual Servers tab, then click Create.Step 4 In the Create Virtual Server dialogue box, complete the following fields:
DescriptionName
The virtual server name.Virtual Server Name field
A unique description of this virtual server.Virtual Server Description field
The type of virtual server (pre-selected).Virtual Server Type field
The IP address of the destination device, the virtual server.This is a network address, which the system uses thisnetwork address in combination with Mask to represent arange of IP addresses.
Destination IP field
The IP address mask of the destination device.Destination IP Address Mask field
Cisco UCS Director F5 BIG-IP Management Guide, Release 5.0 OL-32425-01 5
Managing the F5 BIG-IP Load BalancerCreating a Virtual Server
DescriptionName
The data transfer protocol associated with the service port
Choose a protocol from the following list:
• FTP
• HTTP
• HTTPS
• TELNET
• PPTP
• SMTP
• SNMP
• SNMP-TRAP
• SSH
• Other
Service Port drop-down list
The port number to be assigned to this server.Port Number
Choose a protocol for very high speed data transfer fromthe following list:
• TCP
• UDP
TCP is the default value forProtocol.
Note
Protocol drop-down list
Choose a client protocol profile with the correct ParentProfile for the Client. The parent profiles are TCP and UDP.
The Client Protocol here specifies that the selected profileis a client-side profile. The dropdown list contains entriesfor each client protocol profile that has been defined.
The profile selection applies to TCP andUDPconnections only. If TCP is set as Protocol,the TCP-related profile should be selected inclient and server side profiles. Likewise, UDPrelated profiles should be selected if UDP isselected as the protocol. hence parent profilesare TCP and UDP.
Remember
Protocol Profile (Client) button
Cisco UCS Director F5 BIG-IP Management Guide, Release 5.06 OL-32425-01
Managing the F5 BIG-IP Load BalancerCreating a Virtual Server
DescriptionName
Choose a server protocol profile with the correct ParentProfile for the Server.
Server Protocol: Specifies that the selected profile is aserver-side profile. Options are: (Use Client Profile) - thedefault - and entries for each defined server protocol profile.
Protocol Profile (Server) button
Choose a default pool.
If you have created a virtual server for loadbalancing, you must assign a default loadbalancing pool to this virtual server. A defaultpool is the pool to which the BIG-IP system sendstraffic if no iRule exists specifying a differentpool. When you first create the virtual server, youassign an existing default pool to it. From then on,the virtual server automatically directs traffic tothat default pool. It is not strictly mandatory toadd default pool while creating a virtual server,so there is no default.
Note
Default Pool button
Step 5 Click Submit.
Viewing Virtual ServersThe Virtual Servers tab provides information on the following items:
• Pod Name
• Virtual Server Name
• Status
• Destination IP Address
• Service Port
• Type
• Partition or Path
Cisco UCS Director F5 BIG-IP Management Guide, Release 5.0 OL-32425-01 7
Managing the F5 BIG-IP Load BalancerViewing Virtual Servers
Before You Begin
Create a Virtual Server.
Step 1 On the menu bar, choose Physical >Network.Step 2 Click on a pod that includes a load balancing network.Step 3 Click on the load balancing server.Step 4 Click the Virtual Servers tab to view the F5 server.
Viewing Virtual Server StatisticsThe Virtual Servers Statistics tab provides information on the following items:
• Pod Name
• Virtual Server
• Status
• Partition or Path
• Bits In
• Bits Out
• Packets In
• Packets Out
• Current Connections
• Maximum Connections
• Total Request
• CPU Utilization
Before You Begin
Create a Virtual Server.
Step 1 On the menu bar, choose Physical >Network.Step 2 Click on a pod.Step 3 Click on the load balancing server.Step 4 Click the Virtual Servers Statistics tab to view the statistics.
Cisco UCS Director F5 BIG-IP Management Guide, Release 5.08 OL-32425-01
Managing the F5 BIG-IP Load BalancerViewing Virtual Server Statistics
Creating an Application ServiceThis topic describes how to create an application service for a selected pod.
Step 1 On the menu bar, choose Physical >Networks.Step 2 Click on a pod that includes the F5 network, expand the directory as necessary, and click on the F5 network..Step 3 Click on the Application Services tab.Step 4 Click Create.Step 5 In the Create Application Service dialogue box, complete the following fields:
DescriptionName
The virtual server name.Application Service Name field
The name of the template.
When working with an F5 network, this valueshould be set as f5.http.
Note
Template field
The IP address of the destination device.Virtual Server IP field
The fully qualified domain name (FQDN) names of thevirtual server. Separate each FQDN name with a comma.
Clients can use the FQDNs that you enter here toaccess the web servers. For each FQDN, yourDNS Administrator must configure a DNS entrythat resolves to the IP address you entered for theBIG-IP virtual server.
Note
FQDN names of Virtual Serverfield
Select a node from the Nodes list and click Submit.
If a node that you want to associate with the Virtual Serverdoes not appear in the Nodes list:
• Click + to add it. TheAdd Entry to Nodes list dialogbox appears.
• Provide the Node IP address, the Port, and theConnection limit; then click Submit.
Nodes List
Step 6 Click Submit.
Cisco UCS Director F5 BIG-IP Management Guide, Release 5.0 OL-32425-01 9
Managing the F5 BIG-IP Load BalancerCreating an Application Service
Creating a PoolThe Pool list tab enables you to create a new pool to the list of pools associated with an F5 load balancer,. Italso allows you to delete a pool, or to modify a pool by adding or deleting pool members.
The Pool list tab lists the following data for each pool:
• Pod Name
• Server Name
• Status
• Members
• Partition or Path
Step 1 On the menu bar, choose Physical >Network.Step 2 Click on the pod that supports the F5 BIG_IP network that you want to use, then click on that network.Step 3 Click the Pool List tab to view the existing list of pools.
Using controls that appear in this tab, you can also delete a pool from this list, see the members of any selected pool, oradd or delete members of an existing pool.
Step 4 Click Create.Step 5 In the Create Pool dialog box, complete the following fields:
DescriptionName
The Pool name.Pool Name field
Choose a load balancing method from the following list:
• Round Robin
• Ratio (member)
• Lease Connections (member)
• Observed (member)
• Predictive (member)
• Ratio (node)
Load Balancing Method drop-down list
Cisco UCS Director F5 BIG-IP Management Guide, Release 5.010 OL-32425-01
Managing the F5 BIG-IP Load BalancerCreating a Pool
DescriptionName
From the Existing Nodes list, add a node to the named pool.
If the node you want to use does not yet appear in theExisting Nodes List, click + to add it. A dialog box appears,titledAddEntry to Existing Node List. Provide the NodeName and the port that this node will use, then clickSubmit. Choose the node. Then click Submit.
For the purposes of setting up an F5 pool, the nodename here does not have to use IPO addressformat. If a node is created by a virtual servercreation service or by an application creationservice, then the name of the node is set as the IPaddress of the node. If a node is created using theCreate Node option, a name of another formatmay be displayed.
Note
Use Existing Nodes List selector
Step 6 Click Submit.Step 7 To see additional details about available pools and nodes, see the tabs titled Pool Statistics,Node list, andNode Statistics.
What to Do Next
Adding Members to a PoolBefore You Begin
Create a Pool.
Step 1 On the menu bar, choose Physical >Network.Step 2 Click on the pod that supports the F5 BIG_IP network of interest to you, then click on that network.Step 3 Click the Pool List tab to view the existing list of pools.
Using controls that appear in this tab, you can also create or delete a pool from this list, or see the members of any selectedpool.
Step 4 Click on the pool in which you want to add, delete, or modify members, then click View Details.The Pool Members tab appears, listing the members of the pool you most recently selected.
Step 5 To add a member to the selected pool, click Add.The Add Pool Member dialog box appears.
Step 6 If you want to use an existing Node, then check the box labeled "Do you want to use existing node?" Otherwise, providethe Address and Service port.a) Check the box labeled "Do you want to use existing node?"b) Provide the following information.
Cisco UCS Director F5 BIG-IP Management Guide, Release 5.0 OL-32425-01 11
Managing the F5 BIG-IP Load BalancerAdding Members to a Pool
c) In the Add Pool Member dialogue box, complete the following fields:DescriptionName
• Click Select... to open a list of existing nodesassociated with the Pool-related account.
• Checkmark a node to select it, then click Select.
The selected node appears in the Add Pool Memberdialog box.
Node Name selector.
Enter the service port for the node.Service Port
d) Click Submit.A message confirms that the member was added to the pool successfully.
Step 7 If you do NOT want to use an existing Node, then provide the Address and Service Port data and click Submit.A message confirms that the member was added to the pool successfully and the new member is listed in the PoolMembers tab.
Step 8 To return to the Pool List tab, click the Back button.
Viewing Pool StatisticsThe Pool Statistics tab provides the following information:
• Pod Name
• NoPool Name
• Status
• Partition/Path
• Bits In
• Bits Out
• Packets In
• Packets Out
• Current Connections
• Maximum Connections
• Total Connections
• Total Requests
• Request Queue Depth
Cisco UCS Director F5 BIG-IP Management Guide, Release 5.012 OL-32425-01
Managing the F5 BIG-IP Load BalancerViewing Pool Statistics
• Request Queue Max Age
Before You Begin
Create a Virtual Server.
Step 1 On the menu bar, choose Physical >Network.Step 2 In the left pane, click on a pod that includes an F5 BIG_IP network.Step 3 Expand the pod, then click the F5 BIG-IP load balancer account.Step 4 Click the Pool Statistics tab to view the existing information.
Viewing Node ListsThe Node list tab provides information on the following items:
• Pod Name
• Server Name
• Status
• Description
• IP Address
• Partition or Path
Before You Begin
Create a Virtual Server.
Step 1 On the menu bar, choose Physical >Network.Step 2 Click on a pod.Step 3 Click on the load balancing server.Step 4 Click the Node List tab to view the existing node list information.
Viewing Node StatisticsThe Node Statistics tab provides the following information:
• Pod Name
• Node Name
Cisco UCS Director F5 BIG-IP Management Guide, Release 5.0 OL-32425-01 13
Managing the F5 BIG-IP Load BalancerViewing Node Lists
• Status
• Partition/Path
• Bits In
• Bits Out
• Packets In
• Packets Out
• Current Connections
• Maximum Connections
• Total Connections
• Total Requests
Before You Begin
Create a Virtual Server.
Step 1 On the menu bar, choose Physical >Network.Step 2 In the left pane, click on a pod that includes an F5 BIG_IP network.Step 3 Expand the pod, then click the F5 BIG-IP load balancer account.Step 4 Click the Node Statistics tab to view the existing information.
Viewing TCP ProfilesThe TCP Profiles tab provides information on the following items:
• Pod Name
• Server Name
• Parent Profile
• Partition or Path
Cisco UCS Director F5 BIG-IP Management Guide, Release 5.014 OL-32425-01
Managing the F5 BIG-IP Load BalancerViewing TCP Profiles
Before You Begin
Create a Virtual Server.
Step 1 On the menu bar, choose Physical >Network.Step 2 In the left pane, click on a pod that includes an F5 BIG_IP network.Step 3 Expand the pod, then click the F5 BIG-IP load balancer account.Step 4 Click the TCP Profiles tab to view the existing list of TCP profiles.
Viewing UDP ProfilesThe UDP Profiles tab provides information on the following items:
• Pod Name
• Server Name
• Parent Profile
• Partition or Path
Step 1 On the menu bar, choose Physical >Network.Step 2 In the left pane, click on a pod that includes an F5 BIG_IP network.Step 3 Expand the pod, then click the F5 BIG-IP load balancer account.Step 4 Click the UDP Profiles tab to view the existing list of UDP profiles.
Cisco UCS Director F5 BIG-IP Management Guide, Release 5.0 OL-32425-01 15
Managing the F5 BIG-IP Load BalancerViewing UDP Profiles
Cisco UCS Director F5 BIG-IP Management Guide, Release 5.016 OL-32425-01
Managing the F5 BIG-IP Load BalancerViewing UDP Profiles
Recommended