From: "Boyd Stephen Smith Jr." <bss03@volumehost.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] NTP problem
Date: Wed, 22 Feb 2006 13:05:48 -0600 [thread overview]
Message-ID: <200602221305.48615.bss03@volumehost.com> (raw)
In-Reply-To: <43FCAFA9.8080108@gt.rr.com>
On Wednesday 22 February 2006 12:38, "Anthony E. Caudel"
<acaudel@gt.rr.com> wrote about 'Re: [gentoo-user] NTP problem':
> Brandon Enright wrote:
> Well, overnight it only reset twice; - some improvement!
>
> Here is my complete ntp.conf:
> # Name of the servers ntpd should sync with
> # Please respect the access policy as stated by the responsible person.
> #server ntp.example.tld iburst
>
> server pool.ntp.org
This chooses a single random server from the pool to sync with, which is
probably not /exactly/ what you want.
You have a few alternatives:
1) Change "server" to "servers". Then, ntpd will use all the IPs
associated with the domain name. As part of the process of syncing it
will invalidate peers that have long or volatile round-trip times. It
will, however, try to connect to 100s (IIRC) of IPs initially.
2) Use:
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
In this case, the daemon will only use the first address from each domain
name. <n>.pool.ntp.org (for n = 0-9, IIRC) resolves to the same addresses
as pool.ntp.org, but the primary address you get back is different each
time. (I believe the <n>. prefix is an attempt to prevent local caching,
which would be a problem if you just repeated your server line 3 times.)
You'll get better times syncing off multiple servers because the daemon can
use some statistics to remove some of the network latency issues.
However, you could still get a "bad draw" and get 3 servers far away from
you.
3) Follow this comment from *your* .conf file:
> # A good way to get servers for your machine is:
> # netselect -s 3 pool.ntp.org
netselect is available from portage, and I think it's generally installed
during your gentoo install as a dependency of mirrorselect. In any case,
you can use it to find 3 (or however many you want to use) servers close
to you.
Unfortunately, with this method, if better peers are added to the pool, the
network topology changes, or anything else to invalidate the quality of
the peers you pick, ntpd won't be able to automagically pick better ones.
Also, for any of these options, you should note the geographic sub-pools
that are available. I use us.pool.ntp.org. For (1) this will reduce the
number of IPs initially connected to, for (2) it will increase the chance
that you don't get a bad draw (because, generally, geographically closer
is closer on the network), for (3) ... Well, actually for 3 you might as
well pick the best ones from the entire pool.
--
Boyd Stephen Smith Jr.
bss03@volumehost.com
ICQ: 514984 YM/AIM: DaTwinkDaddy
--
gentoo-user@gentoo.org mailing list
next prev parent reply other threads:[~2006-02-22 19:10 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-22 7:32 [gentoo-user] NTP problem Anthony E. Caudel
2006-02-22 8:10 ` Brandon Enright
2006-02-22 8:41 ` Anthony E. Caudel
2006-02-22 16:29 ` Brandon Enright
2006-02-22 18:38 ` Anthony E. Caudel
2006-02-22 19:05 ` Boyd Stephen Smith Jr. [this message]
2006-02-22 19:13 ` Brandon Enright
2006-02-22 20:03 ` Boyd Stephen Smith Jr.
-- strict thread matches above, loose matches on Subject: below --
2005-08-23 12:36 [gentoo-user] ntp problem Bruno Lustosa
2005-08-23 13:14 ` krzaq
2005-08-23 13:21 ` Bruno Lustosa
2005-08-23 13:25 ` Uwe Thiem
2005-08-23 14:30 ` Bruno Lustosa
2005-08-23 15:46 ` Michael Kintzios
2005-08-23 17:50 ` Bruno Lustosa
2005-08-23 13:26 ` kashani
2005-08-23 13:29 ` Bruno Lustosa
2005-08-23 14:19 ` krzaq
2005-08-23 14:26 ` Bruno Lustosa
2005-08-23 14:28 ` Bruno Lustosa
2005-08-24 1:25 ` W.Kenworthy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200602221305.48615.bss03@volumehost.com \
--to=bss03@volumehost.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox