Managing Load Balancers
Limitations
The forwarding rule and protocol cannot be changed after the load balancer pool is added.
Prerequisites
All virtual machines that will be added in balancing pools have fixed IP addresses.
Add Another Balancing Pool to a Load Balancer
-
Click the load balancer name, and then click Create a Balancing Pool.
-
In the Forwarding Rule page, select a forwarding rule from the load balancer to the backend protocol, and then specify the ports for incoming and destination connections.
note- With the HTTPS -> HTTPS rule, all virtual machines need to have the same SSL certificate (or a certificate chain).
- With the HTTPS -> HTTP rule, you need to upload an SSL certificate (or a certificate chain) in the PEM format and a private key in the PEM format.
-
In the Balancing Settings section, select the balancing algorithm:
- Least connections. Requests will be forwarded to the VM with the least number of active connections.
- Round robin. All VMs will receive requests in the round-robin manner.
- Source IP. Requests from a unique source IP address will be directed to the same VM.
Enable/disable the Sticky session option to enable/disable session persistence. The load balancer will generate a cookie that will be inserted into each response. The cookie will be used to send future requests to the same VM.
-
In the Members section, add members to the balancing pool by clicking Add. Each virtual machine can be included to multiple balancing pools.
In the Add Members window that opens, select the desired virtual machines, and then click "Add".
noteYou can add the virtual machine in the existing load balancer network to the member you choose.
-
In the Health monitor section, select the protocol that will be used for monitoring members availability:
-
HTTP/HTTPS. The HTTP/HTTPS method GET will be used to check for the response status code 200. Additionally, specify the URL path to the health monitor.
-
TCP/UDP. The health monitor will check the TCP/UDP connection on the backend port.
-
PING. The health monitor will check members’ IP addresses.
By default, the health monitor removes a member from a balancing pool if it fails three consecutive health checks of five-second intervals. When a member returns to operation and responds successfully to three consecutive health checks, it is added to the pool again. You can manually set the health monitor parameters, such as the interval after which VM health is checked, the time after which the monitor times out, healthy and unhealthy thresholds. To change the default parameters, click Edit parameters, enter the desired values, and then click Save.
-
-
Click Create a Balancing Pools.
The newly added pool will appear in the list of balancing pools.
Edit a Balancing Pool
- To edit the balancing settings such as the balancing algorithm and session persistence, click the ellipsis icon next to a pool, and then click Edit.
- To edit the health monitor parameters, click the ellipsis icon next to a pool, and then click Edit health monitor.
To add more members to a balancing pool
- Click the ellipsis icon next to the required balancing pool, and then click Add members.
- In the Add members window, select virtual machines to be added to the balancing pool, and then click Add.
To remove a balancing pool
- Click the ellipsis icon next to the required balancing pool, and then click Delete.
- Click Delete in the confirmation window.
Edit a Load Balancers
Edit a Load Balancer
- On the Load balancers page, click a Load Balancer you want to edit.
- On the load balancer right pane, click Edit.
- In the Edit load balancer window, modify the name or description, and then click Save.
Disable or Enable a Load Balancer
- On the Load balancers page, click a load balancer you want to change.
- On the load balancer right pane, click Disable or Enable, depending on the load balancer's current state.
Remove a Load Balancer
- On the Load balancers page, click a load balancer to delete.
- On the load balancer right pane, click Delete.
- Click Delete in the confirmation window.
Monitoring Load Balancers
Open the Monitoring tab on the load balancer right pane to monitor performance and health of a load balancer.
The following charts are available:
Members state
The total number of members in the balancing pools grouped by status: “Healthy,” “Unhealthy,” “Error,” and “Disabled”.
Network
Incoming and outgoing network traffic.
Active connections
The number of active connections.
Error requests
The number of error requests.