At Virtualizor, We are introduced our new feature CPU Threshold. We understand the critical role of CPU performance plays in driving servers(s) efficiency. Our CPU threshold feature is a cutting-edge solution that empowers you to set precise limits on CPU usage. In VPS hosting, managing CPU usage is crucial to ensure the smooth functioning of the server and prevent failures caused by excessive load from a single VPS. To address this concern, a new feature called "CPU Threshold" has been introduced. This feature allows administrators to set CPU limits for individual VPS instances, helping to safeguard the server and other VPS from potential disruptions.
CPU Threshold enables administrators to define the maximum CPU usage percentage allowed for each VPS. By monitoring the server's CPU usage continuously, the system keeps a close eye on the resource utilization of each VPS. If a VPS consistently exceeds the CPU threshold set by the administrator, appropriate actions are taken to protect the server and other VPS from being affected
Ensuring Server And VPS Stability :
The primary objective of the CPU threshold feature is to prevent a single VPS from monopolizing server resources and potentially causing failures or performance degradation. By setting appropriate CPU thresholds, administrators can distribute resources fairly among VPS instances, ensuring stable performance for all.
Setting for CPU Threshold
When creating a VPS or from manage VPS , the CPU threshold can be customized to suit specific requirements. The CPU threshold percentage can be adjusted within the range of 0% to 100% of the server's CPU usage.
CPU Threshold Percentage :
In CPU Threshold we can set the limit of CPU usage percentage from 0 % to 100 % depend on server CPU Configuration *(as per the core and thread calculation which we will see in below example)
CPU Threshold Time :
Apart from setting the CPU threshold percentage, administrators can also configure the CPU threshold time for each VPS individually. The CPU threshold time specifies the duration for which a VPS needs to continuously exceed the CPU threshold before action is taken. This time duration can be set in multiples of 5 minutes. Let's take an example to understand its impact :
CPU % :
This is the VPS CPU % and core setting which we can adjust at the time of VPS Creation or from the manage VPS.
Let's take an example how we use all this parameters to understand its impact :
In 1st scenario where a server boasts 32 cores, and four VPS instances are created with varying core allocations: 3 cores, 16 cores, 2 cores, and 8 cores respectively. Each VPS is configured to utilize 100% of its allocated CPU. During peak usage, all VPS instances are utilizing their CPUs to the maximum. So we set the CPU Threshold to 45 % to avoid the damage, However, due to the uneven distribution of CPU usage, with VPS 2 utilizing 50% of the server's CPU, performance issues and potential failures may arise. To mitigate such risks, CPU threshold management becomes essential. By setting a CPU threshold percentage and monitoring CPU usage over time, administrators can take proactive measures to prevent performance degradation or failures. For instance, if VPS 2 exceeds the defined CPU threshold for the specified time, the virtualizor platform can automatically suspend the VPS, adjust CPU allocations, or prioritize resources to ensure fair distribution among all VPS instances. By implementing CPU threshold management, administrators can maintain stability, efficiency, and optimal performance in their Servers VPS environment.
In the second scenario, the 2nd VPS utilizes 50% of the server's CPU due to the predetermined CPU allocation. This ensures that the overall CPU usage from the VPS side remains at 25% of the server's total CPU capacity. Meanwhile, VPS 1, 3, and 4 continue to fully utilize their allocated CPU resources.
To maintain a balanced CPU utilization, it is recommended to set the CPU threshold near 25% because of 50% CPU which we set at the time of creation of VPS or from the manage VPS, aligning with the maximum expected usage by VPS instances. So in previous scenario we suspended the single VPS but here we suspend the 2 VPS, VPS -1 and VPS-2, because both are using the 25% even they have different core configuration. By doing so, stability is upheld, optimal performance is achieved, and potential issues stemming from excessive resource utilization in the VPS environment are mitigated.
Based on the provided examples, it is evident that CPU thresholds play a crucial role in balancing server CPU usage rather than focusing solely on VPS CPU usage. By implementing CPU threshold management strategies, administrators can effectively maintain equilibrium within the server environment.
Safeguarding the Server :
When a VPS surpasses the CPU threshold continuously for the set time, the system takes precautionary measures to protect the server. The affected VPS is suspended, and the administrator is promptly notified via email and system notifications. The notification includes details of the VPS's CPU usage, Server IP, CPU Usage Time, VPS ID, Hostname, allowing administrators to take appropriate action or investigate any anomalies.
CPU Threshold is a valuable feature in VPS management that ensures fair resource allocation and guards against potential server failures caused by excessive CPU load from a single VPS. By setting CPU thresholds and monitoring usage closely, administrators can maintain stability, optimize performance, and protect the server and other VPS instances from unexpected disruptions.