Automated Actions

From Wiki

Jump to: navigation, search

Contents

CPU Stats User Limits

Enable automated actions - Enabling this option will allow you to specify hourly and daily limitations for users on your server.

Automated actions 01.png

Web

Hourly

Executions - This value denotes the maximum script executions a single user can make for one hour.

Realtime - This value denotes the maximum real time for script executions a single user can use for one hour.

Daily

Executions - This value denotes the maximum script executions a single user can make for one day.

Realtime - This value denotes the maximum real time for script executions a single user can use for one day.

Cron

Hourly

Executions - This value denotes the maximum number of cron jobs a single user can run for one hour.

Realtime - This value denotes the maximum real time for cron jobs a single user can use for one hour.


Daily

Executions - This value denotes the maximum number of cron jobs a single user can run for one day.

Realtime - This value denotes the maximum real time for cron jobs a single user can use for one day.

Automated action

This option specifies what actions should be taken when a user exceeds any of the limitations specified above.

Automated actions 02.png

Suspend

By selecting this option, the user will be suspended upon exceeding any of the limitations you have set.

Limit service

By selecting this option, accessing the user account via web will redirect him to an URL of your choice (specified below) if he has exceeded any of the limitations you have set.

Notify only

By selecting this option, the user will be notified via email upon exceeding any of the limitations you have set.

Suspend & notify

By selecting this option, the user will be suspended upon exceeding any of the limitations you have set. Also the user will be notified via email.

Limit service & notify

By selecting this option, accessing the user account via web will redirect him to an URL of your choice (specified below) if he has exceeded any of the limitations you have set. Also the user will be notified via email.

Usage

The idea behind this functionality is to allow only a certain amount of server resources to be used by one user on the server for a given period of time. That means that if a user is limited/suspended for exceeding the maximum allowed executions for one hour for example, limitations will apply for the current hour. Limits will be taken off when the current hour has passed. If the user exceeds the daily limits - limitations will be taken down after 24 hours.

The User Limits are designed for 1H clients that would like to impose certain limits for accounts on the server. The User Limits drop down in the Cpustats interface will show you users that were or are currently limited/suspended on the server by this functionality.

Exclude Users

In some situations you may want to exclude certain users from the Automated Actions system. You can do so by adding the usernames to this file /home/1h/etc/auto_actions.exclude. Since our system offers you 3 different actions, you can exclude a user from any or all of them.

The options are:

Here is an example:

leonid12 ex_any
fireh321 ex_limit
jeronimo ex_suspend
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox