# DataOps Platform Docs (Authoritative) - Runbooks: ./runbooks/ - Playbooks: ./playbooks/ - Contracts: ../contracts/ - Checks: ../checks/ - Monitors: ../monitors/ - Operator Map: ./OPERATOR_MAP.md ## Host Namespacing & Persistence Servers are disposable; `/data` is persistent. All service data and logs are namespaced under `b/` and exposed via stable symlinks: - Stable paths (used by configs): - Data: `/data/adaptai/platform/dbops/data` - Logs: `/data/adaptai/platform/dbops/logs` - Host-namespaced backing paths: - Data: `/data/adaptai/platform/dbops/b//data` - Logs: `/data/adaptai/platform/dbops/b//logs` The symlinks `data -> b//data` and `logs -> b//logs` are created by a bootstrap step so each server writes to its own directory while clients and tooling keep using the stable paths. See runbook: `./runbooks/host-namespacing.md`. ## Logging Retention Supervisor-managed logs rotate per-program via settings in `/data/adaptai/platform/dbops/supervisor/conf.d/*.conf` (e.g., `stdout_logfile_maxbytes`, `stdout_logfile_backups`, same for stderr). Default service logs are 20MB x 5 backups; infra logs 5MB x 3. Adjust per program as needed to prevent log growth in `b//logs`. For additional rotation of application logs, use `logrotate` pointed at the stable `.../logs` symlink. ## Supervisor + HA Alignment Supervisor configs are checked into this repo and are host-agnostic. Attaching a fresh server is: - Run `tools/host_namespace_bootstrap.sh` - `supervisorctl -s unix:///data/adaptai/platform/dbops/run/supervisor.sock reread && update` - Start programs as needed (or rely on `autostart=true`). This keeps servers disposable while `/data` remains authoritative.