buy
Create Resource Plan In cGroups

Overview

This guide will show you how to add resources plan and assign it to the users.

NOTE: This feature will work only if cGroups v2 is enabled in your Operating System.

Procedure

Navigate to Webuzo Admin Panel > Users > Resource Limits

In case you see the below error, it means that your system is old and does not support cGroups v2.

image

The below error means that your system supports cGroups v2 but it is not enabled. To enable cGroups v2, click the "Enable cGroups v2" button,  wait for completion and then reboot the server. The changes will take effect within 5 minutes.

Note: Reboot is required to enable cGroups v2.

image

You can enable cGroups v2 manually from the terminal too. To do that, check this guide: https://webuzo.com/docs/how-tos/how-to-enable-cgroups-v2/

image

Click on the "Add Resource Limit Plan" button to add the plans.

Resources Limits

CPU Quota : - Percentage of CPU limit. [Value must be greater than 25]

IO Read Bandwidth Max :- Max rate data can be read from a disk. [Example: 256K, 256M, 256G, 256T]

IO Write Bandwidth Max :- Max rate data can be written to a disk. [Example: 256K, 256M, 256G, 256T]

IOPS Read Max :- Max disk read operations per second. [Value must be greater than 256]

IOPS Write Max :- Max disk write operations per second. [Value must be greater than 256]

Memory Max :- Absolute Memory Limit. Triggers Out-Of-Memory Killer. [Example: 128K, 128M, 128G, 128T]

Memory High :- Throttle Memory above this Limit. [Example: 128K, 128M, 128G, 128T]

Tasks Max :- Max Tasks that may be created in the unit. [Value must be greater than 10]

image


Set the limits and save the plan.

image

To assign created plan to the users click on "Assign Plan to Users" button.

image

To remove plan from multiple users, click on "Assign Plan to Users" button and select the [NO PLAN] option from the Plans dropdown.

image

You can edit, delete plans and also can delete user assigned to a plan

image
    Was this page helpful?
    Newsletter Subscription
    Subscribing you to the mailing list