Server management

Manage nodes, move websites, restart services, install updates, assign IP addresses, run a DNS cluster and several mail servers, and watch the server's health.

These pages are for the provider's administrators. Resellers do not see them.

How a ScalPanel server is built

The installer sets up one server that runs everything: the control plane, PostgreSQL and MariaDB, the DNS server (PowerDNS), the mail server and webmail, the backup store, the panels and one node. A node is the part that runs websites. Each website runs in its own container on a node, behind the node's edge web server (nginx), which terminates HTTPS.

You can add web nodes on other servers to run more websites (see Web nodes on other servers). The control plane, databases, DNS, mail and backups stay on the main server.

Nodes

Open Servers → Nodes to see each node, whether it is online, its load, and the websites it runs. A node counts as online while its agent keeps sending heartbeats, every 10 seconds by default.

On a node you can:

  • Cordon it, so no new websites are placed on it. Its websites keep running. Uncordon reverses it.
  • Drain it: cordon it and move every website on it to other nodes.
  • Rebalance from the node list: ScalPanel proposes up to 20 moves from the busiest node to the least busy one while the gap is over 20 percentage points. Nothing moves until you confirm.
  • Issue a new enrollment bundle for a node that has not connected yet, or Re-enroll one that has (see below). A bundle works once and expires after one hour.
  • Revoke a node, which cuts its connection and cancels its certificates.
  • Remove a node. This works only when no website and no migration remain on it. The machine and its data are not touched.

The node page also shows charts of CPU, memory and disk use, and the node's websites.

When a node loses the control plane

A node keeps serving on its own. While its agent cannot reach the control plane:

  • Keeps working: websites, their PHP and web servers, the edge with its certificates, IP blocks and limits, the database proxies, the website mail relay and FTP. Nothing is stopped or removed.
  • Waits: changes made in the panels for this node's websites (they are applied when it reconnects), file manager, terminal and SSH sessions, and new certificates for its websites. Certificates are renewed 30 days before they expire, so a short outage costs nothing.
  • Is skipped: cron jobs and backups due during the outage. A cron run that could not start within 5 minutes is recorded as missed; the next scheduled run happens as usual.

The agent tries again every few seconds (at most every 30 seconds) and catches up as soon as it reconnects. After 3 minutes the node shows as offline and a Node offline alert is raised.

The node's own certificate lasts 30 days and is renewed automatically after 20. A node cut off for longer than that cannot renew it. Choose Re-enroll on the node in Servers → Nodes and give the bundle to the node (on an all-in-one server: sudo scalpanelctl node-bundle, then paste it). The node keeps its ID and websites, and its earlier certificate stops working. Re-enroll is also the way back for a node whose machine was reinstalled with its data kept.

Database servers and mail servers are removed the same way, from Servers → Database servers and Email → Mail servers, once nothing uses them. The last mail server cannot be removed.

Web nodes on other servers

A web node on another server runs websites like the main server's node. It reaches the main server over a private, encrypted link (WireGuard), only for what a node needs: the control plane, the images, the database servers, the website mail relay and the backup store. It cannot reach anything else there, or another node.

Note: Installing one takes four steps on two servers. Follow Adding servers → Web node.

The node follows the main server's release: after an update of the main server, it moves to the same version within a few minutes. A node linked by 0.1.40 needs its public address once: sudo scalpanelctl link set-ip web2 <its public IPv4> on the main server.

Moving websites between nodes

You can move a website from Servers → Nodes (open the node, then Move on the website). Moves need a working backup store, because they use it.

A move works like this:

  1. ScalPanel prepares the website on the target node, where it stays idle.
  2. It backs up the website and restores it on the target.
  3. It pauses the website briefly, then copies only what changed since the first copy. During this window the website does not answer, usually for seconds.
  4. It switches the website to the target node and moves its routes and certificates.
  5. It removes the copy from the old node.

If a step fails before the switch, the website stays where it was. You can cancel a move until it starts switching. Follow progress under Servers → Migrations.

When a website's DNS zone is hosted on ScalPanel, its A and AAAA records follow the website to the new node's address within seconds. Records that point anywhere else are never changed. DNS hosted elsewhere must be changed by the customer.

Website replicas

Note: Replicas are a preview. Only provider staff set them up; customers do not see them.

