Synchronize clocks
Use Network Time Protocol (NTP) to synchronize the clocks on all nodes and application servers.
Synchronizing clocks is required because DataStax Enterprise (DSE) overwrites a column only if there is another version whose timestamp is more recent, which can happen when machines are in different locations.
DSE timestamps are encoded as microseconds because UNIX Epoch time does not include timezone information. The timestamp for all writes in DSE is Universal Time Coordinated (UTC). DataStax recommends converting to local time only when generating output to be read by humans.
-
Install NTP for your operating system:
Operating system Command Debian-based system
`language-bash sudo apt-get install ntpdate `
RHEL-based system [1]
`language-bash sudo yum install ntpdate `
[1] On RHEL 7 and later, chrony is the default network time protocol daemon. The configuration file for chrony is located in
/etc/chrony.conf
on these systems. -
Start the NTP service on all nodes:
sudo service ntp start -x
-
Run the ntupdate command to synchronize clocks:
sudo ntpdate 1.ro.pool.ntp.org
-
Verify that your NTP configuration is working:
ntpstat