HashiCorp Raft Sidecar Operations
These commands help operators inspect the external HashiCorp Raft sidecar used with NOOS_CONSENSUS_MODE=raft and RAFT_ENGINE=hashicorp-go.
Build And Version
npm run noos -- raft-go build
npm run noos -- raft-go versionbuild compiles the sidecar binary. version reports the configured binary path and whether it exists.
Status
npm run noos -- raft-go status --jsonReads /node/observability/consensus and returns:
- consensus mode
- configured Raft engine
- sidecar running/dead/restarting status
- pid and uptime when available
- restart count and last error
- Raft leader/term/log indexes when available
Health
npm run noos -- raft-go health --jsonReturns a compact ok verdict for automation.
Doctor
npm run noos -- raft-go doctor --jsonCollects sidecar-focused diagnostic checks and fix-plan entries.
Lifecycle Control
The current NOOSChain node API does not expose a direct forced sidecar start/stop/restart endpoint. The CLI therefore provides a dry-run manual recovery plan:
npm run noos -- raft-go restart --dry-run
npm run noos -- raft-go start --dry-run
npm run noos -- raft-go stop --dry-runActual lifecycle control should be performed through the NOOSChain process supervisor, operating-system service manager, or node restart procedure. The HashiCorp sidecar keeps Raft state in HASHICORP_GO_RAFT_DATA_DIR, so do not delete that directory unless you are intentionally resetting a development cluster.
Logs
npm run noos -- raft-go logsThe current node API does not stream sidecar logs. Use the process supervisor, NOOSChain node logs, or deployment log aggregation.