A replica runs a website on more than one web server, up to 16. The website's primary server keeps its cron jobs, backups and file changes; every other server holds a copy of its files and serves it too. Databases and mail are shared and are not copied.

  1. Open Servers → Nodes, choose a web server, and under Replica links choose Link a server….
  2. Choose the other web server. A server that is not linked to any server yet gets a name and a private IPv4 address for the link; a server already linked keeps its own, and the form does not ask for them. Addresses in 10.99.0.0/24 are refused: that network is the main server's own link to its nodes. Under reached at you can give a server's public address or host name; empty means its public IPv4 address, port 51821.
  3. Choose Link. The servers set up an encrypted WireGuard link and its certificates themselves; their private keys never leave them. The list shows Ready once both are done, usually within a minute.

A server can be linked to several others. Every two servers that share a website need a link between them, so for a website on three servers link all three pairs. Open UDP port 51821 between linked servers. A web node installed before 0.1.54 also needs - "51821:51821/udp" under the node's ports in /opt/scalpanel-node/compose.yaml, then docker compose -f /opt/scalpanel-node/compose.yaml up -d.

Give a website a replica

  1. On the node's website list, choose Replica… on the website.
  2. Choose the second server and the mode:
    • Standby: the next server in the list takes over when the primary fails;
    • Shared: all servers serve visitors; changes always go to the primary.
  3. Leave Take over automatically on, or turn it off to switch only by hand.
  4. Choose Enable replica.

The same dialog, Servers of …, then lists the website's servers in order. Add a server gives the website a replica on another linked server. Drag a server, or use its arrows, to change the order: when the primary fails, the first serving server after it in the list takes over; when that one fails too, the next one. Return to the first server in the list moves the website back to the first server once it is back and has served for 5 minutes (at most once every 15 minutes). Remove… on a server removes only that replica.

Replicas run on the ScalWS web server at the edge. If the edge uses nginx, the dialog asks to switch every server's edge to ScalWS first; ScalWS is already included. While any website has a replica, the edge cannot go back to nginx.

The second server receives the website's files every 30 seconds, and a few seconds after a change in the file manager or a Git deploy. The logs/ and tmp/ folders stay each server's own. Files the website writes only on the second server, such as caches, are replaced by the next copy. The replica serves only after its first copy, and only when both servers' edges run ScalWS.

Switching servers

  • Make primary… on a server moves the website to it on purpose: changes to the website pause for a few seconds on every server (visitors who send a form get a "try again" page), the files are copied a last time to that server, then it becomes the primary and the old primary a replica.
  • Take over now… is for a primary server that is down; you choose the server that takes over. It works only when the primary has not been seen for 150 seconds. Changes made there since the last copy are lost.

Which server serves

The website's Replica… dialog shows Live traffic: for each server, whether it is receiving requests now, its requests per second and a line of the last hour. Each server reports every 10 seconds and the dialog refreshes every 5. It shows where visitors arrive, for example the second server after a takeover, or both in Shared mode.

Automatic takeover

ScalPanel moves a website to a replica by itself only when three views agree: the control plane has not heard from the primary server for 150 seconds, the website's other servers have had no WireGuard contact with it for 4 minutes (one that still has keeps it), and, if you run uptime probes, most of them see it down. One view alone never decides. The website goes to the first server after the primary in its list that is online, serving, not in maintenance and has received a copy in the last 15 minutes. In a test with two real servers, the takeover happened about 4 minutes after the primary stopped. An alert stays open until the old server is back and has received the files again; only then does the website run on two servers again.

A primary server that loses the control plane for 2 minutes stops taking the website's changes by itself, so two servers never accept changes at the same time.

DNS

When the website's DNS zone is hosted on ScalPanel, its A and AAAA records follow the primary server, as for moves. In Shared mode each record that points at the website gets a twin with each serving replica's address. Records of websites with replicas get a TTL of 60 seconds, so a takeover reaches visitors quickly. When the zone is linked to Cloudflare (DNS → Cloudflare), the same change is made to the website's records at Cloudflare within about 15 seconds, keeping their proxy setting: with Cloudflare's proxy on, visitors reach the new server too. Only records that point at your servers change.

Maintenance

Before you restart, update or test a web server, open it under Servers → Nodes and choose Start maintenance…:

  • websites it serves with a replica switch to their next server in order first, with a planned switch, so visitors see no downtime;
  • it takes no new websites, and shared replicas take its address out of DNS;
  • websites without a replica stay on it and stop answering while it is down: the dialog says how many.

End maintenance… puts it back, and can switch the websites maintenance moved back to it.

Warning: Do not use Revoke to take a server out for a while. Revoking cannot be undone: a revoked server comes back only as a new node, after removing the old one and running the node installer again.

