跳转到主内容

选择外部NTP时间源的最佳实践

Views:
115
Visibility:
Public
Votes:
2
Category:
storagegrid
Specialty:
sgrid
Last Updated:

适用场景

  • StorageGRID 7.5
  • StorageGRID 8.1
  • StorageGRID 8.5
  • StorageGRID 9.0

问题解答

背景:

StorageGRID由一组分布式服务组成、这些服务大多在单独的硬件上运行。这种分布式特性要求对底层硬件进行精确而严格的计时;如果服务器上的时钟偏差过大、StorageGRID将切断与外部节点的通信。

由于时间对StorageGRID功能非常重要、因此NTP服务依赖于所有其他网格服务;如果NTP未成功启动、则服务器管理器不会将任何其他服务联机。事实上、这在维护过程中会用到。可以通过创建一个0字节文件来防止StorageGRID软件自动启动: /etc/sv/ntp/DoNotStart

安装StorageGRID的最佳实践是以分层方式配置NTP -控制节点配置为与外部时间源进行时间同步。它们还配置为同步对等方(即、控制节点彼此以及外部源同步)。StorageGRID中的所有其他节点都使用控制节点作为其时间源。

如果有足够数量的控制节点偏离外部时间源、则整个网格可能开始偏离外部时间源。

从已配置的源中大幅移出的时间称为"飞轮"、可能会影响单个节点或整个网格。

为了确保为StorageGRID提供尽可能好的条件以保持时间精确度和准确性、NTP配置应遵循以下最佳实践:

  • 使用Stratum 1时间源。层0通常是无法通过网络访问的原子时钟或无线电时钟。1层源是直接连接到0层源的服务器、因此是可用的最准确NTP源。有关完整的 NTP分层问题描述、请参见"ntp-ntp-"页面。
  • 使用4到8个Stratum 1源。使用多个源会增加在上游网络中断时发生NTP锁定的可能性、但过多的源会增加复杂性、而不会带来任何益处。如果节点或网格丢失NTP锁定并开始飞轮、则大量源可能会使修复工作复杂化。
  • 选择时、请选择地理位置上的本地源。这将降低网络延迟以及给定源发生网络中断的可能性。
  • 在将新时间源纳入NTP配置之前、请始终测试与该时间源的连接。
  • 使用以下资源查找其他NTP源:
  • 有关详细信息,请参见 选择异地NTP服务器

在撰写本文时、StorageGRID部署中通常使用以下NTP Stratum 1源:

  • 太平洋时区

tick.ucla.edu (164.67.62.194)

utcnist.colorado.edu (128.138.140.44)

timekeeper.isi.edu (128.9.176.30)

usno.pa-x.dec.com (204.123.2.72)

  • 山区时区

utcnist.colorado.edu (128.138.140.44)

utcnist2.colorado.edu (128.138.141.172)

usno.pa-x.dec.com (204.123.2.72)

  • 中央时区

time.nist.gov (192.43.244.18)

nist1-lnk.binary.net (216.229.0.179)

nist.time.nosc.us (96.226.123.117)

  • 东部时区

navobs1.gatech.edu (130.207.244.240)

nist1-ny.ustiming.org (64.90.182.55)

nist1-nj.ustiming.org (96.47.67.105)

追加信息

其他信息文本

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.