Skip to Content
ReferenceEnvironment Variables

Environment Variables

Curated cheat-sheet of the most-used RELATA_* variables. For the full subsystem-by-subsystem list (~166 variables), see docs/src/end-users/environment-variables.md in the main repo.

means the feature is disabled / unset by default.

Profile & bind

VariableDefaultDescription
RELATA_PROFILEliteDeployment profile: lite (dev/CI), server (single-node prod), cluster (multi-node, alpha).
RELATA_PORT9090HTTP API port.
RELATA_HTTP_BIND0.0.0.0HTTP bind address. Use 127.0.0.1 to stay loopback-only.
RELATA_DOMAIN_PROFILEenterpriseDomain overlay: enterprise | lea | finint | security | custom.

Auth

VariableDefaultDescription
RELATA_BEARER_TOKENExpected Authorization: Bearer token. Unset = dev mode (no auth, pgwire disabled).
RELATA_ADMIN_TOKENSecondary admin-only token for management operations.
RELATA_PLAINTEXT_OKSet true to allow HTTP (no TLS) on server/cluster profiles.
RELATA_AIRGAPSet true to block all outbound network calls (no LLM, no telemetry).
RELATA_PURPOSE_MODEstrictstrict (only registered purposes) or open (any non-empty string — dev).
RELATA_PURPOSESComma-separated registered purposes (analytics,audit,compliance,...).

Rate limits (set high to disable)

VariableDefaultDescription
RELATA_RATE_LIMIT_RPSprofile-dependentRequests/sec per principal.
RELATA_RATE_LIMIT_AUTH_FAIL_RPSprofile-dependentAuth-failure rate cap (0 is treated as 1; use 99999 to disable).

For air-gapped / demo / testing:

RELATA_RATE_LIMIT_AUTH_FAIL_RPS=99999 RELATA_RATE_LIMIT_RPS=99999 relata serve # or just: RELATA_AIRGAP=true relata serve

Storage / durability

VariableDefaultDescription
RELATA_DATA_DIR./data/relataRoot for config files and WAL state.
RELATA_LOCAL_DATA_DIRExplicit local object-store path (no MinIO needed).
AWS_ENDPOINT_URLS3-compatible object-store endpoint; when set, S3 takes priority over local disk.
RELATA_IN_MEMORYSet true for an in-memory store (data lost on restart — never in prod).
RELATA_WAL_SYNCtruefsync the WAL on every append (durable). false trades durability for throughput.

Caps (RAM / cache / scaling walls)

VariableDefaultDescription
RELATA_STORE_MAX_RAM_MB1024 (server/cluster), unbounded (lite)Row-store RAM budget before spill-to-disk. Cap is byte-aware — small datasets never spill.
RELATA_DISKANN_MAX_RESIDENT0 (unbounded)Soft cap on RAM-resident vectors before the index warns to shard/restart.
RELATA_MV_MAX_ROWS1000000Cap on a materialized view’s cached rows before eviction to base-table fallback (0 = unbounded).
RELATA_VECTOR_COLD_RESIDENT_MAX100000Soft cap on RAM-resident vectors in an IVF cold bucket’s staging area before spill to PagedAnnIndex.
RELATA_CACHE_CAPACITY_BYTESTiered cache size budget.

Cold load / restart

VariableDefaultDescription
RELATA_FLUSH_SEGMENT_MAX_ROWS250000Max rows per flushed Parquet segment. A larger flush delta is split into ceil(delta/N) segments. 0 = unbounded/legacy single-segment.
RELATA_LAZY_RESTARTfalseWhen true, startup loads the manifest catalog only — O(manifest), not O(rows).
RELATA_HYDRATE_RECENT_SEGMENTS0With lazy restart on, hydrate only the newest N segments into RAM at startup.

Media worker

VariableDefaultDescription
RELATA_EMBED_BATCH_SIZE32Texts batched into one GPU/CPU embed() call per drain cycle.
RELATA_EMBED_CONCURRENCY4Number of concurrent drain-worker tasks.
RELATA_SEARCH_PRESETbalancedBM25/FTS query preset — strict / balanced / lenient. Controls edit-distance fuzzy expansion.

SmartIngest (identity auto-detection)

VariableDefaultDescription
RELATA_DETECT_PACKSnetwork,contact,cryptoSmartIngest identity auto-detection packs. Opt-in: financial,payment,social,transport,device,ics. Or all / none.

S3 door

VariableDefaultDescription
RELATA_S3_ENABLEfalseEnable the S3-compatible door.
RELATA_S3_PORT9191S3 door port.
RELATA_S3_BIND0.0.0.0S3 door bind address.
RELATA_S3_SECRET_KEY= bearer tokenSigV4 secret. When set, the door requires verified SigV4.
RELATA_S3_ALLOW_PLAINTEXTfalseDev/legacy opt-out — accept plaintext bearer / unsigned auth.
RELATA_S3_BLOB_THRESHOLD_MB4Body size that spills out-of-row into the content-addressed blob store.
RELATA_S3_BODY_LIMIT_MB128Per-GET / per-PUT body cap.
RELATA_S3_MULTIPART_LIMIT_MB1024Total multipart upload cap.

Metrics / observability

VariableDefaultDescription
RELATA_LOG_FORMATprettyjson | pretty.
RELATA_LOG_LEVELinfoLog level.
RELATA_OTLP_ENDPOINTOTLP/HTTP traces endpoint. Unset = OpenTelemetry fully disabled.
RELATA_OTLP_SAMPLE_RATIO0.01Parent-based TraceID-ratio sampler.
RELATA_METRICS_PUBLICSet true to serve /metrics without a bearer token (Prometheus scraper behind network-layer auth).

Cluster (experimental)

VariableDefaultDescription
RELATA_NODE_IDautoNode identifier for cluster membership.
RELATA_PEERSComma-separated peer addresses.
RELATA_ROLENode role: coordinator / reader / writer / indexer.

ACL grants (strict mode)

VariableDefaultDescription
RELATA_ACL_GRANTGrant read/write on a custom type in strict mode, e.g. AgentTask:read+write.
Last updated on