Expand description
§chronix-storage
Pluggable storage backend for the Chronix time-series database.
This crate defines the StorageBackend trait that abstracts segment file
storage, and provides a LocalFsBackend implementation for local
filesystem storage using atomic writes and positioned reads.
§Architecture
Segment files are stored in a namespace-scoped, shard-based directory hierarchy for defense-in-depth tenant isolation:
{data_dir}/ns_{namespace}/shard_{id}/segment_name.csxThe storage backend is designed to be Send + Sync + 'static for use
across async tasks.
Re-exports§
pub use backend::SegmentPath;pub use backend::StorageBackend;pub use encrypting::EncryptingBackend;pub use error::StorageError;pub use local::LocalFsBackend;
Modules§
- backend
- Storage backend trait and segment path types.
- encrypting
- Encrypting storage backend — transparent AES-256-GCM encryption layer.
- error
- Storage backend error types.
- local
- Local filesystem storage backend.