For administrators

Servers

The machines that run app containers, their health and alerts.

What this is

The master is the machine cyantula itself runs on. It also hosts the shared database engines and runs apps. A worker is an extra machine that only runs apps. Add one when the master is getting full: cyantula places new apps where there is room. This page shows every machine, what is in use on it, which apps run there, and what to do when one fills up or disappears.

Where to find it

  1. Open Admin, then the card Infrastructure.
  2. Click Servers.

The page re-reads every machine every 15 seconds.

What you see

At the top, Measure again reads every machine now, and Add a server hands out an install command.

Alerts. The line next to the title says how often readings are judged and that a breach reaches every admin, or switched off — nobody is told. Open alerts show in red with what is wrong, since when, and how many admins were told. Nothing open. Every server is within its ceilings and answering. means all is well. A fold-out lists the alerts cleared in the last two weeks.

Image registry, when it is in use: its address, how many apps and stored versions it holds, and a pill online, not pushing or unreachable. Every build is pushed there and any server pulls from it, so a move or a rollback never rebuilds.

A server is full, when it applies: the apps cyantula would move and where to, each with a button Move to <server>.

One card per machine, with a pill:

  • master: this machine.
  • waiting for install: an install command was issued and the machine has not enrolled yet. The card says until when the command is valid.
  • online: answering and accepting apps.
  • full: above the threshold set under Server placement. Nothing new is placed there.
  • draining: not accepting new apps.
  • offline: stopped answering. The last error is shown under the name.
  • daemon outdated: the worker runs an older cyantula than the master.

Under the name: its address and when it was last seen, and a firewall line saying how many rules are in place, or firewall NOT in place with the reason.

The tiles show Memory in use, Promised to apps (the memory ceilings of the containers on it), CPU, Disk (the fullest disk) and Pressure (the worst of promised memory, memory in use and disk, against the full threshold). No reading yet. appears until the first reading.

The table lists the apps on that machine: App, Status, CPU (cores), Memory, and for a worker Copy on the master: how many files are copied and how far behind, none yet, not copied yet, or last pass failed. No apps run here. when it is empty.

Buttons on a worker card: Stop accepting new apps (then Accept new apps), Drain, and Remove or Remove anyway.

How to add a worker

Prepare: a Linux machine you control as root that can reach the master over the private network. Add a server is greyed out, with a warning, until the master has a private address for the workers to reach; set it in the server configuration and restart the gateway.

  1. Click Add a server.
  2. Copy the command under Run this on the new machine.
  3. Run it as root on the new machine. It installs docker if needed, fetches cyantula's image from the master and starts the daemon, which enrols itself. The token is single use and the card says until when it is valid.
  4. Watch the new card: it shows waiting for install, then online.

Run the same command again later to upgrade the daemon when it shows daemon outdated.

How to move apps off a full server

  1. Read A server is full.
  2. Click Move to <server> on a row. A window Move <app> to <server>? gives the reason and says the image and the app's files are carried over first, the app only switches once it answers on the new server, and an app that keeps files is stopped for a few seconds for the last copy.
  3. Click Move. The button shows Moving….

With Move an app off a full server on its own switched on under Server placement, the next deploy of each app does this without you.

How to empty a worker

  1. Click Drain on its card.
  2. The window Drain <server>? says nothing new is placed on it and every app on it is moved to the server with the most room. An app that keeps files is stopped for a few seconds; one without never stops. Click Drain.

How to remove a worker

  • With no apps on it, click Remove. A window says the daemon on it is told to stand down and cyantula forgets the server. Run the install command again to add it back.
  • With apps still on it, the button reads Remove anyway, for a machine that is gone. The window says those apps are marked failed and their next deploy builds elsewhere. If the master kept a copy of their files, they restart from it, as it was at its last pass; apps without a copy lose the files they kept there. Click Remove anyway only when the machine is gone. Drain it first if it still works.

When something looks wrong

  • offline and a red error line: the machine or its daemon is down or unreachable on the private network. Fix it, or remove it if it is gone.
  • firewall NOT in place with a reason: the rules that protect that machine could not be applied. Read the reason.
  • Copy on the master: last pass failed: the copy of an app's files is behind. Until it works, losing that worker costs more files.
  • Image registry: unreachable: images stay on the server that built them until it answers, so a move cannot pull from there.
  • Image registry: not pushing: builds on the master are not pushed because its docker has no credentials for the registry. Give the platform access to the registry's credentials and redeploy it.
  • A red message under the buttons: the action failed. Read it, then retry.

Good to know

  • Only an administrator can use this page.
  • Moving or draining restarts an app on the other machine only after it answers there; an app that keeps files has a short stop.
  • Removing a worker with apps still on it (Remove anyway) cannot be undone, and files without a copy are lost.
  • When the Alerts line says switched off — nobody is told, nothing warns you of a full disk or a silent worker; watch this page.