YugabyteDB
TMA-YUGABYTEDB-1.7
Ensure clocks are synchronized on all nodes
MoyenneNiveau 2Automatiséeyugabytedb
Description
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 clock is reported as NTP-synchronised by chronyd, ntpd or systemd-timesyncd.
Méthode de vérification
Méthode d'audit: Commande shell
shell
out=$(timedatectl show -p NTPSynchronized --value 2>/dev/null) || exit 1; printf '%s\n' "$out"- Sortie attendue
yes
Méthode de correction
Méthode de correction: Recommandation ou correctif d'infrastructure
Install and enable chrony (or ntpd) on every node in the cluster, pointing all nodes at the same time sources: systemctl enable --now chronyd.
Propriétés
- Systèmes d'exploitation
- Tous
- Étiquettes
- yugabytedbtime
- Référence
- CIS YugabyteDB Benchmark v2.0.0 - 1.7 Ensure clocks are synchronized on all nodes
Vérifier cet hôte
Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.
shell
tmaegis scan --target yugabytedb --level 2