Synchronize cluster node clocks
Sync node clocks to avoid problems with internal custer communication.
To avoid problems with internal cluster communications that can impact your data integrity, make sure that the clocks on all of the cluster nodes are synchronized using Chrony and/or NTP.
When you install Redis Enterprise Software, the install script checks if Chrony or NTP is running. If they are not, the installation process asks for permission to configure a scheduled Cron job. This should make sure that the node's clock is always synchronized. If you did not confirm configuring this job during the installation process, you must use the Network Time Protocol (NTP) regularly to make sure that all server clocks are synchronized.
To synchronize the server clock, run the command that is appropriate for your operating system.
Set up NTP synchronization
To set up NTP synchronization, see the following sections for instructions for specific operating systems.
Ubuntu 18.04 and Ubuntu 20.04
-
Install Chrony, a replacement for NTP:
sudo apt install chrony
-
Edit the Chrony configuration file:
sudo nano /etc/chrony/chrony.conf
-
Add
server pool.ntp.org
to the file, replacepool.ntp.org
with your own NTP server, then save. -
Restart the Chrony service:
sudo systemctl restart chrony
-
Check the Chrony service status:
sudo systemctl status chrony
For more details, refer to the official Ubuntu 20.04 documentation.
RHEL 7
-
Install Chrony, a replacement for NTP:
sudo yum install chrony
-
Edit the Chrony configuration file:
sudo nano /etc/chrony.conf
-
Add
server pool.ntp.org
to the file, replacepool.ntp.org
with your own NTP server, then save. -
Enable and start the Chrony service:
sudo systemctl enable chronyd && sudo systemctl start chronyd
-
Check the Chrony service status:
sudo systemctl status chronyd
For more details, refer to the official RHEL 7 documentation.
RHEL 8 and RHEL 9
-
Install Chrony, a replacement for NTP:
sudo dnf install chrony
-
Edit the Chrony configuration file:
sudo nano /etc/chrony.conf
-
Add
server pool.ntp.org
to the file, replacepool.ntp.org
with your own NTP server, then save. -
Enable and start the Chrony service:
sudo systemctl enable chronyd && sudo systemctl start chronyd
-
Check the Chrony service status:
sudo systemctl status chronyd
For more details, refer to the official RHEL 8 and 9 documentation.
Amazon Linux 2
-
Install Chrony, a replacement for NTP:
sudo yum install chrony
-
Edit the Chrony configuration file:
sudo nano /etc/chrony.conf
-
Add
server pool.ntp.org
to the file, replacepool.ntp.org
with your own NTP server, then save. -
Enable and start the Chrony service:
sudo systemctl enable chronyd && sudo systemctl start chronyd
-
Check the Chrony service status:
sudo systemctl status chronyd
For more details, refer to the official Amazon Linux 2 documentation.
If you are using Active-Active databases, you must use Network Time Service (ntpd) to synchronize OS clocks consistently across clusters to handle conflict resolution according to the OS time.