VS autoscaling allows you to change the RAM, CPU and disk size settings of a virtual server automatically. VS resources scaling is based on rules you specify. For example, you can set up a rule that will add 1000MB of memory to a VS if RAM usage has been above 90% for the last 10 minutes - but add no more than 5000MB in total in 24 hours. You can set autoscaling down settings alongside with autoscaling up.
- For Linux-based VSs only.
- Disk usage autoscaling is applicable for VS primary disk only.
- If the VS is based on a template that allows resizing without reboot - see the Edit Virtual Server section – then virtual server RAM and CPU will be increased without rebooting the VS. Disk space autoscaling requires a VS reboot.
- If you autoscale a VS's memory to a value greater than current VS RAM x 16 (which is a max_memory parameter in a configuration file and database), the VS will be rebooted anyway, regardless of the template it is built on.
- Make sure a VS can be reached via SSH. Otherwise, the autoscaling client installation will fail.
- Starting with version 4.2, OnApp uses Zabbix for autoscaling. Monitis will be used for autoscaling of servers built using OnApp versions previous to 4.2 until you switch autoscaling off for such server(s). If you decide to switch autoscaling back on, autoscaling will be implemented using Zabbix. Zabbix also will be used for autoscaling of newly created VSs.
- Note that Monitis support for OnApp autoscaling will come to its end of life on June 30th, 2019 and will be unavailable for use.
To configure autoscaling settings:
- Go to your Control Panel's Virtual Servers menu.
- Click the label of the appropriate VS.
- On the page that follows, click the Overview tab, and then click Autoscaling.
- Press the required tab - Memory Usage, Disk Usage or CPU Usage - to see the statistics for each type of resources.
- Below you will see UP and DOWN autoscaling options. Move the slider to the right to add the autoscaling rule or move it to the left to remove the rule.
- Add autoscaling rules as explained below:
Set autoscale up options:
- If RAM usage is above X% for a specific time period, add Y MB – but no more than Z MB in a 24 hour period.
- If CPU usage is above X % for a specific time period, add Y% - but no more than Z% in a 24 hour period.
- If disk usage is above X % for a specific time period, add Y GB - but no more than Z GB in a 24 hour period.
Set autoscale down options:
- If RAM usage is below X% for a specific time period, remove Y MB.
- If CPU usage is below X % for a specific time period, remove Y%.
- If disk usage is below X % for a specific time period, remove Y GB.
- Click Apply.
Clicking the Apply button does not activate autoscaling if the Autoscale slider at VS overview page is disabled. You can configure autoscaling rules, press the Apply button, these rules will be saved and will start working only after the Autoscale slider at VS overview page is enabled. Also you can disable the Autoscale slider, autoscaling will stop working, but the configuration of rules will be saved in case you will want to activate them in future.