Stopping and starting a load balancer
You can stop and restart a network load balancer as needed.
Stopping a network load balancer
- In the management console
, select the folder where you need to stop a load balancer. - In the list of services, select Network Load Balancer.
- Next to the load balancer you need to stop, click
and select Stop. - In the window that opens, click Stop.
If you do not have the Yandex Cloud (CLI) command line interface yet, install and initialize it.
The folder specified when creating the CLI profile is used by default. To change the default folder, use the yc config set folder-id <folder_ID>
command. You can specify a different folder using the --folder-name
or --folder-id
parameter.
To stop a load balancer with the ACTIVE
status, run this command:
yc load-balancer network-load-balancer stop <load_balancer_name_or_ID>
You can get the load balancer ID and name with the list of network load balancers in the folder.
To stop a network load balancer, use the stop REST API method for the NetworkLoadBalancer resource or the NetworkLoadBalancerService/Stop gRPC API call.
You can get the load balancer ID with the list of network load balancers in the folder.
Starting a network load balancer
You can restart a network load balancer with the Stopped
status.
- In the management console
, select the folder where you need to start a load balancer. - In the list of services, select Network Load Balancer.
- Next to the load balancer you need to start, click
and select Start. - In the window that opens, click Start.
If you do not have the Yandex Cloud (CLI) command line interface yet, install and initialize it.
The folder specified when creating the CLI profile is used by default. To change the default folder, use the yc config set folder-id <folder_ID>
command. You can specify a different folder using the --folder-name
or --folder-id
parameter.
To start a load balancer with the STOPPED
status, run this command:
yc load-balancer network-load-balancer start <load_balancer_name_or_ID>
You can get the load balancer ID and name with the list of network load balancers in the folder.
To start a network load balancer, use the start REST API method for the NetworkLoadBalancer resource or the NetworkLoadBalancerService/Start gRPC API call.
You can get the load balancer ID with the list of network load balancers in the folder.