Skip to content

Operations

These maintenance tasks need global functionalities, typically through the ADMIN role.

Task When you need it Runs
Inference Instances need to be recomputed from their contributions In the background
Resolve links Links that should be connected aren't Synchronously
Graph reindex The graph database is out of sync or newly set up In the background
Bulk validation A validation schema has changed Synchronously
Cache flush Stale values after a direct database change Synchronously

Run inference

Inference recomputes each instance from its contributions.

Action Request
One space POST /v4/spaces/{space}/inference
All spaces POST /v4/spaces/inference
Status of the current or last run GET /v4/spaces/inference

Starting a run answers with 202. Normally, instances whose result hasn't changed are skipped. force=true reprocesses them anyway. The status reports the state, progress and failed batches. Only one inference can run at a time (409 otherwise). Needs INFER_SPACE.

POST /v4/spaces/resolve retries all unresolved links, by UUID and by identifier. Needs RESOLVE_RELATIONS.

Reindex the graph

This only applies when a graph database is configured. Without one there is nothing to reindex.

Core normally updates the graph right after each change. If an update fails, the data in PostgreSQL stays correct, but the graph is out of sync until the instance changes again or you reindex.

Action Request
Rebuild all stages POST /v4/graph/reindex
Rebuild one stage POST /v4/graph/reindex?stage=RELEASED
Status of the current or last run GET /v4/graph/reindex

The status includes, per stage, the instances written and skipped, and the nodes, relations and dropped relations. Needs REINDEX_GRAPH.

Writes are blocked during a reindex

Creating, contributing to, moving, deleting, releasing and unreleasing instances, as well as inference and link resolution, are rejected with 503 until it finishes. Plan a maintenance window.

Manage caches

Action Request
List cache keys GET /v4/cache/keys
Flush POST /v4/cache/keys/flush

The body is a JSON array of keys. An empty array, ["all"] or ["*"] flushes everything. Needs CACHE_FLUSH.

Scheduled jobs

Job Default schedule Purpose
Summary reconciliation Daily, 03:00 Recomputes the statistics tables behind type, property and link counts, and corrects any drift
Invitation cleanup Daily, 03:30 Removes expired invitation links
Cache refresh Hourly Refreshes role mappings, space names and invitations

The first two can be configured.

Write throttling

Concurrent writes are limited to half of the database connection pool (spring.datasource.hikari.maximum-pool-size). Further writes wait for a free slot and are rejected with 503 if none becomes available within the connection timeout. Bulk import clients should retry on 503.

Monitoring

Health, build information and metrics are available through Spring Boot Actuator, protected by HTTP basic authentication with the user actuator and the password from ACTUATOR_PWD.

Endpoint Content
/actuator/health Health status
/actuator/info Application information
/actuator/prometheus Metrics in Prometheus format