Where the limit comes from#
A server may have as many splits as its limit. Without a limit, splitting is off.
| Source | How to set it | Priority |
|---|---|---|
| The server | Maximum splits on the Splits tab of the server in the admin area, the command or the API | First |
| An egg variable | The variable named in Split limit egg variable, SPLITS by default |
Second |
The Splits tab in the admin area says which source is used. Click Remove limit, or Use egg variable, to remove the limit of the server so the egg variable applies again.
With a billing panel#
Billing panels that set egg variables from configurable options can set the limit without any API work:
- Add a variable to the egg with the environment variable
SPLITS. - Make sure users cannot edit that variable. A variable users can edit is ignored, so users cannot raise their own limit.
- Set the variable from a configurable option in your billing panel.
Billing panels can also set the limit with the application API.
When the primary server is resized#
When a billing panel or an admin changes the memory, CPU or disk of a primary server with splits, the new value counts for the whole group:
| New value | What happens |
|---|---|
| More than the group total | The extra goes to the primary server. The splits keep their size. |
| Less than the group total | The total is shared evenly over the primary server and every split |
| Equal to the group total | Nothing changes |
So an upgrade from 8 GiB to 12 GiB gives the primary server 4 GiB more, and a downgrade shares the new total over all servers of the group.
Primary server action on split changes can restart, stop or kill the primary server after this.
Suspension#
Suspending the primary server also suspends all its splits. Unsuspending it unsuspends them again.
Deleting the primary server#
Deleting a primary server also deletes all its splits.