
Server Splitter
a serversplitter for calagopus
Description
Server Splitter
A Calagopus Panel extension that lets users split a master server's resources into separate child servers, each with its own console, files, egg and allocation. Deleting a split gives back exactly what it took.
Package name: com.caloptreyx.serversplitter · Requires panel >=1.2.11
What your users get
- A Splitter tab on every server. On a master, a pool card shows the master's CPU, memory and disk, what each split holds and what is still free.
- Split rows with live status and usage, and actions to Resize, Sync users from master or Delete split.
- A New split drawer: name, egg and its startup variables, CPU, memory and disk as sliders (memory and disk in GB), feature limits, and the port. The split either takes one of the master's spare ports or gets a new port on the node. A live summary shows what the master keeps.
- The split starts after install only when the user has the Start permission.
- Resize within the pool, never below what the split already uses.
- Delete by typing the split's name, optionally returning its ports to the master.
- Splits that are suspended, installing, restoring a backup or being transferred can't be resized or synced; a split whose install or restore failed can still be deleted.
- Synced subusers: Sync users from master adds missing master subusers and updates the permissions of synced ones. Removing a subuser from the master, or changing their permissions there, reaches the splits automatically. Subusers marked custom keep their split permissions and are never re-added by sync.
- Copying subusers needs the subuser permissions and never grants more than the acting user holds.
- A split's own Splitter page shows its share of the master and links back to it.
- Then restart, stop or kill the master: the New split drawer, Resize and Delete offer a power action for the master once the change is saved (when the admin allows it, the master is running or starting, and the user has the panel's Restart or Stop permission on it; kill needs Stop, as in the panel). The master gets its new limits first, so a restart already runs with them. If the action fails, the split change stays and the user is told why.
- An over-committed notice on the pool card when the master's plan was lowered below what its splits hold, with how much to free.
What you get
- Reserve: CPU, memory and disk every master keeps for itself.
- Minimum split size for limited resources, and a default split limit for new servers.
- Split behaviour settings:
- suspending a master suspends its splits (unsuspending lifts only those);
- changing a master's owner moves its splits;
- mirror subuser removals and permission changes from the master;
- inherit the master's CPU pinning;
- swap mode:
pooled(a quarter of the split's memory, taken from the master's swap and capped by what it has left),noneorcopy; - limits set on a master (see Billing panels): Plan total or Master only;
- master power actions users may choose after a split change (restart, stop, kill) and the
preselected one (none by default).
The bandwidth cap is copied. Other extensions' per-server limits (subdomains, proxies and the
like) are
0on splits. KVM/hugepages passthrough is not copied.
- Egg rules: which child eggs may be created from which master eggs. One rule per master egg; overlapping rules are rejected.
- A Splits tab listing masters with splits and their health: balanced, drift (limits changed outside the splitter), untracked or over-committed. Reconcile adopts a split's current limits and moves the difference to or from the master, per master or for all.
- Ledger accounting: every split's share is recorded. Deleting a split returns exactly what it took. Admin edits of a split's limits move the difference to or from the master.
- A Server Splitter card on the admin server overview with a pool-aware Resize (which can
also restart, stop or kill the master, with the admin permission
nodes.power), the master's plan total, what its splits hold and what it keeps, and a notice on every admin page of a split. - Deleting a master deletes its splits first.
Installation
Download com_caloptreyx_serversplitter.c7s.zip from the
latest release and either upload it
under Admin → Extensions or drop it into your heavy image's build/extensions/ directory and
docker compose restart web. Extensions require the :heavy panel image - see the
Calagopus docs.
Billing panels and plan totals
Billing panels (Paymenter, WHMCS modules and the like) up- or downgrade a plan by setting the
server's limits through the admin API. The Limits set on a master setting decides what that
value means for a master with splits. It applies to CPU, memory, disk, and swap when the swap mode
is pooled, whether the change comes from the admin API or the admin server page:
- Plan total: the value is the whole plan. The master keeps it minus what its splits were
charged; the splits are untouched. Example: a 4 GB master with a 1 GB split keeps 3 GB; the
plan goes to 8 GB, the master keeps 7 GB.
0(unlimited) stays unlimited. - Master only: the value is what the master keeps and the splits come on top (1.5.4 and earlier).
A value equal to what the master has now is left alone, so saving the admin server page without touching its limits changes nothing. That page shows the master's own share; the Server Splitter card on its overview shows the plan total next to it.
Downgrades below what the splits hold. Running splits are never shrunk and the billing panel's request isn't refused. The master is held at its reserve (never above the plan itself) and marked over-committed on the admin server card, in the Splits tab and on the user's pool card, with how much the splits must free. Whatever its splits give back (shrinking or deleting one) pays this down first; once it's paid, the master again gets what is freed. Feature limits (ports, databases, backups, schedules) aren't part of the plan: they stay what the master keeps.
Upgrading from 1.5.4
A migration adds the over-commit table; nothing changes on running servers. On an upgraded panel Limits set on a master starts at Master only, so limits your billing panel or admins set keep meaning what they meant in 1.5.4. Switch it to Plan total if your billing panel sends the plan size. New installs start at Plan total. Restart, stop and kill are allowed after split changes, with none preselected, so nothing happens to a master unless a user picks an action (and has the power permission for it).
Upgrading from 1.5.2
The migration records what every existing split holds, taken from its current limits (swap is counted as not taken). Split subusers whose permissions differ from the master's are kept as custom. New settings start at their defaults: suspend with master, move with owner change, mirror subusers and inherit CPU pinning on, swap pooled, minimum split size = the reserve. Nothing changes on running servers.
Configuration
Admin → Extensions → Server Splitter → Configure
- General - reserve, minimum split size, default split limit and split behaviour.
- Egg Rules - add at least one rule. Master Eggs are the eggs the rule applies to, Allowed Child Eggs are the eggs users may pick when splitting such a server.
- Give servers a splits limit, either through the default for new servers or per server in the
admin server's General tab under Feature Limits. Existing servers start at
0(disabled).
Permissions: server splitter.read|create|update|delete (syncing subusers also needs
subusers.create|update; a master power action needs control.restart, or control.stop for stop
and kill), admin extensions.splitter.read|write (admin resize also needs servers.update, and
nodes.power for a master power action).
Screenshots
New split - sliders bounded by the pool, egg variables, port choice and what the master keeps.
Manage subusers - synced and custom subusers of a split.
General Settings - reserve, minimum split size, default limit and split behaviour.
Egg Rules - which child eggs may be split off which master eggs.
Splits - masters with splits, their health and Reconcile.
Admin server overview - a master's splits with Resize, and the notice on a split's admin pages.
API
Client, under /api/client/servers/{server}:
GET|POST /splitter,GET /splitter/nestsPATCH|DELETE /splitter/{split}(DELETEtakes?return_port)POST /splitterandPATCH /splitter/{split}takemaster_power(none,restart,stop,kill) and answer with the split plusmaster_power({ action, ok, error });DELETEtakes?master_power=and then answers200with{ master_power }instead of204POST /splitter/{split}/subusers-sync,GET /splitter/{split}/subusersPUT /splitter/{split}/subusers/{user}/custom
Admin, under /api/admin/extensions/com.caloptreyx.serversplitter:
GET|PUT /settingsPOST /egg-rules,PUT|DELETE /egg-rules/{id}GET /servers/{server}- a server's master or splits;PATCH /servers/{split}/resizeGET /splits,POST /splits/{master}/reconcile,POST /splits/reconcile
Full schemas are in the panel's OpenAPI document once installed.
Support
Need help or want to request a feature? Join the Caloptreyx Discord.
License
Released under the MIT License. See LICENSE.
You might also like
All extensions- ExtensionsFree

- ExtensionsFreeSupport Center
Calagopus support ticket extension for client-to-staff support workflows.
GitHubNo ratings yet - ExtensionsFree

- ExtensionsFree








