System overview
The MNC is not one program but a federation: Service Center, Application Center, PKI, Identity and messaging each run as their own service, some in several instances, and beside them are the Gateway and the jobs host, which have no screen of their own and still do work. This page is the one screen the whole federation stands on at once.
There is no refresh button. What a service reports by itself is shown when it reports it: the background services of the Service Center and the status of the Application Center are read again as soon as their centre says that they changed. Whether a service answers, memory, threads and load are not reported by anybody — a service that stopped says nothing. For the instances of a service and for who holds which lease there is no event yet. So for all of these the page asks every service again every 15 seconds. The line under the tiles and the line under the table say so, the one under the table per column, so that nobody takes a figure for fresher than it is. While the tab is in the background the page asks nothing; when it is in front again it asks at once. The table does not fall back to placeholders while it asks: what is on screen stays on screen until the next answer arrives.
What is running
The Instances table lists every running instance of every service of this installation, one row per instance, ordered by service. Where a row comes from depends on the service:
| Service | Where its rows come from |
|---|---|
| Service Center, Gateway, Jobs | the Service Center's instance register: every process of this federation enters itself every 10 seconds with its version, start, state, memory and threads, and disappears 30 seconds after it stops doing so. Two Service Center instances and a Gateway are three rows, whichever instance answers the question. |
| Identity, messaging service, PKI, Application Center | their own instance register, which each of these services keeps alike: one row per instance, with what it leads among its replicas. Where the overview cannot read a register (an older service, or no answer), the instance that answered the status question stands here. |
The Gateway and Jobs are services of their own: they have no screen, carry the radio protocols and the schedules, and so stand under their own names. The interface does not need an address for either.
For each instance the table shows its id (the instance that just answered is marked This instance), the state with every check that is not healthy and the next step, what it leads (see below), for the Service Center and its hosts the background services running of total, version, start, uptime, memory and threads.
The version is the program's full version, 5.3.0 for example. A program without a release stamp
carries the start of its commit behind it, 1.0.0+1a2b3c4 for example, and is recognisable as a
development build by that.
The states
What an instance says about itself — healthy, degraded, unhealthy, or Unknown while it has no health report yet (in the first seconds after its start). If a service does not answer at all, it says Unreachable, and that is a state of the plant and not a failed request: the other rows stay, and the page keeps loading.
The badge next to the page title is the worst state of all rows. An average would hide exactly the one instance somebody comes here to look for.
Leadership
Some work may be done by only one instance of the Service Center's federation. Who does it is not configured but claimed: an instance takes the task and keeps it while it lives; if it fails, the next one takes over. The Leads column shows at each instance what it leads right now, for example "Leader: Seeding". Today the Service Center hands out one such task:
- Seeding — creating the master data once at start; it is released right after, and it is correct that no instance leads it.
A task this page does not know yet stands under its name from the Service Center.
Only services that can have several instances and know such a task lead anything. Every other row shows a dash, and that is a statement, not a gap.
If nobody leads a task right now, the page says so at the top: "A task that exactly one instance leads has no leader right now", with its name. After an instance fails, this is normal for a few seconds until the next one takes over. If the notice stays for longer than a minute, check the task's background service in the Service Center under Services.
Load
The tiles above the table sum up what the instances reported about themselves: how many services are reachable, how many instances answered, and how much memory and how many threads they use together. The same two figures stand for each instance in the table.
The Load section below belongs to the Service Center alone, because only it has the figures: how many Base Stations and how many Application Centers are connected right now, and how many protocol sessions are active or suspended. A suspended session is not an error — it waits for the other side to come back and carry on where it stopped.
Nothing more stands here, on purpose. There is no metrics store in this installation this page could query. What stands here is therefore always a moment and never a history. Histories are where the service keeps them itself — the Service Center's network load on its own overview.
Identities
The two centres announce themselves in the mioty network under an EUI-64 — eight bytes, written colon-separated like a MAC address. It is the name a peer knows them by, and it is the common name of their certificate.
The Service Center's EUI has an origin:
- Configured — somebody set it. It stands.
- Generated — the Service Center gave itself one at first start, out of the configured vendor prefix and a remainder that tells this installation apart from others.
The vendor prefix is the leading bytes that name the manufacturer. It lives in the configuration, and it can change.
When the prefix changed after generation
Then the stored EUI no longer matches what is configured today, and the page says so as a notice at the top, with both prefixes in the sentence.
The stored EUI stands. It is not generated again, and that is the only answer that does no damage: every Base Station, every Application Center and every issued certificate knows this Service Center by the old EUI. If it followed the new prefix at the next start, the same installation would be a stranger overnight — the certificates would no longer match, and the peers would no longer be let in.
Changing the prefix in earnest means changing the identity of the installation. That is a fresh setup and not a setting: the centres' certificates are issued again and every peer has to be moved to the new identity. Until that has happened the notice stays — it reports no defect, it keeps visible a disagreement nobody else would notice.
The Application Center gets its EUI the same way: generated once, written down in its own database, read back thereafter. It stands here beside the name it announces and its software version. Both identities copy with one click — nobody reads an EUI off a screen, they paste it.
It does have one step the Service Center does not. Its certificate is a file on the machine, and the old identity is inside it. Anyone giving the Application Center a new EUI has to take that file with them, or the Service Center turns it away — the certificate names a different identity than the registration does. It then enrols again and waits for approval like a device arriving for the first time.