一个NTP服务器所需的最低规格是多少?我希望像这样配置NTP服务器,如下所示:
1>$ sudo apt install ntp
2>$ cat /etc/ntp.conf
3>$ sudo nano /etc/ntp.conf ##########################
# 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
#########################4>$ sudo systemctl restart ntp < Restart the NTP service for the changes to take effect>
5>$ sudo systemctl status ntp 我需要知道NTP服务器对100台主机或1000台主机所需的最低规格是什么?有什么不同吗?
发布于 2020-12-29 09:33:10
简而言之:如果您有100万个客户端,您可以将您的桌面机群中最老的PC机回收为专用的NTP服务器,它们可能会很好。
NTP将最小的负载放在一个系统上,您可以在一台相当低规格的机器上运行数百万个客户端。有关我在公共池中使用的VM的一些统计数据,请参见这个职位。它通常每天为1.5M唯一的客户端服务,在2016年年Snapchat大潮期间,它可以轻松地处理两倍(见下图)。

在你的帖子上还有几个笔记:
https://askubuntu.com/questions/1303352
复制相似问题