TMA-COCKROACHDB-2.2
Ensure Each CockroachDB Node Runs as a Dedicated Process on a Separate Host
Mô tả
For all self-hosted VM or bare-metal production deployments (on-premises or on cloud providers like AWS, GCP, Azure), each CockroachDB node must run as a single, dedicated cockroach start process on its own physical or virtual machine (VM). The benchmark rates this recommendation Manual; the automated check covers its objective pass criterion. Passes when exactly one cockroach start process runs on this host (FAIL when none runs). Also confirm the store directory is not shared with another node.
Cách kiểm tra
Phương pháp kiểm tra: Lệnh shell
out=$(ps -eo args= | grep '[c]ockroach start') || exit 1; printf '%s\n' "$out" | awk 'END {print (NR == 1) ? "compliant" : NR " processes"}'- Đầu ra mong đợi
compliant
Cách khắc phục
Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng
Stop the extra cockroach start processes (systemctl stop ...), provision a dedicated VM/host with its own storage for each additional node and redeploy it there.
Thuộc tính
- Hệ điều hành
- Bất kỳ
- Thẻ
- cockroachdbarchitecture
- Tham chiếu
- CIS CockroachDB v25.x Benchmark v1.0.0 - 2.2 Ensure Each CockroachDB Node Runs as a Dedicated Process on a Separate Host
Kiểm tra máy này
Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.
tmaegis scan --target cockroachdb