まぁ前提として、自分が使っているプロバイダ提供のNTPサーバーを使えってのは忘れずに。
NTP - wiki@nothing_ を参照。
なんちゅーかCGIでアクセスすると「あなたに最適なNTPサーバーは多分これです」と表示するのが有っても良いかもね。んでntp.confのテンプレートが提示されるの。
例えばntp.jst.mfeed.ad.jpだったら
server 210.173.160.27 maxpoll 15 prefer server 210.173.160.57 maxpoll 17 server 210.173.160.87 maxpoll 17 pidfile /var/run/ntpd.pid driftfile /var/db/ntp.drift logfile /var/log/ntp.log logconfig -syncstatus # restrict default ignore restrict 127.0.0.1 restrict 192.168.0.0 mask 255.255.0.0 noquery nomodify nopeer notrust notrap restrict 210.173.160.27 nomodify notrap noquery restrict 210.173.160.57 nomodify notrap noquery restrict 210.173.160.87 nomodify notrap noqueryみたいな。
maxpollの値はntp.conf(5)で
The maximum poll interval defaults to 10 (1,024 s), but can be increased by the maxpoll option to an upper limit of 17 (36.4 h). The minimum poll interval defaults to 6 (64 s),と書いてある。つまりデフォルトで10(2の10乗で1024秒)、最長で17(2の17乗で131072秒 = 2184分 = 約36.4時間)、最短で6(2の6乗で64秒)の間隔で問い合わせしますよ。という設定になるので、適度に設定してサーバー負荷を考慮する感じで。



コメントを読む(1) [ コメントする ]