Skip to content

Simulation

For whom: administrators and technical reviewers who want to see the architecture at work.

An installation’s machines, drawn as a room: the main server, a Trino workerWorker A program that runs on its own beside the application and does the heavy work: listing a source's tables, mapping a table, copying a cut and evaluating it. Mapping and cuts need at least one. and the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources. server, with people’s desk, the organisation’s sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. databases, a third-party provider, and AWS, which the agent pulls updates from. The tour goes through the stack one technology at a time, and lights every unit and cable where it takes part.

ORGANISATIONpeople and their databasesPeople · browserGovernment DataQuality Data · rulesSuperset dashboardsGrafana · operationsthis guideoptionalread-only loginoptionalPUBLISHERoutside the installationsource tablesoptionalSource databasesthe organisation's ownIAM Roles AnywhereoptionalKMS · signing keyoptionalECR · imagesoptionalS3 · signed indexoptionalAWSpublished versions · read onlyINSTALLATION · the organisation's serversprivate network · mutual TLS · only :443 faces peopleDisk500 GB SSD*CPU8 vCPU*RAM32 GB*Main serverthe core, the orchestrator, indicators, operationsTraefik · edgeoptionalQuality Data · weboptionalQuality Data · APIoptionalSign-in · OIDCoptionalCA · certificatesoptionalPostgreSQLaccounts · auditjobs · modules' DBsoptionalDolt · rules catalogoptionalOperatoroptionalJob runner 1optionalJob runner 2optionalTrino coordinatorrun and managedby the orchestratoroptionalGrafanaoptionalLokioptionalMimiroptionalAlloyoptionalqd agentoptionalValkey · cacheoptionalSupersetoptionalAlloyoptionalqd agentoptionalspill diskoptionalTrino workerreads the sourceswrites the lakeoptionalDisk100 GB SSD*CPU8 vCPU*RAM16 GB*Trino workera machine of its ownPROVIDERa third party, outside the organisationAlloyoptionalqd agentoptionalspill diskoptionalTrino workerreads the sourceswrites the lakeoptionalDisk100 GB SSD*CPU8 vCPU*RAM16 GB*Provider · a third partyTrino worker · optionaladd more for big dataA providerdelivers a batchwhere agreedsees nothing backoptionalANOTHER SITE · optionala copy of the lake, away from itAlloyoptionalqd agentoptionalIceberg REST catalogbronze · silvergold · resultsoptionalRustFS · S3optionalDisk4 × 4 TB*CPU4 vCPU*RAM16 GB*Lake gate · TraefikoptionalLake servera machine of its owngate · TraefikoptionalRustFS · object lockoptionalDiskas the lake*CPU2 vCPU*RAM8 GB*Lake replica · optionalanother site

The stack · the current technology is lit · click one

  1. 1Traefik6 roles · 11 places
  2. 2Quality Data6 roles · 10 places
  3. 3OIDC4 roles · 11 places
  4. 4CA · mTLS4 roles · 9 places
  5. 5PostgreSQL4 roles · 4 places
  6. 6Dolt3 roles · 3 places
  7. 7Orchestrator6 roles · 5 places
  8. 8Trino7 roles · 13 places
  9. 9Big data5 roles · 11 places
  10. 10RustFS5 roles · 12 places
  11. 11Iceberg4 roles · 4 places
  12. 12Superset4 roles · 8 places
  13. 13Valkey2 roles · 2 places
  14. 14Grafana4 roles · 6 places
  15. 15Loki2 roles · 6 places
  16. 16Mimir2 roles · 6 places
  17. 17Alloy3 roles · 8 places
  18. 18qd · AWS5 roles · 10 places
  19. 19Compose4 roles · 7 places

What it is, and where it takes part · point at a row to light only its places

  1. Traefik

    A reverse proxy: it receives connections, terminates TLS and routes each request to the service behind it by its path. It can require and check client certificates.

    Why here One door for people and machines alike: routes come from each module's manifest, so a module added or removed changes its route and nothing else; it authenticates, and leaves what a person may do to the module.

    To run it
    Ports :443 for people; the internal entry point for machines
  2. In this platform · the installation's only entry point, for people and for machines, and the gate in front of the lake
  3. in every installationThe web entry point, HTTPS on :443: the application, the guide and every module's screens, each under its own pathMain server · Traefik · edge; cable browser → Traefik :443 on the main server; people's browser
  4. in every installationThe internal entry point: the installation's machines and modules, each with a certificate of its CAMain server · Traefik · edge; cable Trino coordinator ↔ Trino worker; cable main server → lake gate · the core's lake adapter, Loki and Mimir
  5. in every installationForward authentication: for a module with no sign-in of its own, it asks the core for a valid session firstMain server · Traefik · edge; Main server · Quality Data · API
  6. in every installationRoutes come from the modules' manifests, written by the agent when a module is addedMain server · Traefik · edge; Main server · qd agent
  7. in every installationThe lake's gate: lets in only connections with a certificate of the installationLake server · Lake gate · Traefik; cable Trino worker → lake gate · S3 and Iceberg REST; cable main server → lake gate · the core's lake adapter, Loki and Mimir
  8. optionalThe replica's gate, at the other siteLake replica · gate · Traefik; cable lake server → lake replica at another site (optional)

