For administrators
Server placement
How the master treats the extra machines that run app containers: when one counts as full, and who decides that an app moves.
What this is
These settings govern the extra machines (workers) that run app containers: how often they are asked what they hold, when one counts as offline or full, and whether apps move off a full machine on their own. You need them only when you run workers. See Servers for the machines themselves.
Where to find it
- Open Admin, then the card Infrastructure.
- Click Server placement.
What you see
The form shows these fields. Save becomes Save N changes once you edit something, and Discard drops your edits. Show N rarely-used reveals the folded fields.
- Ask each server what it has (seconds): how often every worker is polled for what it holds and what is in use. A whole number of seconds. A change is live after the gateway restarts.
- Copy app folders from workers to the master (seconds): how often the master brings its copy of the persistent folders of apps on workers up to date, so a lost worker loses at most this much of their files. Only what changed travels. 0 keeps no copies. A change is live after the gateway restarts.
- Missed polls before a server counts as offline (rarely used): how many polls in a row must be missed. A whole number.
- A server is full at (%): promised memory, used memory or disk, whichever is worst. Nothing new is placed on a full server. A percentage.
- Move an app off a full server on its own: a switch. Off, the move is listed on the Servers page for an admin to confirm. The move itself is the same either way.
A field you saved shows a link to go back to the default (or to the value the server was installed with).
How to let apps move off a full server by themselves
- Open Server placement.
- Switch on Move an app off a full server on its own.
- Click Save. The message Saved. N setting(s) are in force now. confirms it.
The move then happens at the next deploy of an app on a full server. With the switch off, you confirm each move on Servers.
How to change when a server counts as full
- Set A server is full at (%) to a lower number to keep more room free, or a higher one to use machines more fully.
- Click Save.
- Open Servers: the line at the bottom shows the new threshold.
When something looks wrong
- Some values were refused — see the fields below. Each refused field says Refused: and why. Correct it and save again.
- A change to a polling or copy interval does not seem to apply: those two take effect when the gateway restarts.
Good to know
- Only an administrator can change these settings.
- A lower threshold does not move anything by itself; it changes which machines count as full and where new apps are placed. Existing apps move only as described above.
- Setting the copy interval to 0 means a lost worker loses all the files its apps kept there.