system-adminUpdated 2026-09-10

Service Reference

What this covers

Per-service details for all six Tessallite services: default ports, health endpoints, inter-service dependencies, restart behavior, and log format. Includes a service summary table and dependency graph.

gateway

Purpose: Public entry point for BI tool query traffic. Translates JDBC and XMLA queries into an internal format and forwards them to query-router.

query-router

Purpose: Routes translated queries to a pre-built aggregate or to the raw data source. Records query misses.

Successful answers also write a record to the internal execution log in the separate tessallite_runtime database. The record is best effort: an answer is returned whether or not it could be written. Configure RUNTIME_DATABASE_URL with the runtime application-role DSN. Configure RUNTIME_MIGRATION_DATABASE_URL only on model-service for the owner-only POST /api/v1/admin/migrate/runtime operation; do not pass the migration DSN to query-router. On the log's rows, the application role has INSERT/SELECT only. In the separate migration-owned workarea schema, the same role has bounded CREATE/SELECT/INSERT/UPDATE access to workarea metadata and owns generated operand relations, allowing their bounded SELECT/INSERT/UPDATE/DROP cleanup; these workarea permissions do not grant mutation of the log's rows. A combined answer across fact groups does need the runtime database, because its working tables live there.

Request-bound workarea safety is configured with the RUNTIME_WORKAREA_* settings. RUNTIME_WORKAREA_OPERAND_MAX_ROWS and RUNTIME_WORKAREA_OPERAND_MAX_BYTES bound each disposable operand; RUNTIME_WORKAREA_INSERT_BATCH_ROWS bounds transfer memory and intermediate storage checks while rows stream into an operand; RUNTIME_WORKAREA_MAX_BYTES, RUNTIME_WORKAREA_MAX_LIVE_ENTRIES, and RUNTIME_WORKAREA_MAX_CONCURRENT_BUILDS bound shared runtime admission; RUNTIME_WORKAREA_ORPHAN_SAFETY_SECONDS is the cleanup/finalization safety interval. These settings control capacity and failure safety, not answer freshness or retention policy.

A system administrator can see these limits and the current use (storage reserved, working tables, builds in progress) under System Configuration, Runtime workarea. The view is read-only. Use Refresh to fetch the latest reserved storage, table counts and active builds.

model-service

Purpose: Serves model definitions to query-router and the frontend. Writes query misses to the internal database.

Model-service also owns the authenticated runtime migration operation. It does not become the analytical execution service; query-router remains the writer of the internal execution log.

optimizer

Purpose: Chooses which aggregates to build by the query time they save across recorded queries, net of refresh time; builds, merges, splits and retires them. When it builds an aggregate it stops the query router reusing the model's older working tables, so set RUNTIME_DATABASE_URL with the runtime application-role DSN, as on query-router.

scheduler

Purpose: Builds and refreshes aggregate tables in the user's target schema. Executes on a cron schedule and on demand.

frontend

Purpose: Web management interface for model building, aggregate management, connection setup, and platform monitoring.

Service dependency graph

Start order from scratch: postgres → model-service → (query-router, optimizer, scheduler, frontend) → gateway.

Service summary

ServicePortHealth endpointDepends onStateless
gateway5433, 8080GET :8080/api/healthquery-routerYes
query-routerInternalGET /api/healthmodel-serviceYes
model-serviceInternalGET /api/healthpostgresYes
optimizerInternalGET /api/healthmodel-serviceYes
schedulerInternalGET /api/healthmodel-serviceYes
frontend3000GET :3000/api/healthmodel-serviceYes

Related