Architecture
One factory is one plant stack: one Console, one PostgreSQL database (mi-db), one historian (mi-tsdb) and one or more Site Runtimes. Everything runs inside your network.
Components
| Component | Role |
|---|---|
Console (mi-console) | Backend and web UI at /api/v2. Authentication, roles, the ISA-95 model, settings, approvals, audit. It also serves the MCP endpoint /api/v2/mcp and the public API /api/public/v1. |
| mi-db | PostgreSQL 16. Holds the Console's configuration. |
| mi-tsdb | The plant historian. Stores samples with quality and units. In the plant stack it is ClickHouse. In mii Lite the history lives in the embedded PostgreSQL. |
| mi-visual (also called observing) | Answers history queries from the Console. Reads with a read-only role. |
Site Runtime (mi-siterun, or mii-runtime on a host) | The collector next to your machines: device protocols, poll groups, buffer, alarm evaluation, rules and Uplinks. |
| mi-ingest | HTTPS gateway for remote Site Runtimes (mutual TLS, deduplicated batches). |
| mi-agent | Optional plant-local operator agent with an OpenAI-compatible model that you provide. |
| Control plane | Optional Enterprise fleet service (preview). It receives health and inventory only. |
Deployment shapes
| Shape | What runs | Use it for |
|---|---|---|
| mii Lite | One launcher: Console, database, historian, one built-in Site Runtime (lite) and a broker, as one Windows service, one Linux systemd service or one container. | A single line or a pilot. |
| Plant stack | Five images (mi-console, mi-visual, mi-db, mi-tsdb, mi-siterun) with Docker Compose or Kubernetes. | A plant with several runtimes. |
| Remote runtime | mii-runtime on another PC or mi-siterun in a container, enrolled to a Console. | Machines on another network segment. |
See Choose a deployment.
Two transports from runtime to historian
- Direct. The collector writes the plant historian itself and talks to the Console with a runtime token. Used in the plant stack and by the Lite built-in runtime.
- Ingest. The collector sends batches over HTTPS (port 443 from the runtime's point of view) to
mi-ingest, which writes the historian. Used by remote runtimes. They need no inbound port and hold no database password.
Ports in the plant stack
Only the Console publishes a host port.
| Service | Port | Exposed |
|---|---|---|
mi-console | 8080 (MI_CONSOLE_PORT) | Yes |
mi-db | 5432 | No, internal network |
mi-tsdb | 9000, 8123 | No, internal network |
mi-visual | 8090 | No, internal network |
mi-siterun | 8081 | No, internal network |