Generally a slightly larger project will be deployed to several servers to do the cluster, the same application may be deployed to several servers, while the processing business must keep different servers on the same time, which requires time synchronization between servers. My approach is to:
1, select one of the external network open server, with the root user set crontab scheduled tasks, daily 23:30 automatically synchronize online time, which ntp.api.bz for the NTP server (Shanghai)
* * * * root/usr/sbin/ntpdate ntp.api.bz
2, the rest of the server, with the root user set crontab scheduled tasks, every 10 minutes with the above this host one time synchronization, synchronization frequency can be set by itself, assuming that the above host's intranet IP is 192.168.10.1
0-59/10 * * * */usr/sbin/ntpdate 192.168.10.1
Linux Server Time synchronization method