Editing a Load Balancer's Backend Server
Update a backend server for a load balancer.
Use the oci lb backend get command and required parameters to edit a load balancer's backend server:
oci lb backend update --backend-name backend_name --backend-set-name backend_set_name --load-balancer-id load_balancer_id --backup [true|false] --drain [true|false] --offline [true|false] --weight weight [OPTIONS]
The
backup
parameter indicates whether (true
) or not (false
) the load balancer treats this server as a backup unit. If the value istrue
, the load balancer forwards no ingress traffic to this backend server unless all other backend servers not marked as "backup" fail the health check policy. You cannot add a backend server marked asbackup
to a backend set that uses the IP Hash policy.The
drain
parameter indicates whether (true
) or not (false
) the load balancer drains this backend server. If the value istrue
, the backend server receives no new incoming traffic.The
weight
parameter indicates the load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger proportion of incoming traffic. For example, a server weighted '3' receives three times the number of new connections as a server weighted '1.' For more information on load balancing policies, see How Load Balancing Policies Work.For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the UpdateBackend operation to get the details of a backend contained within a backend set for a load balancer.