минимальные спецификации для сервера NTP

Какие минимальные спецификации необходимы для одного сервера NTP? Я хочу настроить NTP-сервер, как показано ниже:

1>$ sudo apt install ntp
2>$ cat /etc/ntp.conf
3>$ sudo nano /etc/ntp.conf          <add the lines in your config file by using nano>
<make change on ntp file>
##########################
# 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                <iburst option for performance>

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 <http://support.ntp.org/bin/view/Support/AccessRestrictions>
# 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     <check status NTP service>

Мне нужно знать, какие минимальные спецификации необходимы для NTP-сервера для 100 или 1000 хостов? Есть разница?

1
задан 28 December 2020 в 13:44

1 ответ

Короче говоря: если у вас есть 1 миллион клиентов, вы можете использовать самые старые ПК в своем парке настольных компьютеров в качестве выделенных серверов NTP, и они, вероятно, будут в порядке.

NTP создает минимальную нагрузку на систему, и вы можете запускать миллионы клиентов на машине с довольно низкими характеристиками. См. эту публикацию для примера статистики ВМ, которую я использовал, работающей в публичном пуле. Обычно он обслуживал около 1,5 млн уникальных клиентов в день, а во время Великого всплеска Snapchat в 2016 году он легко справился вдвое больше (см. график ниже).

Beginning of Snapchat NTP surge

Еще несколько замечаний к вашему сообщению:

  1. Вы не должны использовать местные часы в качестве запасного варианта. Это устарело уже много лет; предпочтительным является сиротский режим.
  2. Никогда не планируйте предоставление только одного NTP-сервера. Четыре — полезный рабочий минимум. См. мой пост в блоге для некоторых конкретных рекомендаций по настройке.
0
ответ дан 29 December 2020 в 09:33

Другие вопросы по тегам:

Похожие вопросы: