摘要
为了解决云计算服务器集群在外部故障或集群架构动态调整下的时间失步问题,提出了一种基于多模式融合的时间同步方法。先根据预先设置的优先级,集群内各服务器之间采用对等主动/被动模式自动建立时间同步关系,再由最高优先级的集群服务器通过客户端/服务器模式和外部时间源保持时间同步。该方法可在外部时间源设备故障或通信故障情况下保持服务器集群内部时间同步,并能适应集群架构动态调整,在增加、裁撤或替换服务器情况下与外部时间源保持时间同步。最后,通过试验验证了该方法的有效性。
To solve the problem of the time desynchronization of cloud computing server clusters in the environment of external failure or dynamic architecture adjustment,a time synchronization method based on the multi-mode fusion is proposed.Firstly,according to the preset priorities,the internal time synchronization among servers in the cluster is automatically built in the symmetric active/passive mode.Then,the external time synchronization between the cluster server with the highest priority and the external time resource is kept in the client/server mode.The method can keep the cluster internal time synchronization during the failure of external time source equipment or the communication,adapting to the dynamic cluster architecture adjustment.And it can keep the time synchronization with the external time source in the server-adding,server-deleting or server-altering situation.Finally,the experiment proves the validity of the method.
引文
[1]MILLS D L,DELAWARE U,MARTIN J,et al.Network time protocol version 4:protocol and algorithms specification:RFC 5905[S/OL].(2015-10-14)[2018-03-15].https://datatracker.ietf.org/doc/rfr5905/?include_text=1.
[2]朱莉,褚孔统.一种网络时间同步算法的研究和设计[J].现代电子工程,2007(6):29-32.ZHU Li,CHU Kongtong.Research and design of a network time synchronization algorithm[J].Modern Electronic Engineering,2007(6):29-32.(in Chinese)
[3]张子昭.大规模PC集群时钟同步校准方法[J].中国石油和化工标准与质量,2012,32(4):289.ZHANG Zizhao.Large-scale PC cluster clock synchronization calibration method[J].China Petroleum and Chemical Standard and Quality,2012,32(4):289.(in Chinese)
[4]杨菲.NTP协议在Y.1731中的应用研究[J].信息技术,2013(3):155-157.YANG Fei.Research on the application of NTP protocol in Y.1731[J].Information Technology,2013(3):155-157.(in Chinese)
[5]沈弘,刘顺.基于K-means聚类算法的数据分析模型应用研究[J].软件导刊,2017,16(3):103-107.SHEN Hong,LIU Shun.Research on application of data analysis model based on K-means clustering algorithm[J].Software Guide,2017,16(3):103-107.(in Chinese)
[6]胥婕,徐亮,董莲,等.基于NTP协议的网络时间同步系统的设计与实现[J].上海计量测试,2017,44(4):10-13.XU Jie,XU Liang,DONG Lian,et al.Design and implementation of network time synchronization system based on NTP[J].Shanghai Measurement and Testing,2017,44(4):10-13.(in Chinese)