Limits

  • A website with a replica cannot be moved, drained or rebalanced; switch it instead, or remove the replica first.
  • A server that holds replicas cannot be removed, and a link cannot be removed while a website runs on both of its servers.
  • A website runs on at most 16 servers. Linking a server to a second one, or a website to a third server, needs 0.1.55's node image on those servers.

Service status and restarts

System health → Service status checks the platform's services once a minute and lists failing ones first:

CheckPasses when
Control-plane databasethe database answers
Hosting nodesevery active node was seen within 30 seconds
DNS serverthe PowerDNS API answers
Mail directorythe mail database answers
Mail server (SMTP)SMTP greets
Website mail relaythe relay accepts connections
Backup storagethe backup store answers
Website certificatesno active certificate expires within 7 days
Panel certificatesat least one panel host name has a trusted certificate
Update checksthe last release check succeeded

Each failing check offers its fix: Restart for the service behind it, Reissue for panel certificates, Retry failed for website certificates, or Check now for updates. A "Restart services" card restarts any of these services: api, worker, panel, node, postgres, mariadb, pdns, mail, mail-db, webmail-api, sshgw and backup-store. Only one restart or update runs at a time.

Note: Service status shows problems but does not send notifications. The checks run inside the server, so they show whether services answer there, not whether they are reachable from the internet.

Updates

Settings → Updates shows the installed version and any newer release. The server checks for releases every hour by default (Settings → Tweak settings → Update check interval), or at once with Check now.

When you click Update:

  1. The updater verifies the release's signature. Only the latest signed release newer than yours can be installed, never an older one.
  2. It checks for free disk space: twice the download size plus 1 GiB. If space is short, it removes unused old images first. If space is still short, it stops before changing anything and says how much is needed.
  3. It saves a dump of the control-plane database. The last three dumps are kept.
  4. It installs the release and restarts the services.
  5. If the new version does not become healthy, it goes back to the previous release by itself.

Websites restart briefly, and the panels are unavailable for about a minute. You can also update from the server with sudo scalpanelctl update, and remove unused images with sudo scalpanelctl cleanup.

Automatic updates

Under Automatic updates on the same page, tick Install new releases automatically and choose a window, for example From 02:00 Until 05:00 in your Time zone. When the hourly check finds a newer release, the server installs it at the next hour inside the window, exactly as if you had clicked Update: the same signature checks, database dump and rollback.

  • Off by default. Only provider administrators can turn it on.
  • A window may cross midnight (for example 23:00 until 04:00).
  • If an automatic update fails, the server goes back to the previous release and does not try that release again by itself. The failure shows on the Updates page and in the banner; start it again with Update once the cause is fixed. The next release is installed automatically again.
  • Each automatic update is recorded in the audit log as platform.update, by "automatic updates".

IP addresses

IPv6

Where the server has a global IPv6 address, ScalPanel serves websites, the panels and mail over IPv6 as well (ADR-0236): visitors' IPv6 addresses reach the websites and the IP blocker, and websites reach the internet over IPv6 with the same rules as IPv4. The installer records the address as SCALPANEL_PUBLIC_IPV6 in /etc/scalpanel/scalpanel.env; certificates then work for names with AAAA records. A server installed before 0.1.45 turns IPv6 on with sudo scalpanelctl ipv6 (every service restarts once), or by itself with the next update. Servers without IPv6 run as before.

Web nodes and mail servers on other servers installed before 0.1.46 turn IPv6 on with:

curl -fsSL https://scalpanel.scalws.com/install-node.sh | sudo bash -s -- --ipv6

Servers → IP addresses holds the public addresses your server uses for websites.

  • An address is shared or dedicated. One shared address per node and family can be the default.
  • You can assign a shared address to a reseller or an account.
  • A dedicated address can be given to one website. Use Servers → Change site IP address to see every website's address and change it.
  • Resellers → Reseller IP authorization decides which addresses each reseller may use. A reseller can assign its addresses to its own accounts.

A website's DNS records point at, in this order: its dedicated address, a shared address of its account or reseller, the account's assigned shared address, the node's default shared address, the node's main address, or the provider's fallback address. When you have several shared addresses, each new account gets the one with the fewest accounts. Existing accounts are never renumbered by themselves.

Warning: ScalPanel does not configure addresses on the server's network. Add each address to the server first. The list shows how many accounts use each address, and an address in use cannot be deleted.

DNS cluster

