Bind/unbind a service to/from a load balancing virtual server
You must bind a service to the load balancing virtual server. This enables the load balancer to forward the request to the server that the service represents. If your configuration changes, you can unbind a service from the load balancing virtual server.
Bind a service to a load balancing virtual server by using the CLI
At the command prompt, type:
- bind lb vserver <name> <serviceName> - show lb vserver [<name>]
> bind lb vserver vserver-LB-CR service-HTTP-1 Done > show lb vserver Vserver-LB-CR Vserver-LB-CR (10.102.20.30:80) - HTTP Type: ADDRESS State: DOWN Last state change was at Fri Jul 2 08:47:52 2010 Time since last state change: 0 days, 00:42:25.610 Effective State: DOWN Client Idle Timeout: 180 sec Down state flush: ENABLED Disable Primary Vserver On Down : DISABLED Port Rewrite : DISABLED No. of Bound Services : 1 (Total) 0 (Active) Configured Method: LEASTCONNECTION Mode: IP Persistence: NONE Vserver IP and Port insertion: OFF Push: DISABLED Push VServer: Push Multi Clients: NO Push Label Rule: none 1) Service-HTTP-1 (10.102.29.40: 80) - HTTP State: DOWN Weight: 1 Done
Unbind a service from a load balancing virtual server by using the CLI
To unbind a service, use the
unbind lb vserver command instead of
bind lb vserver.
Bind/unbind a service from a load balancing virtual server by using the GUI
- Navigate to Traffic Management > Load Balancing > Virtual Servers
- In the details pane, select the virtual server from which you want to bind/unbind the service, and then click Open.
- On the Services tab, in the Active column, select/clear the check box next to the Service Name.
- Click OK.