Skip to main content

Runtimes

A Site Runtime collects data from your devices and sends it to the plant historian. The Runtimes page shows every runtime of this Console, how healthy it is and what it holds. It is also where you add runtimes, renew their certificates and remove them.

Runtimes list with one online runtime, line1-rt
Runtimes list with one online runtime, line1-rt
Site and Site Runtime are different things

The ISA-95 Site is the facility (Izmir Plant). A Site Runtime is the collector software (line1-rt). One Console has exactly one Site and can have many runtimes. See Plant topology.

How it works​

The page title is Runtimes: "Site Runtimes collect from your devices and send the data to this Console’s historian." The count reads N runtimes. The page refreshes about every 5 seconds.

Two transports exist:

TransportUsed byPath
Directmi-siterun in the plant stack, the built-in lite runtimeThe collector writes the plant historian itself and talks to the Console with a runtime token
IngestRemote or standalone runtimes (mii-runtime)Collector, then HTTPS to mi-ingest, then the historian. Only outbound HTTPS is needed at the site

The list​

Filters: Search runtimes (name, id or host), status chips (All, Online, Degraded, Offline, Waiting for first contact), Kind, Transport (Ingest or Direct) and Clear filters.

ColumnMeaning
RuntimeName and id. Below it: seen <time ago>
StatusSee states below
VersionSoftware version of the runtime
TransportIngest or Direct
BufferFill level of the local buffer (a meter)
LagHow far behind real time the data delivery is
Samples/sSamples sent per second
ErrorsHover for details: send errors, rejected, quarantined, dropped
Unknown tagsSamples that arrived for tags the Console does not know
DevicesNumber of devices on the runtime

Kinds: Windows, Linux, Docker, Built-in (Lite).

Add runtime is shown only to users who can configure the plant. In mii Lite it is hidden: "mii Lite has one built-in runtime inside the mii service. Use the Enterprise stack for more runtimes."

States​

StateMeaning
OnlineThe Console received a heartbeat or an ingest status within the last 15 seconds
DegradedOnline, but the ingest state is not ok or catching_up, the lag is above 60 s, or the ingest status is stale while the heartbeat is fresh
OfflineNothing for more than 15 seconds
Waiting for first contactThe runtime was created but has not reported yet

Ingest states (shown on a degraded runtime):

LabelStateMeaning
SendingokEverything is delivered
Catching up backlogcatching_upDelivering data that was buffered
Gateway is slowing it downbackpressuremi-ingest asks the runtime to slow down
Gateway unreachable, bufferingofflineThe runtime cannot reach the gateway and buffers on disk
Certificate revokedcert_revokedThe runtime's certificate was revoked. It keeps buffering
Buffer full, dropping oldestoutbox_fullThe disk buffer is at its limit. The oldest data is dropped

Detail page​

Click a runtime (or open /runtimes?inspect=<id>). The page has sections, not tabs. A link All runtimes goes back.

Runtime detail with Health, Devices, Certificates and Enrollment tokens
Runtime detail with Health, Devices, Certificates and Enrollment tokens
SectionContent
HealthState, Last seen, Version, Host, Running since, Transport, Buffer (rows and batches unsent, disk free), Lag, Samples/s, Errors, Unknown tags, Memory, Disk, Telemetry bus, Samples
Devices"Site Runtime → Devices → tags → equipment": Device, Protocol, Tags, Equipment, Enabled
CertificatesSerial, SHA-256 fingerprint, Issued, Expires, Status
Enrollment tokensTokens that are still valid
Recent errorsThe latest errors of the runtime
DeleteThe danger zone

Changing things needs the role admin or controls_engineer. Others see a read-only note.

Add a runtime​

