Wiki Operations
Configuration reference
Every configuration key Mirexa reads — type, default, validation, what consumes it, and its environment override.
Mirexa's two long-running binaries, mirexa-server (built from cmd/server) and
mirexa-dashboard (built from cmd/dashboard), read one YAML schema. Each binary reads the
sections it uses: the node ignores dashboard:, and the dashboard reads only dashboard:
and logging:. This page lists every key the schema holds, with its default as set by the
code's default constructor (config.Default()), the rule validation applies, what reads it,
and its environment override where one exists.
How a configuration is resolved
Values are layered, lowest precedence first:
- Defaults from
config.Default(). - The YAML file named by
-config. A key absent from the file keeps its default. Unknown keys are ignored, with one exception: a top-levelstreams:section is refused (config.ErrStreamsSectionMoved), because a stream's trading calendar is now stream metadata set through the control API, and an old file silently ignored would file every weekend as missing data.[1] - Environment variables
MIREXA_<SECTION>_<KEY>, for the subset listed in the tables below. Only set, non-empty variables apply. A value that does not parse (a non-number for an integer, say) is not an error: it is printed to stderr as[config warning] ...and the previous value stands. -data-dir(server only) overridesstorage.data_dir.
Then the whole configuration is validated, and every problem is reported at once:
mirexa: load config: configuration validation failed:
- storage: data_dir must not be empty
- wal: sync_policy must be "always", "interval", or "disabled", got "sometimes"
When
-configis given, the file is validated before-data-diris applied, so a file withoutstorage.data_dirfails to load even if-data-diris passed (checked by running the binary, 2026-10-30). Putdata_dirin the file, or setMIREXA_STORAGE_DATA_DIR, or run with-data-dirand no-config.
Durations are Go duration strings in quotes or bare ("30s", 500ms, 1h). A duration
written as a number is refused (duration must be a string).
Cluster settings override the file
Four values must be identical on every node of a cluster, and with cluster.enabled: true
the file's values only seed a new cluster: partition.count, compression.algorithm,
cluster.liveness_timeout and cluster.replication_factor. Once the cluster has agreed on
them (the first founding node to propose wins), every node runs on the agreed values, and a
file that differs is logged as a warning and otherwise ignored. The partition count,
liveness timeout and replication factor are immutable once agreed.[2] See
the control plane.
Hot reload
When started with -config, the server watches the file's directory (so editors that
write a temporary file and rename it are seen) and reloads on change. Only
logging.level is applied live. Every other changed key that the reload's diff covers is
logged once as config changes require a restart to take effect with the field names, and
otherwise ignored. The diff covers the partition, network (not subscription or
max_subqueries_per_request), observability, storage (not decoded_chunk_cache_bytes),
compression, security (TLS fields only), wal (not checkpoint_interval,
max_buffer_bytes or buffer_wait_timeout), ingestion (not cache_span,
gap_compaction_ratio or the admission pair) and logging keys; a change to any other key
(query_cache, control, cluster, security.auth, security.max_permissions,
dashboard, …) produces no message at all and takes effect at the next restart.[3] A
reload whose file fails validation keeps the running configuration and prints
[config watcher] failed to reload to stderr. The dashboard does not watch its file.
Sections at a glance
| Section | Read by | Scope |
|---|---|---|
storage |
server | node |
network |
server | node |
observability |
server | node |
logging |
server, dashboard | node |
partition |
server | cluster setting |
compression |
server | cluster setting |
security |
server | node |
wal |
server | node |
ingestion |
server | node |
query_ |
server | node |
control |
server | node |
cluster |
server | node, plus two cluster settings |
dashboard |
dashboard | process |
A table cell "—" in the Env column means the key has no environment override.
storage
| Key | Type | Default | Validation | Env |
|---|---|---|---|---|
data_ |
path | (none) | required | MIREXA_ |
compaction_ |
int | 50000 |
≥ 0; 0 disables |
MIREXA_ |
compaction_ |
duration | 1h |
≥ 0 | MIREXA_ |
decoded_ |
int64 | 268435456 (256 MiB) |
≥ 0; 0 disables |
— |
data_diris the root of everything the node writes: partitions, the WAL, the node's stream registry, Raft state (raft/, clustered only) andquarantine/. There are deliberately no separate WAL or chunk directories. The server creates it (mode 0755) if missing. See the on-disk layout.compaction_entry_threshold/compaction_intervalare Mirexa's retention, and it is on by default. Everycompaction_interval, each stream written live on this node checks how many entries itsstream.idxholds (one per chunk, corrections included). Past the threshold it deletes the oldest entries and their chunk files until half the threshold remains — 25,000 of 50,000 by default. It is count-based, not time-based, and there is no time-based retention setting.0(or a negative value) turns it off and keeps everything. See how much history the default keeps.[4]
How much history the default keeps
The threshold counts chunks, so the history it keeps depends on how often a stream cuts a
chunk. For a stream written live, that is mostly the WAL checkpoint: every
wal.checkpoint_interval (15 minutes) the node drains each stream that received data into
one new chunk; between checkpoints a stream cuts chunks only once its hot cache holds more
than its retained share (cache_hot_cache_size). Estimated from the code, not measured:
| Stream written live | Chunks per day | Deletion starts after | History kept after a compaction |
|---|---|---|---|
| at least one bar every 15 minutes (1s – 15m bars) | ~96 | ~520 days | ~260 days |
| hourly bars | ~24 | ~5.7 years | ~2.9 years |
| daily bars | ~1 | ~137 years | — |
History loaded through the history route is chunked by ingestion.history.arena_capacity
(10,000 bars per chunk), so a bulk load uses far fewer entries. Each correction adds an
entry too. To keep more, raise compaction_entry_threshold (or set it to 0), or raise
wal.checkpoint_interval, which also lengthens recovery. A copy in a cluster mirrors its
primary's retention rather than running its own, and a stream derived from candles never
keeps bars older than its source still holds.[5]
decoded_chunk_cache_bytesbounds the query path's cache of decoded chunks. Candle chunks are held bit-packed (about 12 bytes per candle by the code's own estimate, so the default holds on the order of 20 million candles); tick chunks are held decoded. Its hit/miss metrics are registered only when it is non-zero.
network
The data-plane listener: the binary wire protocol clients and SDKs speak. See running a node for ports.
| Key | Type | Default | Validation | Env |
|---|---|---|---|---|
addr |
host:port | : (all interfaces) |
non-empty | MIREXA_ |
read_ |
duration | 30s |
> 0 | MIREXA_ |
write_ |
duration | 30s |
> 0 | MIREXA_ |
idle_ |
duration | 120s |
> 0 | MIREXA_ |
max_ |
int | 10000 |
> 0 | MIREXA_ |
connection_ |
duration | 30s |
> 0 | MIREXA_ |
shutdown_ |
duration | 30s |
> 0 | MIREXA_ |
buffer_ |
int (bytes) | 4096 |
> 0, and ≥ 98 at server start | MIREXA_ |
max_ |
uint32 | 16777216 (16 MiB) |
4 KiB – 64 MiB | MIREXA_ |
max_ |
int | 128 |
0 – 4096; 0 = 128 |
— |
subscription. |
int | 256 |
> 0 | MIREXA_ |
subscription. |
int | 64 |
> 0 | MIREXA_ |
subscription. |
uint64 | 10000 |
0 disables eviction |
MIREXA_ |
subscription. |
int | 0 (off) |
≥ 0 | MIREXA_ |
read_timeout/write_timeoutare per-socket deadlines set before each read and write on a connection. Because a connection waiting for its next frame is in a read, a client that sends nothing forread_timeout(30 s by default) has its connection closed. The SDKs reconnect on the next request; see durability for why a write on a connection the server already closed is sent fresh rather than reported ambiguous.idle_timeout: a monitor closes a connection with no read or write activity for this long.max_connections: connections beyond it are closed immediately on accept and counted inmirexa_network_connections_rejected_total.connection_timeout: how long a new connection has to complete the INIT handshake.shutdown_timeoutbounds two separate waits at shutdown: the hand-off to copies, and the listener's wait for connections to finish (after which they are force-closed). See startup, shutdown and recovery.buffer_size: size of each pooled per-connection buffer. The server refuses to start below 98 bytes (a 14-byte frame header plus the 84-byte INIT payload).max_frame_payload_bytes: frames advertising a larger payload are refused before any buffer is allocated. It is a memory bound: a connection may buffer a whole frame, so the worst case is this times the connection count. Query responses are sized to fit under it.max_subqueries_per_request: how many sub-queries one QUERY_MULTI frame may carry; a larger batch is refused whole, never truncated. The ceiling is the wire protocol's own.subscription.*:queue_depthcounts batches, not records.drop_limitis the number of consecutive dropped batches after which a subscription is evicted withSlowConsumer(0x0006); one successful enqueue resets the count.offload_aboveis a clustered-node setting: holding at least this many live subscriptions, a primary sends a new candle subscriber that can follow one to an in-sync copy of its partition. See subscriptions and reads from copies.
observability
The HTTP server for /metrics, /health and /ready. See monitoring.
| Key | Type | Default | Validation | Env |
|---|---|---|---|---|
addr |
host:port | : (all interfaces) |
non-empty | MIREXA_ |
read_ |
duration | 5s |
> 0 | MIREXA_ |
write_ |
duration | 10s |
> 0 | MIREXA_ |
shutdown_ |
duration | 15s |
> 0 | MIREXA_ |
The defaults for
observability.addr(:9090) andcontrol.addr(127.0.0.1:9090) collide. Withcontrol.enabled: trueand both left at their defaults, the control listener binds first and the observability server fails withaddress already in use. That failure is logged once at ERROR ("msg":"observability server") and the node keeps running without/metrics,/healthor/ready. Move one of them (reproduced on 2026-10-30 with the built binary).
logging
Read by both the server and the dashboard.
| Key | Type | Default | Validation | Env |
|---|---|---|---|---|
level |
string | info |
debug, info, warn, error |
MIREXA_ |
encoding |
string | json |
json, console |
MIREXA_ |
output |
string | stderr |
stdout, stderr, or a file path |
MIREXA_ |
max_ |
int | 100 |
> 0 | MIREXA_ |
max_ |
int | 3 |
≥ 0 | MIREXA_ |
max_ |
int | 7 |
≥ 0 | MIREXA_ |
compress |
bool | true |
— | MIREXA_ |
sample_ |
int | 100 |
≥ 0 | MIREXA_ |
sample_ |
int | 100 |
≥ 0 | MIREXA_ |
The rotation keys apply only when output is a file path (rotation is done in-process).
Sampling is on when both sample keys are positive: per second, the first sample_initial
identical messages are logged and then one in sample_thereafter. level is the one key
the server applies on hot reload.
partition
| Key | Type | Default | Validation | Env |
|---|---|---|---|---|
count |
uint32 | 4096 |
> 0, power of two | MIREXA_ |
The number of fixed logical partitions streams hash into (all timeframes of one symbol on one exchange share a partition). It is part of the on-disk layout: changing it re-maps every stream, so a node started with a different count than its data was written under cannot find that data. In a cluster it is an agreed, immutable setting. See partitions and routing.
compression
| Key | Type | Default | Validation | Env |
|---|---|---|---|---|
algorithm |
string | fixed_ |
fixed_, gorilla, none (or empty) |
MIREXA_ |
The codec new chunks are written with. Chunks record their own codec, so existing
chunks are read as written and never rewritten; a stream may hold chunks of several codecs.
none stores raw 8-byte values (about 48 bytes per candle, 24 per tick). gorilla and none
are lossless for base chunks, patch chunks and tick chunks alike. In a cluster it is an agreed setting. See
chunks and compression.
security
Data-plane TLS, token authentication and the grant ceiling. See TLS and authentication.
| Key | Type | Default | Validation | Env |
|---|---|---|---|---|
tls_ |
bool | false |
— | MIREXA_ |
cert_ |
path | (none) | required when tls_ |
MIREXA_ |
key_ |
path | (none) | required when tls_ |
MIREXA_ |
ca_ |
path | (none) | required when client_ verifies |
MIREXA_ |
client_ |
string | none |
none, request, require_, verify_, require_ |
MIREXA_ |
min_ |
string | 1. |
1., 1. |
MIREXA_ |
cipher_ |
list | (empty: Go's defaults) | names Go's TLS stack knows | MIREXA_ (comma-separated) |
max_ |
list | (empty: no ceiling) | non-empty names; unknown names stop the server at start | — |
auth. |
bool | true |
in a cluster, needs ≥ 1 trusted key | — |
auth. |
duration | 0 |
— | — |
auth. |
string | — | non-empty, unique | — |
auth. |
string | — | base64 of a 32-byte Ed25519 key | — |
- The TLS options (
client_auth,min_version,cipher_suites) are validated only whentls_enabledis true.cipher_suitestakes effect only withmin_version: "1.2"; TLS 1.3 suites are not configurable in Go. - The same TLS configuration serves the data plane, the control listener (with
control.use_tls) and a joining node's calls to its seeds. The certificate is reloaded onSIGHUP. max_permissionscaps every grant the node issues, by permission name (READ_TICKS,READ_CANDLES,WRITE_TICKS,WRITE_CANDLES,ADMIN_STREAM,LIST_STREAMS,ADMIN_CLUSTER; see permissions). It applies whether or not auth is enabled and only ever narrows. It caps the control plane's admin token too: a ceiling withoutADMIN_CLUSTERrefuses every admin call. A list that names nothing grantable stops the server at start.auth.enabledturns on signature verification; it is on by default. With notrusted_keys, a single node generates its own issuer on first start and writes an admin token to<data_dir>/auth/admin.token, re-minted while it runs (Authentication); a node withcluster.enabled: trueand no trusted keys is refused at load, because its nodes would each trust a different key. With it off, any token is accepted and the permission bitmap a client presents is self-asserted (expiry is still checked).trusted_keysare validated even while auth is off, so a typo is caught when written.auth.trusted_keys[].public_keyis the base64 stringmirexa-cli token keygenprints — an inline value, not a path.auth.subscriber_gracekeeps an established subscription receiving for this long past its token's expiry. It never admits an expired token and never extends a writer.
wal
The write-ahead log every acknowledged write reaches before it is acknowledged. See the write-ahead log.
| Key | Type | Default | Validation | Env |
|---|---|---|---|---|
flush_ |
duration | 500µs |
> 0 | MIREXA_ |
batch_ |
int (bytes) | 65536 |
> 0 | MIREXA_ |
max_ |
int (bytes) | 4194304 (4 MiB) |
≥ 0 and, if > 0, ≥ batch_; 0 = unbounded |
MIREXA_ |
buffer_ |
duration | 2s |
≥ 0; 0 waits forever |
MIREXA_ |
sync_ |
string | always |
always, interval, disabled |
MIREXA_ |
sync_ |
duration | 1s |
> 0 | MIREXA_ |
max_ |
int | 3 |
≥ 0 | MIREXA_ |
retry_ |
duration | 10ms |
> 0 | MIREXA_ |
max_ |
int64 | 536870912 (512 MiB) |
> 0 | MIREXA_ |
retain_ |
int | 3 |
≥ 0 | MIREXA_ |
checkpoint_ |
duration | 15m |
0 disables (logged as a warning) |
— |
shard_ |
int | 16 |
≥ 0; 0/1 = no tick sharding |
MIREXA_ |
flush_interval/batch_size: a record waits in the write buffer at mostflush_interval, or until the buffer reachesbatch_size, before it is written and synced. Concurrent writers share one fsync (group commit).max_buffer_bytesis the enforced bound on unflushed bytes and the source of ingest backpressure: at the bound an append waits, and afterbuffer_wait_timeoutthe batch is refused withOverloaded(0x0007), having stored nothing. It is per writer: the shared candle writer plus one per tick shard, so budgetmax_buffer_bytes × (shard_count + 1), and about twice that while a buffer is in flight.sync_policy:alwaysfsyncs every flush, and an acknowledgement then means the record is on disk.intervalfsyncs at most everysync_interval;disablednever fsyncs. Under the latter two an acknowledgement promises only what the policy does. An unrecognised value never reaches the writer (validation refuses it).max_retries/retry_base_delay: retries of a failed flush, with backoff. A flush that still fails poisons the writer: every later append fails rather than acknowledging data that cannot be written.checkpoint_interval: each run drains every stream's hot cache to chunks and deletes WAL segments no longer needed. With0the log grows without bound and recovery after a crash replays all of it. Each run cuts one chunk per stream that received data, which is what sets how fast retention consumes its entry budget; the small chunks are not merged later.shard_count: ticks are written toshard_countindependent WAL shards (wal/shard_<n>/); candles always use the shared log. Every shard directory on disk is recovered at startup whatever this says now.
ingestion
Per-workflow ingest settings: live_candle, live_tick, history. See
the hot cache and the write path.
ingestion.live_candle and ingestion.live_tick
| Key | Type | Default (live_ / live_) |
Validation | Env (<W> = LIVE_ or LIVE_) |
|---|---|---|---|---|
cache_ |
uint32 (slots) | 50000 / 10000 |
> cache_ |
MIREXA_ |
cache_ |
uint32 (slots) | 25000 / 5000 |
< cache_ |
MIREXA_ |
cache_ |
duration | 0 / 0 |
≥ 0 | MIREXA_ (candle only) |
flush_ |
duration | 5s / 5s |
> 0 | MIREXA_ |
gap_ |
float | 0 / 0 |
in [0, 1); 0 disables |
— |
admission_ |
int | 3 / 0 |
≥ 0 | — |
admission_ |
duration | 10ms / 0 |
≥ 0 | — |
cache_arena_capacityis the ceiling on a stream's hot-cache slots. Each stream's size follows its timeframe:cache_span ÷ intervalslots, at least 2,048 and at mostcache_arena_capacity. Withcache_spanat0the span is whatcache_arena_capacityone-minute slots cover, so every stream of 1m or shorter gets exactlycache_arena_capacity. A slot costs 40 bytes whether filled or not. An operator overrides one stream withmirexa-cli cache set. The cache size is also the widest live batch a stream accepts; a wider one is refused (batch spans more slots than the arena holds).cache_hot_cache_sizeis how many candles a full-size cache keeps after a flush (a smaller per-stream cache keeps the same share), so recent reads stay in memory.flush_interval: time between background flushes of settled bars to chunks.gap_compaction_ratio: the share of committed slots that must be gaps before the flusher reclaims them — useful for sparse or illiquid streams.admission_retries/admission_wait: a live candle batch that finds its cache full waits up toadmission_retries × admission_waitfor the eviction it requested before it is refused withOverloaded.- Ticks do not use the hot cache, so the
live_tickcache sizes and admission keys have no practical effect; onlylive_tick.flush_intervalmatters there. This is read fromdocs/dev-overview.md§5.8 and the dispatcher, and not separately tested.
ingestion.history
The bulk back-fill path (FlagHistory writes, mirexa-cli ingest -history,
mirexa-cli load). See corrections and history.
| Key | Type | Default | Validation | Env |
|---|---|---|---|---|
arena_ |
int | 10000 |
> 0 | MIREXA_ |
worker_ |
int | 4 |
> 0 | MIREXA_ |
queue_ |
int | 32 |
> 0 | MIREXA_ |
Candles buffered per stream before a chunk is compressed, the compressing goroutines, and the arenas allowed to wait for compression.
query_cache
A read-through cache of query results, invalidated per stream on every write (including what replication installs on a copy), with a TTL as a backstop.
| Key | Type | Default | Validation | Env |
|---|---|---|---|---|
enabled |
bool | false |
— | — |
ttl |
duration | 30s |
> 0 when enabled | — |
max_ |
int | 1000 |
> 0 when enabled | — |
control
The gRPC control listener: stream metadata (calendars, closures, lineage, cache size), node status and storage statistics, and — on a clustered node — the cluster administration API. See the control-plane API.
| Key | Type | Default | Validation | Env |
|---|---|---|---|---|
enabled |
bool | false |
— | — |
addr |
host:port | 127. |
non-empty when enabled | — |
reflection |
bool | false |
— | — |
shutdown_ |
duration | 10s |
≥ 0 | — |
use_ |
bool | false |
needs security. (checked at start) |
— |
admin_ |
bool | false |
needs ≥ 1 security. (checked at start) |
— |
reflectionenables gRPC server reflection for tools such asgrpcurl.use_tlsserves the control listener with the data plane's TLS configuration; there are no separate certificate settings.admin_authrequires a token carryingADMIN_CLUSTER, signed by one ofsecurity.auth.trusted_keys, asauthorization: Bearer <token>on every call to the listener. It is independent ofsecurity.auth.enabled.- The loopback rule: with
admin_authoff,addrmust be a loopback IP literal (orlocalhost); a wildcard, a hostname or a routable address stops the server at start (ErrControlAPINotLoopback), clustered or not.[6]
cluster
Consensus and cluster membership. Off by default; a node with enabled: false is a plain
single node and reads none of the other keys. See cluster architecture
and operating a cluster.
Validation of this section runs only when enabled is true.
Identity and contact
| Key | Type | Default | Validation |
|---|---|---|---|
enabled |
bool | false |
— |
node_ |
uint64 | 0 |
≥ 1 |
raft_ |
host:port | (none) | required |
initial_ |
map id → raft addr | (empty) | ids ≥ 1, addresses non-empty, must contain node_ if non-empty |
seeds |
list of control addrs | (empty) | — |
admin_ |
path | (none) | — |
join_ |
duration | 1m |
> 0 |
settings_ |
duration | 15s |
> 0 |
strict_ |
bool | false |
— |
voters |
int | 3 |
odd, 1–7 |
node_idmust be unique and stable across restarts; Raft state is keyed by it.raft_addrmust be dialable by peers (not a wildcard or loopback in a multi-node cluster). Raft state lives in<data_dir>/raft/; there is no separate directory knob.initial_members: non-empty means bootstrap (identical on every founding node); empty means join. It is consulted only when the node has no Raft state on disk.seedsare control addresses (not Raft addresses) of existing members, used as contact points to join. A member also contacts the members its own state knows, leader first, before its seeds.admin_token_fileholds this node'sADMIN_CLUSTERtoken for registration and heartbeats when the control planes require admin auth. It is re-read before every request, so it can be rotated in place.join_timeout: how long a joining node tries to be admitted before startup fails.settings_timeout/strict_settings: how long startup waits for the agreed cluster settings. Withoutstrict_settingsa node that sees none in time starts on its own YAML values with a loud warning; with it, it refuses to start.voters: how many voting members the control-plane group grows toward. Joiners start as non-voters and the leader promotes caught-up ones.
Raft timings
These map straight onto hashicorp/raft's configuration; the defaults are that library's.
| Key | Type | Default | Validation |
|---|---|---|---|
heartbeat_ |
duration | 1s |
> 0 |
election_ |
duration | 1s |
> 0 |
leader_ |
duration | 500ms |
> 0 and ≤ heartbeat_ (checked at start) |
commit_ |
duration | 50ms |
> 0 |
snapshot_ |
uint64 | 8192 |
— |
snapshot_ |
duration | 2m |
> 0 |
trailing_ |
uint64 | 10240 |
— |
snapshot_ |
int | 2 |
≥ 1 |
max_ |
int | 64 |
> 0 |
heartbeat_timeout is a follower's patience before standing for election, not the leader's
send rate. snapshot_interval is how often the threshold is checked.
Cluster settings and loops
| Key | Type | Default | Validation |
|---|---|---|---|
liveness_ |
duration | 30s |
> 0 and > election_; 100ms–1h when agreed |
replication_ |
int | 1 |
1–7 |
migration_ |
duration | 1s |
— |
max_ |
int | 2 |
— |
rebalance_ |
bool | false |
— |
rebalance_ |
duration | 1m |
— |
rebalance_ |
float | 0. |
— |
rebalance_ |
int | 4 |
— |
partition_ |
duration | 1h |
— |
rebalance_ |
duration | 5m |
≥ 0; 0 = balance bytes only |
scrub_ |
int64 | 8388608 (8 MiB/s) |
≥ 0; 0 disables |
copy_ |
duration | 5s |
≥ 0; 0 removes the bound |
liveness_timeout(cluster setting, immutable once agreed): how long a node may go without a heartbeat before it is fenced. It also sizes the primary lease (three quarters of it) and the failover delay. See failover.replication_factor(cluster setting, immutable once agreed): nodes holding each partition, primary included. The leader adds missing copies; it never removes surplus.migration_interval,max_concurrent_migrations: cadence of the migration orchestrator and how many partitions may seed at once, cluster-wide.rebalance_*,partition_cooldown: the rebalance planner runs everyrebalance_intervalregardless; withrebalance_autooff its plan is advisory (GetRebalancePlan), with it on the leader executes it. See migrations and rebalancing.scrub_bytes_per_second: how fast a node re-reads and verifies the chunks it holds. See reconciliation.copy_read_max_staleness: how far behind its primary an in-sync copy may be and still answer a read. Keep it above one second (the replication heartbeat). See reads from copies.
Replication listener
| Key | Type | Default | Validation |
|---|---|---|---|
replication_ |
host:port | (none: no listener) | if set, all three files below are required |
replication_ |
path | (none) | set only with replication_ |
replication_ |
path | (none) | set only with replication_; mode 0600 at start |
replication_ |
path | (none) | set only with replication_ |
The replication listener serves partition data to copies over mutual TLS with no
plaintext mode. Files come from mirexa-cli certs; see TLS.
dashboard
Read by mirexa-dashboard only. mirexa-server parses and validates the section (so its
zero value must be valid) but never acts on it. The dashboard's own loader validates only
dashboard and logging, so it needs no storage.data_dir. See
the web dashboard.
| Key | Type | Default | Validation |
|---|---|---|---|
addr |
host:port | 127. |
— |
metrics_ |
host:port | 127. |
host:port or empty (off); must differ from addr |
read_ |
duration | 10s |
≥ 0 |
write_ |
duration | 30s |
≥ 0 |
shutdown_ |
duration | 15s |
≥ 0 |
session_ |
path | (none) | required at start; ≥ 32 bytes |
session_ |
duration | 15m |
≥ 0 |
refresh_ |
duration | 12h |
≥ 0; 0 disables the refresh cookie; otherwise ≥ session_ |
session_ |
bool | true (when absent) |
— |
list_ |
duration | 5s |
≥ 0; 0 disables |
cluster_ |
duration | 2s |
≥ 0; 0 turns the cluster views off |
allowed_ |
list | (empty: none) | scheme:, no path; * refused |
users[]. |
string | — | non-empty, unique; at least one user required at start |
users[]. |
string | — | non-empty; from mirexa- |
users[]. |
list | — | non-empty; names checked at start |
upstream_ |
host:port | (none) | — |
upstream_ |
list | (empty) | — |
upstream_ |
path | (none) | readable at start if set |
upstream_ |
list | (empty: whatever is granted) | names checked at start |
upstream_ |
bool | false |
— |
upstream_ |
path | (none: system roots) | must parse as PEM |
No dashboard key has an environment override. The session_secret_file content may be
base64 or raw bytes. With no upstream address the dashboard starts, serves logins, and can
do nothing else. Each key's behaviour is described in the web dashboard.
A complete annotated example
configs/example.yaml in the repository is an annotated node configuration covering the
storage, network, observability, query-cache, compression, security, WAL, ingestion and
logging sections. The files under deploy/config/ are the node and dashboard
configurations the Compose stack uses; see deployment.
References
Source
config.Config,config.Default— every key, its type and its default.config.Validate— the validation rules.IndexCompactionScheduler,StreamIndex.CompactByCount— retention.config.Load,applyEnv,config.Diff,config.Watcher,config.LoadDashboard— layering, environment overrides, hot reload.buildConfig,watchConfig,hotReloadable— the server's resolution order and what reload applies.resolveClusterSettings— agreed cluster settings over the file.raft.Config.validate— the lease ≤ heartbeat rule.requireLoopback— the control-address rule.configureUpstream,configureSessions,configureUsers— dashboard start-time checks.
Tests
TestConfig_EveryKnobIsRead(/internal/config/knob_gate_test.go) — every key in this page is read outside the config package.TestDefaultWithEnv_AppliesEnv,TestDefaultWithEnv_AppliesSubscriptionEnv(/internal/config/loader_default_test.go).TestLoad_RefusesTheMovedStreamsSection(/internal/config/loader_test.go).TestIndexCompactionSchedulerRunOnce(/internal/storage/index_compaction_test.go),TestIndexCompactionScheduler_ZeroThresholdDisablesCompaction(/internal/storage/index_compaction_threshold_test.go),TestDispatcher_IndexCompactionKnobsReachTheLiveWriter(/internal/ingestion/compaction_config_test.go),TestDerivedRetention_ADerivedBarNeverOutlivesItsSource(/internal/ingestion/derived_retention_test.go).TestDashboardConfig_ZeroValueIsValid(/internal/config/dashboard_test.go).TestAuthConfig_EnabledWithNoKeysLoadsOnASingleNode,TestAuthConfig_EnabledWithNoKeysIsRefusedInACluster,TestAuthConfig_KeysAreValidatedEvenWhenDisabled(/internal/config/auth_validate_test.go).TestControlServer_ARoutableAddressRequiresAdminAuth(/internal/control/admin_auth_test.go).
Further reading
External
- hashicorp/raft configuration — https://pkg.go.dev/github.com/hashicorp/raft#Config
config.ErrStreamsSectionMovedin /internal/config/loader.go;TestLoad_RefusesTheMovedStreamsSection. ↩︎resolveClusterSettingsin /cmd/server/settings.go; theClusterConfigfield comments in /internal/config/config.go. ↩︎config.Diffin /internal/config/loader.go andhotReloadablein /cmd/server/main.go. ↩︎IndexCompactionScheduler.RunOnce(keepsthreshold/2) in /internal/storage/index_compaction.go andStreamIndex.CompactByCountin /internal/storage/stream_index.go;TestIndexCompactionSchedulerRunOnce,TestIndexCompactionScheduler_ZeroThresholdDisablesCompaction,TestDispatcher_IndexCompactionKnobsReachTheLiveWriter. ↩︎capDerivedRetentionin /internal/ingestion/derived_route.go;TestDerivedRetention_ADerivedBarNeverOutlivesItsSource. ↩︎NewServercallsrequireLoopbackwhenever admin auth is off (/internal/control/server.go);TestControlServer_ARoutableAddressRequiresAdminAuthWithoutACluster. ↩︎