Skip to main content

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​

ComponentRole
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-dbPostgreSQL 16. Holds the Console's configuration.
mi-tsdbThe 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-ingestHTTPS gateway for remote Site Runtimes (mutual TLS, deduplicated batches).
mi-agentOptional plant-local operator agent with an OpenAI-compatible model that you provide.
Control planeOptional Enterprise fleet service (preview). It receives health and inventory only.

Deployment shapes​

ShapeWhat runsUse it for
mii LiteOne 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 stackFive images (mi-console, mi-visual, mi-db, mi-tsdb, mi-siterun) with Docker Compose or Kubernetes.A plant with several runtimes.
Remote runtimemii-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.

ServicePortExposed
mi-console8080 (MI_CONSOLE_PORT)Yes
mi-db5432No, internal network
mi-tsdb9000, 8123No, internal network
mi-visual8090No, internal network
mi-siterun8081No, internal network