Setting up Host Node Limits
From SolusVM
Since version 1.3.01, host nodes have 3 limit settings. Max VPS, Max Memory and Max Disk. These settings need to be set correctly before the API will function.
Contents |
OverView
The Max VPS setting is as simple as it sounds, it is the Maximum Number of VPS you would like to be setup on that Node, so for example if you only wanted 10 VPS to be setup then you would select 10 from the drop down. The Max Memory setting is the maximum around of RAM (Guaranteed RAM For OpenVZ) that you would like to be assigned to VPS, so for example if you have an 8GB node and you wish to sell the full 8GB then you would enter the appropriate amount in MB in this field, if you are using OpenVZ or KVM and wish to over sell your Memory to 12GB you would enter this into the Max Memory Field, again in MB. The Max Disk setting is the Maximum amount of Disk Space that you want to assign to VPS on this node, if you have a 1TB drive / array and you wish to allow 100GB for Migrating VPS / Other reasons then you would specify 900GB in this field in MB.
Why has this been done?
The reason we have added this feature is for the Automatic Node selector that has been added into our API and popular Billing Modules such as our WHMCS Module, without this it would not be possible for the Automatic Node Selector to choose the correct node to setup VPS on nodes that are running Virtualization Types that allow for OverSelling.
Working out Settings for OpenVZ Hosts
OpenVZ allows overselling so the settings don't have to be exact. Under the nodes settings you need to set the Max VPS, Max Memory and Max Disk usages.
For example, You want to oversell your host by 50% and your Node has 8GB of RAM and 1TB HDD you would enter:
Max Memory: 12288 which is 12GB (50% More than 8GB) Max Disk: 1536000 which is 1.5TB (50% More than 1TB)
Working out Settings for Xen Hosts
Xen (PV & HVM) does not allow overselling therefore the settings do have to be exact here, under the node settings you need to set the Max VPS, Max Memory and Max Disk Usages.
For Example, If you had an 8GB Node with a 1GB Dom0_Mem cap and you wanted to leave 150MB Free for tolerances with a 1TB HDD you would enter:
Max Memory: 7068 which is 6.9GB (8GB - 1GB for your Dom0_Mem cap - 100MB for your Tolerances.) Max Disk: 1024000 which is 1TB
Working out Settings for KVM Hosts
KVM allows overselling of the RAM so the settings don't have to be exact for Max Memory however the Disk Space cannot be oversold therefore they do have to be exact. Under the nodes settings you need to set the Max VPS, Max Memory and Max Disk usages.
For example, You want to oversell your RAM by 50% and your Node has 8GB of RAM and 1TB HDD you would enter:
Max Memory: 12288 which is 12GB (50% More than 8GB) Max Disk: 1024000 which is 1TB (Disk Usage Cannot be Oversold)
