{
  "id": "sync-clocks",
  "title": "Synchronize cluster node clocks",
  "url": "https://redis.io/docs/latest/operate/rs/7.8/clusters/configure/sync-clocks/",
  "summary": "Sync node clocks to avoid problems with internal custer communication.",
  "content": "To avoid problems with internal cluster communications that can impact your data integrity,\nmake sure that the clocks on all of the cluster nodes are synchronized using Chrony and/or NTP.\n\nWhen you install Redis Enterprise Software,\nthe install script checks if Chrony or NTP is running.\nIf they are not, the installation process asks for permission to configure a scheduled Cron job.\nThis should make sure that the node's clock is always synchronized.\nIf you did not confirm configuring this job during the installation process,\nyou must use the Network Time Protocol (NTP) regularly to make sure that all server clocks are synchronized.\n\nTo synchronize the server clock, run the command that is appropriate for your operating system.\n\n## Set up NTP synchronization\n\nTo set up NTP synchronization, see the following sections for instructions for specific operating systems.\n\n### Ubuntu 18.04 and Ubuntu 20.04\n\n1. Install Chrony, a replacement for NTP:\n   ```sh\n   sudo apt install chrony\n   ```\n   \n1. Edit the Chrony configuration file:\n   ```sh\n   sudo nano /etc/chrony/chrony.conf\n   ```\n\n1. Add `server pool.ntp.org` to the file, replace `pool.ntp.org` with your own NTP server, then save.\n\n1. Restart the Chrony service: \n   ```sh\n   sudo systemctl restart chrony\n   ```\n\n1. Check the Chrony service status:\n   ```sh\n   sudo systemctl status chrony\n   ```\n   \nFor more details, refer to the official [Ubuntu 20.04 documentation](https://ubuntu.com/server/docs/network-ntp).\n\n### RHEL 7\n\n1. Install Chrony, a replacement for NTP:\n   ```sh\n    sudo yum install chrony\n   ```\n\n1. Edit the Chrony configuration file:\n   ```sh\n   sudo nano /etc/chrony.conf\n   ```\n\n1. Add `server pool.ntp.org` to the file, replace `pool.ntp.org` with your own NTP server, then save.\n\n1. Enable and start the Chrony service:\n   ```sh \n   sudo systemctl enable chronyd \u0026\u0026 sudo systemctl start chronyd\n   ```\n\n1. Check the Chrony service status:\n   ```sh\n   sudo systemctl status chronyd\n   ```\n\nFor more details, refer to the official [RHEL 7 documentation](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/ch-configuring_ntp_using_the_chrony_suite#sect-Using_chrony).\n\n### RHEL 8 and RHEL 9\n\n1. Install Chrony, a replacement for NTP:\n   ```sh\n   sudo dnf install chrony\n   ```\n\n1. Edit the Chrony configuration file:\n   ```sh\n   sudo nano /etc/chrony.conf\n   ```\n\n1. Add `server pool.ntp.org` to the file, replace `pool.ntp.org` with your own NTP server, then save.\n\n1. Enable and start the Chrony service:\n   ```sh\n   sudo systemctl enable chronyd \u0026\u0026 sudo systemctl start chronyd\n   ```\n\n1. Check the Chrony service status:\n   ```sh\n   sudo systemctl status chronyd\n   ```\n\nFor more details, refer to the official [RHEL 8 and 9 documentation](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_basic_system_settings/configuring-time-synchronization_configuring-basic-system-settings).\n\n### Amazon Linux 2\n\n1. Install Chrony, a replacement for NTP:\n   ```sh\n   sudo yum install chrony\n   ```\n\n1. Edit the Chrony configuration file:\n   ```sh\n    sudo nano /etc/chrony.conf\n   ```\n\n1. Add `server pool.ntp.org` to the file, replace `pool.ntp.org` with your own NTP server, then save.\n\n1. Enable and start the Chrony service:\n   ```sh\n   sudo systemctl enable chronyd \u0026\u0026 sudo systemctl start chronyd\n   ```\n\n1. Check the Chrony service status:\n   ```sh\n   sudo systemctl status chronyd\n   ```\n\nFor more details, refer to the official [Amazon Linux 2 documentation](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/set-time.html).\n\nIf you are using Active-Active databases, you must use [Network Time Service (ntpd)]()\nto synchronize OS clocks consistently across clusters to handle conflict resolution according to the OS time.\n",
  "tags": ["docs","operate","rs"],
  "last_updated": "2026-04-01T08:10:08-05:00"
}

