Account limits and resources
Ispmanager provides flexible distribution of server resources for each user. This allows for effective load distribution and maintaining system stability. For example, you can adjust:
- amount of RAM allowed for use
- number of running processes per user
- maximum size of a mailbox or allocated disk space
- number of available Apache handlers for a site, etc.
Managing limits and resources
For reseller users
The values are applied to all users of the reseller.
- Log in to the ispmanager panel with an administrator-level account or above.
- Navigate to the Resellers section.
- Click
Add a reseller on the toolbar or
Edit an existing one.
- Specify the required Limits and Resources.
- Save the changes.
For users
- Log in to the ispmanager panel with a reseller-level account or above.
- Navigate to the Users section.
- Click
Add a user or
Edit an existing one.
- Specify the required Limits and Resources.
- Save the changes.
Limits
- Disk — maximum available disk space for user data, does not apply to databases. This field is available if disk quotas are enabled.
Traffic per calendar month — maximum available traffic for sites and FTP users per a calendar month. The field is available if resource usage statistics is enabled.
DetailsThe field is created to manage hosting services from the billing system. Without integration with the billing system, the limit will not be applied.
When the limit in the panel is reached, the service in the billing system for the user will be suspended. To continue using the service, the user will need to renew it.
- Databases — maximum number of databases the user(s) can create.
- Database size — maximum available disk space for all databases of the user(s). The field is only available in ispmanager host.
- Database users — the maximum number of database users the user(s) can create.
- FTP users — the maximum number of FTP users the user(s) can create.
- Websites — the maximum number of sites the user(s) can create.
- Domain names — the maximum number of domain names the user(s) can create.
- Mail domains — the maximum number of email domains the user(s) can create.
- Mailboxes — the maximum number of mailboxes the user(s) can create.
Number of mails sent per hour — the maximum number of emails the user(s) can send from each of their mailbox within 1 hour. If the field value is set to 1, all outgoing emails will be blocked. The value can be overridden at the mailbox level. If the field is left blank, the mail server limit will apply.
Resources
Resource management is only available in ispmanager host.
If the sites do not use Nginx or Apache, but these web servers are installed in the panel, the specified limits will still apply.
- CPU time — the maximum duration of each process execution of the user(s) in seconds. This field is available if the Apache web server is installed. The parameter affects child processes, CGI scripts, and SSI commands, but does not affect the web server itself.
- RAM — the limit on RAM usage for each process of the user(s), specified in MB. The field is available if the Apache web server is installed. The parameter affects child processes, CGI scripts, and SSI commands, but not the web server itself.
- User processes — the maximum number of processes the user(s) can run. This field is available if the Apache web server is installed. This parameter affects child processes, CGI scripts, and SSI commands, but not the web server itself.
- Mailbox size — the maximum size of each mailbox of the user(s).
- Cron jobs — the maximum number of scheduler tasks available.
- Simultaneous connections per session from one IP — the maximum number of concurrent connections from one IP address to the site. The field is available if the Nginx web server is enabled.
- Apache handlers for each site — the maximum number of Apache handlers available for each enabled site. This field is available if the Apache web server is enabled.
- Simultaneous MySQL connections per user — the maximum number of concurrent connections between MySQL and each MySQL user.
- MySQL connections per user/hour — the maximum number of new connections between MySQL and each MySQL user within 1 hour.
- MySQL queries per user/hour — the maximum number of commands that can be executed by each MySQL user in 1 hour.
MySQL UPDATE queries per user/hour — the maximum number of data-modifying commands that can be executed by each MySQL user in 1 hour.
How limits work
limit_cpu — CPU time limit. The limit is set at the Apache level for processes that are launched through the web server.
DetailsConfiguration files:
- Debian-based systems:
/etc/apache2/users-resources/ИМЯ_ПОЛЬЗОВАТЕЛЯ/vhost.conf
- RH-based systems:
/etc/httpd/conf/users-resources/ИМЯ_ПОЛЬЗОВАТЕЛЯ/vhost.conf
This file contains the RLimitCPU VALUE parameter, where VALUE is the value of the CPU time limit.
- Debian-based systems:
/etc/apache2/users-resources/ИМЯ_ПОЛЬЗОВАТЕЛЯ/php5_module.conf
- RH-based systems:
/etc/httpd/conf/users-resources/ИМЯ_ПОЛЬЗОВАТЕЛЯ/php5_module.conf
This is the configuration file for the PHP module which contains the php_admin_value max_execution_time VALUE parameter, where VALUE is the value of the CPU time limit.
- Debian-based systems:
limit_memory — RAM limit. The limit is set at the Apache level for processes that are launched through the web server.
DetailsConfiguration files:
- Debian-based systems:
/etc/apache2/users-resources/ИМЯ_ПОЛЬЗОВАТЕЛЯ/vhost.conf
- RH-based systems:
/etc/httpd/conf/users-resources/ИМЯ_ПОЛЬЗОВАТЕЛЯ/vhost.conf
This file contains the RLimitMEM VALUE parameter, where VALUE is the value of the RAM limit.
- Debian-based systems:
/etc/apache2/users-resources/ИМЯ_ПОЛЬЗОВАТЕЛЯ/php5_module.conf
- RH-based systems:
/etc/httpd/conf/users-resources/ИМЯ_ПОЛЬЗОВАТЕЛЯ/php5_module.conf
This is the configuration file for the PHP module which contains the php_admin_value memory_limit VALUE parameter, where VALUE is the value of the RAM limit.
- Debian-based systems:
limit_process — limit on the number of user processes.
DetailsConfiguration file:
- Debian-based systems:
/etc/apache2/users-resources/ИМЯ_ПОЛЬЗОВАТЕЛЯ/vhost.conf
- RH-based systems:
/etc/httpd/conf/users-resources/ИМЯ_ПОЛЬЗОВАТЕЛЯ/vhost.conf
This file contains the RLimitNPROC VALUE parameter, where VALUE is the value of the user processes limit.
- Debian-based systems:
limit_maxclientsvhost — limit on the number of Apache handlers.
DetailsConfiguration file:
- Debian-based systems:
/etc/apache2/users-resources/ИМЯ_ПОЛЬЗОВАТЕЛЯ/vhost.conf
- RH-based systems:
/etc/httpd/conf/users-resources/ИМЯ_ПОЛЬЗОВАТЕЛЯ/vhost.conf
This file contains the MaxClientsVHost VALUE parameter, where VALUE is the value of the limit on the number of Apache handlers.
- Debian-based systems:
- limit_db_size — database size limit. The periodic function check_limit_dbsize, which runs every 10 minutes, checks the size of the user's databases against the limit, if specified. If the user reaches the specified limit, editing database users and adding new information becomes unavailable.
limit_traff — user traffic limit. Statistics are collected using methods described below.
DetailsMethods:
- collect_traf_stat — collects statistics during the day with an interval of 5 minutes. The interval is set by the TraffStatCollectPeriod parameter.
- collect_traf_monthly_stat — averages the statistics for the previous day with an interval of 1440 minutes (24 hours). The interval is set by the TraffStatCollectDailyPeriod parameter.
The statistics is collected from the log files:
/usr/local/mgr5/var/nginx.log
— site traffic log./usr/local/mgr5/var/xferlog
— the ProFTP service log./var/log/pure-ftpd/transfer.log
— the PureFTP service log in Debian-based systems./var/log/pureftpd.log
— the PureFTP service log in RH-based systems.
The statistics is stored in directories:
/usr/local/mgr5/var/stat/traff/daily/traff_stat
— statistics for the collect_acct_daily_stat method./usr/local/mgr5/var/stat/traff/monthly/traff_stat
— statistics for the collect_acct_monthly_stat method.
- limit_email_quota — limit on the maximum mailbox size. The limit is set for each mailbox using the email.edit event. After that, the data is passed to Dovecot and Exim. If a mailbox size reaches the specified limit, emails are blocked by Exim.
limit_mailrate — limit on the number of sent emails. Exim tracks the number of emails and blocks new outgoing emails if the limit is reached.
DetailsConfiguration file:
- Debian-based systems:
/etc/exim4/ratelimits
- RH-based systems:
/etc/exim/ratelimits
The file contains the limits in the format: MAILBOX_NAME:LIMIT_VALUE.
- Debian-based systems:
- limit_scheduler — limit on the number of scheduler jobs. The limit is monitored by the scheduler.edit event.
limit_nginxlimitconn — limit on the number of simultaneous connections per session. Limits are specified at the Nginx level.
DetailsConfiguration files:
/etc/nginx/conf.d/ispresources.conf
— the file sets a new memory zone with connection data. The more concurrent connections are allowed, the more memory is allocated./etc/nginx/users-resources/USERNAME/connlimit.conf
— the file contains the exact number of connections. If their limit is exceeded, the web server will ignore all exceeding connections.
- limit_mysql_maxuserconn — limit on the number of simultaneous MySQL connections.
- limit_mysql_maxconn — limit on the number of MySQL connections.
- limit_mysql_query — limit on the number of queries to MySQL.
limit_mysql_update — limit on the number of UPDATE queries to MySQL.
DetailsLimits on Simultaneous MySQL connections per user, MySQL connections per user/hour, MySQL queries per user/hour, and MySQL UPDATE queries per user/hour are set at the MySQL level for each database user, for both native and alternative DBMSs, including remote ones.
Differences between business and host
Limits | Business | Host |
| Debian-based systems:
RH-based systems: | Debian-based systems:
RH-based systems: |
Simultaneous connections per session | /etc/nginx/vhosts-resources/USERNAME/ | /etc/nginx/users-resouces/USERNAME/ |