NTP Server in CloudCIX

Introduction

Each region has a NTP Server on the PodNet host which is connected to four Stratum 0 NTP Servers.

Install and Configure Chrony

  1. List the available time zones and choose your preference:

    sudo timedatectl list-timezones
    
  2. Set the server time zone. We recommend using UTC as the time zone for a CloudCIX Region:

    sudo timedatectl set-timezone UTC
    
  3. Update the system packages:

    sudo apt update
    
  4. Install Chrony:

    sudo apt install chrony -y
    
  5. Start the Chrony service:

    sudo systemctl start chronyd
    
  6. Check the status of the service:

    sudo systemctl status chronyd
    
  7. Check the number of connected servers and peers:

    chronyc activity
    
  8. Show the statistics for each server:

    chronyc sourcestats -v
    
  9. Edit the Chrony configuration file:

    sudo nano /etc/chrony/chrony.conf
    
  10. Add the following code to the end of the file. Change 192.168.2.12 to your server’s IP address. You can add other servers by specifying their IP addresses:

    server 192.168.2.12
    
  11. Save and exit the file.

  12. Synchronize the servers:

    sudo timedatectl set-ntp true
    
  13. Restart the Chrony service:

    sudo systemctl restart chronyd
    
  14. Check the list of clients added:

    sudo chronyc clients
    
  15. Check the Chrony sources:

    chronyc sources
    
  16. Check the server chrony is tracking with its performance metrics:

    chronyc tracking