Click Add runtime. The wizard has three steps: Details, Install, Connect.

  1. Details. Fill:
    • Name.
    • Runtime id. Starts with a letter, then letters, digits, _ or -, at most 64 characters. It cannot be changed later. Example: line1-rt.
    • ISA-95 Site. If missing, you see "This Console has no ISA-95 Site yet. Create the Site in the Model first."
    • Where will it run?: Windows (Windows 10 or Server 2016 or newer, as a service), Linux (systemd, amd64, .deb or tar.gz) or Docker (Docker or Podman).
    • Enrollment token valid for: 1 hour, 24 hours (default), 3 days or 7 days.
    • Click Create runtime.
  2. Install. The one-time token is "Shown only now" and works once. Copy the commands for your system and run them on the target computer. See Site Runtime install.
  3. Connect. The wizard shows progress: "Runtime and token created", "Enrolled, certificate issued", "Waiting for first contact…", "First report received — the runtime is online". Then click Open runtime or Done.

No inbound port and no firewall rule are needed at the site.

The first runtime is included in every edition. A second runtime needs the Enterprise licence feature edge.multi_runtime (otherwise MI-5003, HTTP 402).

Certificates​

Remote runtimes authenticate to mi-ingest with their own client certificate.

  • The certificate is valid for 90 days (MI_RUNTIME_CERT_DAYS on the Console).
  • The runtime renews it automatically at two thirds of its life, about day 60, with a new key.
  • A certificate shows expires soon within 14 days.
  • Status values: Active, Revoked, Expired.
ButtonWhat it does
Rotate certificateCreates a new enrollment token for a new certificate. The old certificate works until the runtime re-enrolls
RevokeRevokes a certificate (a reason is optional and audited). mi-ingest drops it within about 5 seconds. The runtime keeps buffering
New enrollment tokenCreates a token for enrolling or re-enrolling
Delete tokenRemoves an unused token

Enrollment tokens​

  • Format mi_enroll_<random>. The Console stores only a hash.
  • Valid for 1 to 168 hours, default 24. A token works once.
  • MI_INGEST_PUBLIC_URL must be set on the Console, or the token request fails with 409 "set MI_INGEST_PUBLIC_URL on the Console". MI_MASTER_KEY must be set too.
  • A direct runtime that is online cannot be enrolled. Create a new runtime for the remote computer.
  • Re-enrolling an existing runtime on a host uses mii-runtime enroll --force. The Console revokes the old certificates as "superseded".

Delete a runtime​

Delete asks you to type the runtime id (the dialog says Type <id> to confirm).

  • It is blocked while devices still use the runtime. Move or delete the devices first.
  • History in the historian stays.
  • The runtime's certificates are revoked.
  • In mii Lite, deleting is refused (403 edition_lite); the built-in lite runtime cannot be removed.
caution

Deleting a runtime in the Console does not uninstall the software at the site. On the computer run mii-runtime uninstall --purge (on Linux /opt/makeintelligent-runtime/mii-runtime uninstall --purge).

Relay (command channel)​

A remote runtime sits behind NAT and the Console cannot call it. So the runtime opens an outbound long poll to the Console and keeps it open. Through this channel the Console sends test connection, browse, tag and group changes, driver lists, live values and alarm actions, and the runtime sends the answers back.

  • A runtime counts as connected if it polled within the last 35 seconds.
  • Limits: queue 64 calls, 16 per batch, request body 4 MB, reply 12 MB.
  • The queue lives in the Console process. A single Console replica is assumed.
  • If the runtime is not connected, calls fail with "site runtime is not connected to the Console command channel".

Limits and good practice​

  • One runtime per network zone is a good start. Partition devices by runtimeId.
  • Watch Lag and Buffer. A growing buffer means the link or the historian is too slow.
  • Look for the expires soon flag on certificates now and then. Automatic renewal normally prevents expiry.
  • Upgrading a remote runtime pauses polling for about 9 seconds.

Troubleshooting​

SymptomCauseFix
Runtime is OfflineService stopped, no network, or the Console cannot be reachedCheck the service on the host; see Troubleshooting
Degraded, "Gateway unreachable, buffering"Cannot reach mi-ingest (DNS, firewall, proxy)Allow outbound HTTPS 443 to the ingest address
Degraded, "Certificate revoked"Certificate revoked in the ConsoleCreate a token and enroll again with --force
Token request returns 409MI_INGEST_PUBLIC_URL not setSet it on the Console
Unknown tags is above 0Data arrives for tags not in the ConsoleCheck the tag configuration of the device
Cannot deleteDevices still use the runtimeRemove or move the devices