Limiting Users' Resources Consumption

Overview

In SolusVM, you can set limits on the number of servers a specific user can create and can keep in the running state. It helps limit resources consumption by users and prevent resources overuse.

To set limits, use limit groups. You need to create a limit group first and then assign it to the desired users. You can also choose the default limit group that all new users will have. It helps avoid the hassle of assigning limit groups to new users. By default, new users do not have any set limits.

Creating a limit group

  1. Go to Access > Limit Groups and then click Add Limit Group.
  2. Give your limit group a name.
  3. Specify the maximum number of servers, running servers, and/or additional IP addresses users can have.
  4. Click Save.

You can also create a limit group via the API.

You’ve created a limit group. You now need to assign it to the desired users.

Assigning a limit group to a user

  1. Go to Access > Users.

  2. You can assign a limit group while editing an existing user or creating a new one:

    • To assign the limit group to an existing user, click the Pencil icon icon on the user’s row.
    • To assign the limit group to a new user, click Add User.
  3. Under Limit group, select the limit group. If you’re creating a user, also fill in the required fields.

  4. Click Save.

You’ve assigned the limit group to the user. The number of the user’s resources is now limited.

Note:

If you set a limit lower than the number of resources the user already has, it will not affect already assigned resources. For example, it will not automatically delete or stop servers in excess of the limit. But the user will not be able to create and/or run new servers.

Note:

In the SolusVM interface, you can assign the limit group only manually for each specific user. If you have a large number of users, assign the limit group automatically via the API. To do so, use the API requests for SolusVM: editing an existing user <operation/update-user> or creating a new user <operation/create-user>.

You can also have a limit group automatically assigned to all new users. To do so, choose the desired limit group as the default one.

Choosing the default limit group

  1. Go to Settings > User Area.
  2. Under Default limit group for a new user, select the limit group and then click Save.

All new users will now have the selected limit group.