Expand description
On-disk directory layout under a cluster --data-dir.
--data-dir is the cluster root. Every repository gets its own store
subtree and a sibling ingest staging tree:
{data_dir}/{repository}/s hexastore S (SPOG, SOPG, named_graphs_catalog)
{data_dir}/{repository}/p hexastore P
{data_dir}/{repository}/o hexastore O
{data_dir}/{repository}/registry string registry
{data_dir}/{repository}/registry.sst-staging
offline-import registry SST runs
{data_dir}/ingest/{repository}/ HTTP / operator staging files
{data_dir}/notebooks/ jupyter Contents root (--with-notebooks)
{data_dir}/notebooks-runtime/ generated sidecar config + jupyter runtime files
{data_dir}/notebooks-venv/ auto-provisioned pinned Python environmentThe MVP repository id is always MAIN_REPOSITORY_ID ("main"). HTTP
ingest joins the {repository_id} path segment onto --ingest-dir (default
{data_dir}/ingest) so a later catalog can add more repositories without
moving the s/p/o/registry folders. The query library joins the
same segment onto --queries-dir (no default;
waratah_api/src/query_library.rs).
Repository ids reach both join helpers only after the HTTP layer checked
them against the repository catalog, so path traversal through
{repository_id} is impossible today; a future multi-repo catalog must
keep that gate (or add a charset check here) before these helpers see
client-supplied ids.
Constants§
- BLOB_
DIR_ NAME - Directory name of the content-addressed blob store under a repository (registry-process files, not a RocksDB CF).
- BLOB_
INDEX_ DIR_ NAME - Directory name of the blob store’s RocksDB index under
blobs/. - BLOB_
SEGMENTS_ DIR_ NAME - Directory name of the append-only blob segment files under
blobs/. - INGEST_
DIR_ NAME - Directory name under
--data-dirthat holds per-repository ingest trees. - MAIN_
REPOSITORY_ ID - MVP / default repository id used in on-disk paths and HTTP URLs.
- NOTEBOOKS_
DIR_ NAME - Directory name of the notebook Contents root under
--data-dir. - NOTEBOOKS_
RUNTIME_ DIR_ NAME - Directory name of the notebook sidecar runtime files under
--data-dir.
Functions§
- blob_
index_ dir - RocksDB index directory under a blob store root.
- blob_
segments_ dir - Append-only segment directory under a blob store root.
- blob_
store_ dir - Blob store root for
repository:{data_dir}/{repository}/blobs. - hexastore_
data_ dir - Hexastore axis RocksDB:
{data_dir}/{repository}/{axis}. - ingest_
root_ dir - Parent of per-repository ingest trees.
- ingest_
staging_ dir - Staging directory for one repository:
{ingest_root}/{repository}. - notebooks_
root_ dir - Contents-API root for the notebook service (
--with-notebooks). - notebooks_
runtime_ dir - Sidecar runtime dir: the generated config (which carries the token) and jupyter runtime files (kernel connection JSONs, cookie secret).
- notebooks_
venv_ dir - Auto-provisioned Python venv root for the notebook sidecar.
- queries_
repo_ dir - Per-repository query-library directory:
{queries_root}/{repository}. - registry_
data_ dir - String-registry RocksDB:
{data_dir}/{repository}/registry. - registry_
sst_ staging_ dir - Offline-import registry SST runs beside the registry directory.
- repository_
store_ dir {data_dir}/{repository}— RocksDB stores for one repository.- text_
index_ dir_ beside - The text plugin’s Tantivy directory beside a hexastore directory:
{data_dir}/{repository}/o→{data_dir}/{repository}/o-text-index.