Skip to content

labvisio/is-sync

Repository files navigation

is-sync

This repository contains a service that syncs resources from different entities. All entities must publish their Timestamp and also be capable to set a delay at one sampling period. This service will only work if the clock of all computer nodes are synced. For that we recommend using chrony - a versatile implementation of the Network Time Protocol (NTP).

  • Install chrony on all computer nodes:
$ sudo apt install chrony
  • Choose one node to be the reference (i.e 10.60.0.3)

  • On the reference node add allow 0/0 in /etc/chrony/chrony.conf to allow any user to connect to the server:

+ allow 0/0
  • On other nodes edit /etc/chrony/chrony.conf and remove all lines that start with pool and add one with our reference node:
- pool 2.debian.pool.ntp.org offline iburst
+ pool 10.60.0.3 iburst
  • Restart chrony on every node:
$ sudo service chrony restart
  • Check the synchronism by running:
$ sudo chronyc sources

210 Number of sources = 1
MS Name/IP address         Stratum Poll Reach LastRx Last sample
===============================================================================
^* 10.60.0.3                     3   6    37    12  +8468ns[ +361us] +/-   14ms

About

Resource sync service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published