TMAegis
Thêm quy tắc cho cassandra

TMA-CASSANDRA-1.6

Ensure clocks are synchronized on all nodes

Trung bìnhCấp 1Tự độngcassandra

Mô tả

Enabling Network Time Protocol (NTP), or some equivalent way, to keep clocks on all nodes in sync is critical. The benchmark rates this recommendation Manual; the automated check covers its objective pass criterion. Uses timedatectl (systemd); passes when the kernel clock is reported as NTP-synchronised by chronyd, ntpd or systemd-timesyncd. Compare offsets across nodes as well.

Cách kiểm tra

Phương pháp kiểm tra: Lệnh shell

shell
out=$(timedatectl show -p NTPSynchronized --value 2>/dev/null) || exit 1; printf '%s\n' "$out"
Đầu ra mong đợi
yes

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

Install and enable chrony (or ntpd) on every node, pointing all nodes at the same time sources: systemctl enable --now chronyd.

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
cassandratime
Tham chiếu
CIS Apache Cassandra 5.0 Benchmark v1.1.0 - 1.6 Ensure clocks are synchronized on all nodes

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.

shell
tmaegis scan --target cassandra