To configure load balancing, you must first create services. Then, you create virtual servers and bind the services to the virtual servers. By default, the NetScaler appliance binds a monitor to each service. After binding the services, verify your configuration by making sure that all of the settings are correct.
Optionally, you can assign weights to a service. The load balancing method then uses the assigned weight to select a service. For getting started, however, you can limit optional tasks to configuring some basic persistence settings, for sessions that must maintain a connection to a particular server, and some basic configuration-protection settings.
The following flow chart illustrates the sequence of the configuration tasks.
Before configuring load balancing, make sure that the load balancing feature is enabled.
At the command prompt, type the following commands to enable load balancing and verify that it is enabled:
> enable feature lb Done > show feature Feature Acronym Status ------- ------- ------ 1) Web Logging WL OFF 2) Surge Protection SP OFF 3) Load Balancing LB ON . . . 9) SSL Offloading SSL ON . . . Done
When you have identified the services you want to load balance, you can implement your initial load balancing configuration by creating the service objects, creating a load balancing virtual server, and binding the service objects to the virtual server.
At the command prompt, type the following commands to implement and verify the initial configuration:
> add service service-HTTP-1 10.102.29.5 HTTP 80 Done > add lb vserver vserver-LB-1 HTTP 10.102.29.60 80 Done > bind lb vserver vserver-LB-1 service-HTTP-1 Done > show service bindings service-HTTP-1 service-HTTP-1 (10.102.29.5:80) - State : DOWN 1) vserver-LB-1 (10.102.29.60:80) - State : DOWN Done