Manage Load Balancers
Load balancing aids application availability and scalability. There are two load balancing options in OnApp - Load Balancer clusters and Auto-Scaling clusters. In this document you can find information on how to manage Load Balancer and Auto-Scaling clusters in your cloud.
View Load Balancers
To view the list of load balancers in your cloud go to your Control Panel's Load Balancers menu. The page that loads shows the following details of your load balancers:
- OS - the OS on which the load balancer is based
- Label - the name of the load balancer. Click the label to see the load balancer details.
- IP Addresses - IP addresses assigned to the load balancer
Note that you will be given two IP addresses. The first IP address is used by the OnApp CP to access the load balancer. The second IP address is the shared IP for the balanced nodes.
- Disk Size - disk size assigned to the load balancer in GB
- RAM - RAM assigned to the load balancer in GB
- Nodes - the number of nodes in the load balancer
- Compute Resource - the label of compute resource with which load balancer is associated
- Power - whether the load balancer is powered ON or OFF. Click the on/off buttons to change the status.
- Actions icon - click the icon for the quick access to the list of load balancer actions
If you are viewing the load balancers list on a narrow screen, you can customize the way the table is displayed by clicking the actions icon at the top of the table. In the drop-down list that appears, check the columns you want to be displayed and click Apply. The narrower your screen is, the more unchecked columns will be hidden from the table. If your screen is too narrow to fit all the columns you have checked, a scrollbar will appear at the bottom of the load balancers list. You can always alter you column selection later.
Column selection is currently set for one browser. If the you have checked some columns in one browser and open the list in some other browser, the column selection will be the default one for that other browser.
View Load Balancer Details
To view load balancer details:
- Go to your Control Panel > Cloud > Load Balancers menu.
- Click the label of the load balancer you are interested in.
- The screen that appears loads the load balancer properties, billing statistics and tools for managing your load balancer.
Load balancer overview
Load balancer properties page gives general overview of the load balancer details:
- Compute resource
- Owner
- Estimated Price per hour. This sum does not take into consideration the free limits for resources set in the bucket. Therefore, the final price for the server might differ from the sum indicated here.
- Power status & On/Off buttons
- Allocated memory
- CPUs
- Disk size
- IP addresses
- Network speed
- IPs
- Hostname and login
- Administrator's/user's notes
- List of cluster nodes
- Activity log
Add admin's or user's note to create a brief comment or reminder.
To expand the load balancer Tools menu, click the Tools button on the load balancer's details screen. Tools menu enables you to perform the following actions on load balancers (the exact list shown depends on the load balancer status):
Tools
The exact list of load balancer tools shown depends on the load balancer status:
Power options:
- Startup Balancer - queues a start-up action for a balancer that's currently powered off.
- Reboot Balancer - powers off and then restarts the balancer.
- Shut Down Balancer - terminates the balancer forcefully.
- Suspend Balancer - stops a balancer, and changes its status to suspended.
LB options:
- Delete Balancer - removes the balancer from the system.
- Edit Balancer - redirects to the edit load balancer details page.
Migrate Balancer - pops up the balancer migration dialogue, enabling you to move the balancer to a different compute resource.
To migrate a load balancer, you need to have both the Migrate any/own load balancer and See details of any/own load balancing cluster permissions enabled.
- Rebuild Balancer - pops up the balancer rebuild dialogue, where you can rebuild the balancer on the same (or another) template. All data will be lost!
Cluster Nodes:
This is the list of the nodes which form the load balancer. Here you can:
- Power on/off the node.
- Delete a node from a cluster.
To view load balancer's billing statistics or autoscaling monitors, click the appropriate tab.
View Load Balancer Billing Statistics
To view billing statistics for a load balancer:
- Go to your Control Panel > Cloud > Load Balancers menu.
- Click the label of the balancer you're interested in.
- Click the Billing Statistics tab.
- You can filter the statistics by date and time - select the time period from the drop-down menu and click the Apply button. By default the statistics are generated for the last three months or the actual VS existence period.
- Move the Show in my Timezone slider to the right if you want to show bandwidth statistics according to your profile's timezone settings.
On the page that appears:
The price parameters on this page do not take into consideration the free limits for resources set in the bucket.
- Date – particular date and time for the generated statistics
- Users – the load balancer owner. Click the owner name to see the User Profile (user details)
- Virtual Servers – the virtual server name with the total due for LB resources (CPU priority, CPUs, memory and template resources) for the point of time specified in the Date column.
- Network Interfaces Usage – the total due for the network interfaces used by this LB for the point of time specified in the Date column. Click the network interface name to see its details.
- Disks Usage – the list of disks assigned to this LB with the total due for the disk space resources (disk size, data read/written, reads/writes completed) for the point of time specified in the Date column. Click the disk name to see its details.
- Costs – the total due for the Virtual Servers, Network Interfaces and Disks resources at the point of time specified in the Date column.
Scroll down to see Total Amount (the total due for the whole billing statistics period).
View Load Balancer Autoscaling Monitors
Autoscaling monitors provide information about the cluster load.
To view the load balancer's autoscaling monitors:
- Go to your Control Panel > Cloud > Load Balancers menu.
- Click the label of the balancer you're interested in.
- Click the Autoscaling Monitors tab.
- On the screen that appears, you will see the list of autoscaling monitors along with the following details:
- monitor name
- virtual server label
Click the label of a monitor you are interested in to view its details:
Depending on the monitor type, the monitor details screen page will show the the following info:
Memory Monitor
Memory monitor info:
Memory last results:
- Free memory - free virtual server memory in MB
- Total memory - total virtual server memory in MB
- Free swap - free swap disk size in MB
- Total swap (MB)
- Buffered memory (MB)
- Cached memory (MB)
- Status - monitor status: OK, if the monitor is correct or NOK, if the autoscaling configuration does not match. Monitor status is refreshed once in 5 minutes.
CPU Monitor
CPU monitor info
Name of the CPU test - CPU test label
IP of the device agent - virtual server IP address
Max value for kernel - maximum CPU value for kernel
Max value for iowait - maximum CPU value for iowait
Platform - virtual server OS
Max allowed value for user - maximum CPU value for user processes
The name of the agent - virtual server identifier
Tag of the CPU test - CPU test tag
Min allowed value for idle - minimum CPU value for idle mode
Max allowed value for nice - maximum CPU value for nice
Max value is a CPU priority set during the server creation.
CPU last results
CPU index - CPU number
User Value - percentage of CPU used in user mode
Kernel Value - percentage of CPU used by kernel
Nice Value - percentage of CPU time occupied by processes with positive CPU value
Idle Value - percentage of CPU used in idle mode
IO Wait Value - percentage of time the CPU was idle during the IO request
Status - monitor status: OK, if the monitor is correct or NOK, if the autoscaling configuration does not match. Monitor status is refreshed once in 5 minutes.
Edit Load Balancer
To edit a load balancer:
- Go to your Control Panel > Cloud > Load Balancers menu.
- Click the Actions icon next to a required load balancer, then choose Edit Cluster.
- When the page loads, edit necessary parameters and click Save.
When deleting load balancer ports, you can remove all but the first port.
Delete Load Balancer
To delete a load balancer:
- Go to your Control Panel > Cloud > Load Balancers menu.
- Click the Delete icon next to a required load balancer.
- Click OK to confirm the deletion.