Configuration

Configuration that outlives one command lives in a small set of TOML files inside one configuration directory. This is deliberately separate from --data-dir, which holds state, not settings.

Where the configuration directory is

Lookups walk these locations in order and the first file found wins:

Precedence Location

1. --config-dir PATH

Exactly that directory, nothing else is searched.

2. User config dir

Linux: ~/.config/waratah (or $XDG_CONFIG_HOME/waratah) · macOS: ~/Library/Application Support/waratah · Windows: %APPDATA%\waratah

3. System config dir

Linux: /etc/waratah · macOS: /Library/Application Support/waratah · Windows: %PROGRAMDATA%\waratah

The files that live there today: cluster.toml (where the cluster’s processes are), notebooks.toml (the Jupyter service), and text.toml (the full-text search plugin).

cluster.toml — the address table

waratah start reads this to find the five processes it orchestrates. The whole file for a single-machine cluster:

compute = "127.0.0.1:7005"

[hexastore]
s = "127.0.0.1:7001"
p = "127.0.0.1:7002"
o = "127.0.0.1:7003"

[registry]
0 = "127.0.0.1:7004"
Key Meaning

compute

Address of the compute node’s internal gRPC listener.

[hexastore] s / p / o

Addresses of the three storage partitions.

[registry] <number>

Addresses of string-registry shards, keyed by numeric node id.

When no cluster.toml is found, the built-in local defaults are used — exactly the addresses above: partitions on 127.0.0.1:7001–7003, registry on 7004, compute on 7005. A waratah start with no configuration therefore matches a default cluster.toml byte for byte.

waratah start --config PATH reads the table from an explicit file instead, ignoring the search path. The file also accepts a self_id string and a list (each entry an id and a grpc address) for multi-compute setups — the single-compute form above is the one-machine shape.

notebooks.toml — the Jupyter service

One flat table; unknown keys are ignored so newer engines keep reading older files. Every value can instead be given as a waratah start flag, and flags win: the merge order is command-line flag over notebooks.toml value over built-in default.

Key Flag Meaning

enabled

--with-notebooks

Turn the notebook service on (true / false).

dir

--notebooks-dir

Root directory holding the notebooks. Default {data_dir}/notebooks (or ./notebooks with the memory backend).

python

--notebooks-python

Python interpreter for the sidecar. Default: a pinned virtual environment created automatically on first start.

bind

--notebooks-bind

Loopback bind for the sidecar; 127.0.0.1:0 lets the engine pick the port (the default).

token

--notebooks-token

Jupyter authentication token; minted automatically at startup when unset.

cull_idle_secs

--notebooks-cull-idle-secs

Shut down kernels idle longer than this many seconds. Default 3600.

What the service does with these values is covered in Jupyter Notebooks.

text.toml — the full-text search plugin

The text plugin is off by default (it indexes string literals under a predicate allowlist, up to a size limit — writes of longer literals are rejected — so opting in is deliberate). enabled = true in text.toml — or the --with-text flag — turns it on; the remaining keys shape the index:

Key Flag equivalent Meaning

enabled

--with-text

Turn the text plugin on (true / false).

analyzer

—

Analyzer for full-text matching: simple (tokenize + lowercase), en_stem (tokenize + lowercase + English stemming), or whitespace. Default simple.

seed_chars

—

Characters kept per literal for prefix/suffix matching (1–64). Default 16.

predicates

—

Optional allowlist of absolute predicate IRIs to index (an array). Absent applies the built-in list of common text predicates — rdfs:label, rdfs:comment, skos:prefLabel/altLabel/hiddenLabel, skos:definition/ note/scopeNote, dcterms:title/description/abstract/subject, https://schema.org/name/alternateName/description/text/headline/ keywords, dcat:keyword, and foaf:name/givenName/familyName/nick. An explicit empty array (predicates = []) indexes every string-literal predicate. A populated list overrides the default (it does not extend it).

The index keys one document per (predicate, literal) pair, so the same literal under two predicates is two documents. text:query searches only the indexed predicates; naming an unindexed predicate in the subject form is a query error. The index-accelerated string functions (STRSTARTS, STRENDS, anchored REGEX) fall back to their exact evaluation whenever the variable can be bound under a predicate the index does not hold; CONTAINS is not accelerated and always runs as an ordinary filter.

Changing analyzer, seed_chars, or predicates after an index exists requires an offline rebuild, and startup refuses to serve with an index built by other settings — see Full-Text Search.