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.
- Ports: 5433 (JDBC, PostgreSQL wire protocol), 8080 (XMLA/HTTP)
- Health endpoint:
GET /api/healthon port 8080. Returns{"status":"ok"}when ready. - Depends on: query-router
- Restart behavior: Stateless. Safe to restart at any time. Active JDBC connections will drop and must reconnect.
- Log format: Structured JSON lines on stdout.
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.
- Port: Internal HTTP only. Not exposed to the host network.
- Health endpoint:
GET /api/health. Returns{"status":"ok"}when ready. - Depends on: model-service
- Restart behavior: Stateless. Safe to restart at any time.
- Log format: Structured JSON lines on stdout.
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.
- Port: Internal HTTP only. Not exposed to the host network.
- Health endpoint:
GET /api/health. Returns{"status":"ok","db_migration":"VERSION"}when ready. - Depends on: internal PostgreSQL (postgres)
- Restart behavior: Stateless. All model data persisted in PostgreSQL. Safe to restart at any time.
- Log format: Structured JSON lines on stdout.
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.
- Port: Internal HTTP only. Not exposed to the host network.
- Health endpoint:
GET /api/health. Returns{"status":"ok"}when ready. - Depends on: model-service
- Restart behavior: Stateless. Plans are recalculated from the query log on each run.
- Log format: Structured JSON lines on stdout.
scheduler
Purpose: Builds and refreshes aggregate tables in the user's target schema. Executes on a cron schedule and on demand.
- Port: Internal HTTP only. Not exposed to the host network.
- Health endpoint:
GET /api/health. Returns{"status":"ok"}when ready. - Depends on: model-service
- Restart behavior: Stateless. In-progress builds may be interrupted on restart; scheduler will re-queue them on the next run.
- Log format: Structured JSON lines on stdout.
frontend
Purpose: Web management interface for model building, aggregate management, connection setup, and platform monitoring.
- Port: 3000 (HTTP). Exposed to the host network.
- Health endpoint:
GET /api/healthon port 3000. Returns{"status":"ok"}when ready. - Depends on: model-service
- Restart behavior: Stateless. Active user sessions may need to re-authenticate after restart.
- Log format: Structured JSON lines on stdout.
Service dependency graph
- gateway depends on query-router
- query-router depends on model-service
- model-service depends on internal PostgreSQL
- optimizer depends on model-service
- scheduler depends on model-service
- frontend depends on model-service
Start order from scratch: postgres → model-service → (query-router, optimizer, scheduler, frontend) → gateway.
Service summary
| Service | Port | Health endpoint | Depends on | Stateless |
|---|---|---|---|---|
| gateway | 5433, 8080 | GET :8080/api/health | query-router | Yes |
| query-router | Internal | GET /api/health | model-service | Yes |
| model-service | Internal | GET /api/health | postgres | Yes |
| optimizer | Internal | GET /api/health | model-service | Yes |
| scheduler | Internal | GET /api/health | model-service | Yes |
| frontend | 3000 | GET :3000/api/health | model-service | Yes |