Home / Companies / Yugabyte / Blog / Post Details
Content Deep Dive

Achieving Accurate Clock Management in YugabyteDB

Blog post from Yugabyte

Post Details
Company
Date Published
Author
Daniel Shubin
Word Count
1,493
Language
English
Hacker News Points
-
Summary

YugabyteDB, a distributed database system, emphasizes precise clock management to ensure optimal performance and correctness within its universe by employing a hybrid logical clock that requires synchronization within 500 milliseconds between nodes. YugabyteDB Anywhere, a self-managed database-as-a-service, achieves this accuracy by implementing Network Time Protocol (NTP) services, alongside options like AWS Precision Hardware Clock (PHC) and Precision Time Protocol (PTP), which can reduce clock skew to under 40 microseconds. During the initial provisioning of virtual machines, YugabyteDB Anywhere installs and configures NTP services like Chrony, and integrates with cloud providers such as AWS, GCP, or Azure for lifecycle management, while also allowing custom configurations for on-premises setups. Additionally, the system actively monitors node synchronization and issues alerts if any discrepancies arise, using metrics like "yb_node_clock_drift_check_ms" and "hybrid_clock_skew" to track and address potential sync issues before they impact performance, thus maintaining the overall health and reliability of the distributed system.