Packages and limits

Build packages from feature lists and resource plans, and understand disk quotas, bandwidth, suspension and what deleting an account removes.

A package is what you sell: the limits and features an account gets. Providers and resellers each have their own packages. Resellers need the "packages" privilege to create them.

How settings are inherited

Features and limits are set at several levels: the provider, a reseller, a package and a single account. A lower level can only stay within what the level above allows. A reseller can never give an account more than the reseller itself has, and a package is checked against its owner's own limits every time it is saved.

Feature lists

A feature list is a named set of features you reuse across packages. Manage them under Packages → Feature lists. Editing a list changes every package that uses it at once.

Each feature has one of these states:

StateEffect for the customer
HiddenOff, and the feature does not appear
DisabledOff
Read-onlyThe customer can see but not change it
EditableThe customer can use it fully

Features you can control include domains, DNS, email, website mail sending, databases, remote database access, SSH, the file manager, cron, the terminal, Git, applications and WordPress, backups, SSL uploads, PHP settings, caching, Cloudflare, uptime monitors, error pages, redirects, directory privacy, the IP blocker, website cloning, containers, plugins, API tokens and two-factor.

Every provider and reseller starts with a "Default" feature list and a "Default" package. You can make another list or package the default. The default list cannot be deleted, and a list used by an active package cannot be deleted.

ScalGuard is different: it is off until you turn it on for a reseller or a package. See Security.

Packages

Create packages under Packages → Packages. A package picks a feature list and sets limits, for example:

  • websites, domains, DNS zones and records per zone;
  • disk space, inodes and monthly bandwidth;
  • CPU, memory, processes and disk I/O;
  • databases, database users and database storage;
  • per database user: concurrent connections, and queries, writes and new connections per hour, and the longest time one query may run (see below);
  • mail domains, mailboxes, mailbox size, aliases, mailing lists and mail sent per hour;
  • users, API tokens, cron jobs, FTP accounts, uptime monitors and alert rules;
  • backup retention days and manual backups per day.

Most limits are unlimited unless you set them. A new account form preselects the default package.

Database resource limits

So that one account cannot slow the database server for everyone, a package can limit each database user:

LimitMariaDBPostgreSQL
Concurrent connections per database user (default 10)yesyes
Queries per houryesno
Writes per houryesno
New connections per houryesno
Longest run of one query, in seconds (up to 86,400)yesyes

A user over an hourly limit gets an error until the hour is over. A query running longer than allowed is stopped. Changing a package, or an account's package, applies the limits to its database users within seconds. MongoDB users are not limited this way.

Deleting a package archives it, and archived packages cannot be given to accounts. This is refused while an account still uses the package.

Packages → Skeleton directory holds the files every new website starts with, such as a welcome page.

Resource plans

Security → Isolation & resource plans lets you name a set of CPU, memory, process, file count and disk I/O limits, like CloudLinux's LVE packages. Applying a plan writes its values into the packages you choose, through the same checks as editing a package. Editing a plan updates every package that uses it, and the websites apply the new limits at once. Deleting a plan leaves the values in the packages.

Disk I/O limits are applied per account through the Linux kernel's I/O controller. Where the server does not support it, websites still run without the I/O limit.

The same page shows what isolates every website and holds the provider's isolation settings: allowed outgoing ports, disabled PHP functions, SSH rules and the shortest cron interval.

Disk quotas

ScalPanel measures each website's files every 10 minutes and adds the account's MariaDB databases. Customers see their usage against the limit and get an alert at 90 % and at 100 %.

By default the disk limit is a soft limit: once an account is over it, the panel refuses uploads, new folders and restores into new folders, but the website's own code (PHP, cron, SSH) can still write until the next measurement.

You can make it a hard limit by putting the websites' directory, /srv/scalpanel/sites, on its own ext4 or XFS filesystem with project quotas. Each website is then capped by the kernel at the account's limit and at an inode limit, and writes past it fail with "Disk quota exceeded". The account-wide total across several websites stays a soft limit.

Mailboxes are not counted in the disk limit. They have their own mailbox size limit.

Bandwidth

Bandwidth is the bytes each website sends to visitors, measured at the edge and summed per calendar month (UTC). Mail and database traffic is not counted.

When an account reaches its monthly bandwidth limit, its websites answer 509 with a short notice. HTTPS and certificate renewals keep working. The websites come back at the start of the next month, or at once when you raise the limit. With no limit set, which is the default, nothing changes.

Suspending an account

Suspend or unsuspend an account from Accounts → Accounts, one at a time or up to 100 at once.

While an account is suspended:

  • its users cannot sign in to the panel, and their API tokens stop working;
  • its websites answer 503 with the suspended account page, and HTTPS connections to them are refused;
  • its mailboxes keep receiving mail but cannot sign in;
  • cron jobs do not run and SSH access ends;
  • backups keep running, but the customer cannot start or restore them;
  • staff above the account can still download its backups and databases, for example to hand the data over.

Suspending a reseller blocks all of its accounts' users too.

Customize the page that suspended websites show under Web & software → Suspended account page. Each reseller can have its own page, so its customers never see yours. Scripts on the page run isolated from the website's address, without its cookies or storage.

Demo accounts

A demo account lets people try the hosting panel without changing anything, like cPanel's demo mode. Open the account under Accounts, select Make demo account and confirm. Only provider staff can do this.

  • Its users can sign in and open every page, but every change answers This is a demo account. They cannot create API tokens or open the terminal, and the panel shows a note at the top.
  • To set the account up with websites, mail and databases to show, use Sign in as owner: changes made that way are allowed and recorded under your name.
  • Mailbox, FTP, SSH and Web Disk passwords of the account still work where they exist. Do not publish them; share only the panel sign-in.
  • End demo mode makes it a normal account again.

Terminating an account

Terminate account on the account's page removes everything the account has. You confirm it by typing the account's name. Bulk termination asks you to type the number of accounts.

Termination deletes:

  • websites, with their cron jobs and SSH access;
  • databases and database users;
  • mail domains with all mailboxes and mail;
  • DNS zones;
  • the account's users, sessions, API tokens, alert rules, alerts and webhooks;
  • the account's backups, after the days set in Tweak settings → Keep backups of terminated accounts (7 by default; 0 removes them within about a minute).

Warning: Termination cannot be undone in place. While its backups are kept, the account can be made again from them: Accounts → Transfers → Restore a terminated account. See Backups.

A removed website's files stay in the node's trash for 72 hours, for an operator's mistake only; there is no panel action to bring them back. The account's record and audit trail stay so the log keeps its meaning, but the account no longer appears in lists. Deleting a reseller does the same for each of its accounts, then removes the reseller's users, DNS template and nameservers.