DNS → DNS cluster adds more nameservers that answer for every zone. Members must be PowerDNS servers with secondary mode on. They copy each zone from your server with signed zone transfers (TSIG), so DNSSEC-signed zones work on every member.

  • Every 20 seconds ScalPanel compares each member with your server, creates missing zones, pulls zones that are behind and removes zones you no longer host. A member's own zones are never changed.
  • The page shows each member as In sync, Catching up, Error, Disabled or Removing, with the zones that need attention.
  • Change the key replaces the transfer key on every member within about a minute. Removing a member, turning it off or moving it to another address changes the key automatically.

A ScalPanel nameserver is set up with one installer: see Adding servers → DNS server. Other DNS servers, such as BIND, can be added by hand as plain secondaries with the transfer key. ScalPanel does not manage them.

Mail servers

Email → Mail servers lists your mail servers. You can register more mail servers and move a mail domain, with all its mailboxes and mail, from one server to another. During a move, incoming mail is deferred, not bounced, and the domain's mailboxes cannot sign in for a few minutes. New domains go to the active server with the fewest domains. A server set to draining keeps its domains but takes no new ones.

A mail server on another server

A mail server can run on its own server, joined to the main server over the same private link as web nodes.

Note: Installing one takes four steps on two servers, plus DNS and port 25. Follow Adding servers → Mail server.

Calendars and contacts work for every mail server at the panel's address (port 2080), and they are in the mailbox backups and move with a domain. Websites keep sending through the main server's relay. A mail server you run yourself, outside ScalPanel's installer, can still be registered with Register server if it reads the same mail directory.

Email → Mail server settings changes, without a rebuild:

SettingRange
Largest message1–200 MB
Recipients per message10–5000
Connections per client0–10000 per minute (0 = no limit)
Messages per client0–10000 per minute (0 = no limit)
DNS blocklistsup to 5, checked on port 25 only
Smart hosthost and port, optional user and password
DKIM key rotationevery 3, 6 or 12 months, or only on request

Monitoring and alerts

  • Node charts on each node page show CPU, load, memory and website disk use over up to 30 days.
  • System health → CPU usage shows what accounts use now and a website's processes.
  • System health → Database processes shows the database servers' connections.
  • System health → Alerts lists firing and recent alerts. Provider alerts include a node offline for 3 minutes, a node's website disk over 90 % full, a failed backup repository check, a failed off-site copy, and a mail server address on a DNS blocklist (checked every 6 hours against Spamhaus ZEN, Barracuda and SpamCop; the address is the public IPv4 address the mail server's host name resolves to).

Uptime probes. Uptime monitors are checked from this server; a probe checks them from elsewhere too. To add one, follow Adding servers → Uptime probe.

The probe checks every monitor every 5 minutes and reports back. A website counts as down only when most of the recent views (this server's and every probe's) see it fail, so neither a problem of this server's own network nor one of a probe gives a false alarm. When the probe cannot reach the panel for 3 minutes, it posts to its --notify-url (and again when the panel answers): the warning reaches you even when the whole server is down. A probe that stops reporting raises a probe offline alert. At most 10 probes.

Hardware health. Each node reports its software RAID arrays (Linux md, from /proc/mdstat) and the health of its disks (SMART, read with smartctl once an hour: overall health, reallocated, pending and uncorrectable sectors, and NVMe warnings, media errors and wear). The node page shows them under Hardware, and a degraded array or a failing disk raises a critical node hardware alert until it is fixed. Virtual servers usually report no disk health; hardware RAID controllers are not read.

Customers get an alert when all PHP workers of one of their websites were busy in the last 15 minutes, so visitors waited: PHP-FPM wrote "server reached pm.max_children" to the website's log. The number of workers follows the website's memory; more memory, caching or faster code are the remedies. This works with nginx, Apache and nginx + Apache, whose PHP runs under PHP-FPM.

Alerts are emailed to users with a confirmed address once an outgoing mail relay is configured, at most 50 emails per tenant per day. Customers also get alerts for their own websites, and can add uptime monitors in the hosting panel when their package allows it.

Audit log

System health → Audit log records every change in the panel, including refused attempts. Filter by text, kind of activity, result and dates, hide system events, and download the result as CSV (up to 100,000 events).

By default the log keeps every event. You can set a retention of 90 to 3,650 days on the same page. Resellers see the events of their own accounts.

Tweak settings

Settings → Tweak settings changes these values without a restart:

SettingDefaultRange
Session lifetime12 hours1–72 hours
Idle timeout30 minutes5–480 minutes
Failed sign-ins per user53–20
Failed sign-ins per address5010–500
Counting window15 minutes1–1440 minutes
Lock duration15 minutes1–1440 minutes
Minimum password length1212–64
Update check interval6 hours1–168 hours

The minimum password length can only be raised. Mailbox passwords have their own minimum.