In the room

  • a unit where the technology runs, in every installation
  • a unit where it runs only if the installation adds it: outlined and marked optional
  • a unit where it takes no part
  • red, bold, with a dot: the resource this machine uses most, the one that limits it first
  • on each machine's top: Disk, CPU and RAM, each a proposed starting point, marked *; the table below says what each comes from
  • a cable it speaks on, and its plugs, in the strong ink; an optional one outlined in amber. A cable stands for every connection between its two machines
  • a connection opened, from the side that opens it to the one that listens

Lines by group

  • People · every line at people's desk or the provider's
  • Updates · the agent's line to AWS, opened from the installation only
  • Lake · every other line at a lake machine: Trino's workers and the main server to the lake's gate, the lake to its replica
  • Trino · the rest: the coordinator on the main server and Trino's workers

Machines · what each needs to run · * proposed starting points, not measurements

RoleMachinesDiskCPURAMLimits firstSize driven byPorts
Main server1500 GB SSD*PostgreSQL with its audit log, Dolt, the modules' volumes, the container images and the backups taken before each update; the lake's data is on the lake server8 vCPU*every service of the core, the orchestrator, Superset and the observability stores; the heavy query work runs on Trino's workers, not here32 GB*the same services held in memory at once, among them PostgreSQL, Superset and the Trino coordinator, which plans queries but runs none of their workRAMit holds the most services in memory at once; none of them computes a query's workhow many people and modules use it at once:443 from people's network; outbound HTTPS to AWS
Trino worker1 to start; add more for big data100 GB SSD*Trino's spill disk, for a query too big for memory, and the container images; it holds nothing once a query ends8 vCPU*a worker reads and evaluates in parallel: more cores, more of a query at once16 GB*about 13 GB for Trino, the size of the single-node starting tier, split between quality jobs and dashboard queries, plus the systemRAMa query runs in a worker's memory and spills to its disk past it: Trino's memory is what limits a job's sizethe size of the largest jobs and how many run at oncenone from people; out to the source databases' own ports
Lake server14 × 4 TB*bronze, silver and gold, the logs and metrics Loki and Mimir keep there, and the old versions of objects; it grows with the data copied from the sources, so size it from them4 vCPU*RustFS, its catalog and its gate: the queries' work runs on Trino's workers16 GB*RustFS, its catalog and its gate, Alloy and the agentDiskwhat grows is the lake: every cut copied into bronze and silver, and its results in goldhow much data is copied from the sources, and for how long it is keptnone from people
Lake replica · optional1, at another siteas the lake*at least the lake's data, plus the versions it keeps locked for 30 days; large, slow disks are enough2 vCPU*one RustFS and its gate8 GB*one RustFS and its gateDiskit holds every object of the lake and its locked versionsthe lake's size, plus 30 days of locked versionsfrom the lake server only

What an administrator provides

Cables · the technologies that speak on each

Three machines run an installation: the main server, with the core, the orchestrator and the Trino coordinator it manages, Superset with Valkey and the operations stack; a Trino worker, which holds the memory; and the lake server, which holds the data. Every machine runs Alloy and the qd agent. For big data, the installation adds Trino workers: the second one is drawn faint and marked optional, and so is the lake replica at another site. Every size on a machine's top is a proposed starting point, marked *, not a measurement: size a real installation from its data. A technology lights every unit where it runs and every cable it speaks on; where it runs only on an optional machine the unit is outlined in amber and marked optional. The room's sizes are not to scale.

  • The tour moves on by itself. Any click, key or pointer over the text pauses it on its stop; ▶ or Space resumes it. The arrow keys, or a click on the figure, go to the next or the previous technology, and the list under the figure goes to any of them.
  • A lit unit is a place where the technology runs. A unit outlined in amber and marked optional runs only on a machine an installation adds: a second Trino workerWorker A program that runs on its own beside the application and does the heavy work: listing a source's tables, mapping a table, copying a cut and evaluating it. Mapping and cuts need at least one., or the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources. replica at another site.
  • A cable stands for every connection between its two machines; its arrow points from the side that opens the connection. Nothing connects into the installation from outside: the agent opens the line to AWS.
  • Point at a row under the figure to light only that row’s places.
  • The cards on the machines’ tops give disk, CPUCentral processing unit A server's processor; the installer asks for at least 2. and memory. The one in red is the resource that machine needs most.

Government Data · Guide v0.8.1