首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >NTP服务器的最小规格

NTP服务器的最小规格
EN

Ask Ubuntu用户
提问于 2020-12-28 10:32:58
回答 1查看 655关注 0票数 1

一个NTP服务器所需的最低规格是多少?我希望像这样配置NTP服务器,如下所示:

代码语言:javascript
复制
1>$ sudo apt install ntp
2>$ cat /etc/ntp.conf
3>$ sudo nano /etc/ntp.conf          
代码语言:javascript
复制
##########################
# Leap seconds definition provided by tzdata
leapfile /usr/share/zoneinfo/leap-seconds.list

# Enable this if you want statistics to be logged.
#statsdir /var/log/ntpstats/

statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable


# Specify one or more NTP servers.

#server 0.asia.pool.ntp.org iburst
#server 1.asia.pool.ntp.org iburst
#server 2.asia.pool.ntp.org iburst                

server 127.127.1.0 prefer
fudge 127.127.1.0 stratum 10                

# Use Ubuntu's ntp server as a fallback.
#pool ntp.ubuntu.com

# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for
# details.  The web page 
# might also be helpful.
#
# Note that "restrict" applies to both servers and clients, so a configuration

# that might be intended to block requests from certain clients could also end
# up blocking replies from your own upstream servers.

# By default, exchange time with everybody, but don't allow configuration.
restrict -4 default kod notrap nomodify nopeer noquery limited
restrict -6 default kod notrap nomodify nopeer noquery limited

# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1
restrict ::1

# Needed for adding pool entries
#restrict source notrap nomodify noquery

# Clients from this (example!) subnet have unlimited access, but only if
# cryptographically authenticated.
restrict x.x.x.x mask 255.255.255.0 nomodify notrap
#restrict 0.0.0.0 mask 0.0.0.0 nomodify notrap

# If you want to provide time to your local subnet, change the next line.
# (Again, the address is an example only.)
#broadcast 192.168.123.255

# If you want to listen to time broadcasts on your local subnet, de-comment the
# next lines.  Please do this only if you trust everybody on the network!
#disable auth
#broadcastclient                
#########################
代码语言:javascript
复制
4>$ sudo systemctl restart ntp   < Restart the NTP service for the changes to take effect>
5>$ sudo systemctl status ntp     

我需要知道NTP服务器对100台主机或1000台主机所需的最低规格是什么?有什么不同吗?

EN

回答 1

Ask Ubuntu用户

发布于 2020-12-29 09:33:10

简而言之:如果您有100万个客户端,您可以将您的桌面机群中最老的PC机回收为专用的NTP服务器,它们可能会很好。

NTP将最小的负载放在一个系统上,您可以在一台相当低规格的机器上运行数百万个客户端。有关我在公共池中使用的VM的一些统计数据,请参见这个职位。它通常每天为1.5M唯一的客户端服务,在2016年年Snapchat大潮期间,它可以轻松地处理两倍(见下图)。

在你的帖子上还有几个笔记:

  1. 您不应该使用本地时钟作为后盾。这已被废弃多年;孤儿模式是首选。
  2. 您不应该计划只提供一个NTP服务器。四是有用的最低工作。有关配置的一些具体建议,请参见我的博客文章
票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1303352

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档