* NTP on a Digital Cluster
@ 1999-10-21 4:00 esafran
1999-10-21 4:00 ` David Schwartz
` (2 more replies)
0 siblings, 3 replies; 13+ messages in thread
From: esafran @ 1999-10-21 4:00 UTC (permalink / raw)
I have a Digital Unix cluster of two hosts and I want to synchronize
their clocks. I use only the local clocks of the cluster and my
question refers about the association about them.
* Must they be symmetric active peers, both configured as local
reference clock?
* Must they be the same as previous but one of them chosed as "prefer"
server?
* Must one of them be configured as time server and the other as client?
I have tried the three posibilities and all of them appears to work
fine, but I am not sure wich is the best, or if there is another one
better.
Thanks
Sent via Deja.com http://www.deja.com/
Before you buy.
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: NTP on a Digital Cluster
1999-10-21 4:00 NTP on a Digital Cluster esafran
@ 1999-10-21 4:00 ` David Schwartz
1999-10-22 4:00 ` Per Hedeland
1999-10-22 4:00 ` Jerome Limozin
1999-10-26 4:00 ` esafran
2 siblings, 1 reply; 13+ messages in thread
From: David Schwartz @ 1999-10-21 4:00 UTC (permalink / raw)
You really shouldn't set up a purely symmetric arrangement. Imagine if
the two machines have clocks that are 40 seconds apart. What do you want
NTP to do? Neither one will see the other as any 'better' than it, so
there will be no way to disambiguate.
My suggestion is to think of one as the 'master' and set it to consider
its local clock at a lower stratum. Say the master fudges its local
clock to stratum 10 and slaves fudge to 11. I would use symmetric
active, both configured with local reference clocks.
I do not recommend using prefer except in certain specific instances
(like with the ATOM reference driver). I think using the stratum setting
is easier.
DS
esafran@aluar.com.ar wrote:
>
> I have a Digital Unix cluster of two hosts and I want to synchronize
> their clocks. I use only the local clocks of the cluster and my
> question refers about the association about them.
>
> * Must they be symmetric active peers, both configured as local
> reference clock?
> * Must they be the same as previous but one of them chosed as "prefer"
> server?
> * Must one of them be configured as time server and the other as client?
>
> I have tried the three posibilities and all of them appears to work
> fine, but I am not sure wich is the best, or if there is another one
> better.
>
> Thanks
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: NTP on a Digital Cluster
1999-10-21 4:00 ` David Schwartz
@ 1999-10-22 4:00 ` Per Hedeland
1999-10-22 4:00 ` Nikola Milutinovic
0 siblings, 1 reply; 13+ messages in thread
From: Per Hedeland @ 1999-10-22 4:00 UTC (permalink / raw)
In article <380F7D25.E24075FC@webmaster.com> David Schwartz
<davids@webmaster.com> writes:
> My suggestion is to think of one as the 'master' and set it to consider
>its local clock at a lower stratum. Say the master fudges its local
>clock to stratum 10 and slaves fudge to 11. I would use symmetric
>active, both configured with local reference clocks.
I mostly agree, though of course you should have a stratum difference of
at least 2, or the slave will in all likelihood prefer its own local
clock - and I don't really see the point of symmetric, as you are
actually trying to enforce a fixed master-slave relationship.
--Per Hedeland
per@erix.ericsson.se
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: NTP on a Digital Cluster
1999-10-22 4:00 ` Per Hedeland
@ 1999-10-22 4:00 ` Nikola Milutinovic
1999-10-22 4:00 ` Per Hedeland
0 siblings, 1 reply; 13+ messages in thread
From: Nikola Milutinovic @ 1999-10-22 4:00 UTC (permalink / raw)
Per Hedeland wrote:
>
> In article <380F7D25.E24075FC@webmaster.com> David Schwartz
> <davids@webmaster.com> writes:
> > My suggestion is to think of one as the 'master' and set it to consider
> >its local clock at a lower stratum. Say the master fudges its local
> >clock to stratum 10 and slaves fudge to 11. I would use symmetric
> >active, both configured with local reference clocks.
>
> I mostly agree, though of course you should have a stratum difference of
> at least 2, or the slave will in all likelihood prefer its own local
> clock - and I don't really see the point of symmetric, as you are
> actually trying to enforce a fixed master-slave relationship.
The idea behind symmetric is to make possible for one machine to synchronise to
the other, if it looses it's source of time. Can a machine loose it's local
clock? :-)
Nix.
--
I t#ld yo#, "Never#touch #he flo##y disk su##face!"
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: NTP on a Digital Cluster
1999-10-22 4:00 ` Nikola Milutinovic
@ 1999-10-22 4:00 ` Per Hedeland
1999-10-23 4:00 ` Jerome Limozin
0 siblings, 1 reply; 13+ messages in thread
From: Per Hedeland @ 1999-10-22 4:00 UTC (permalink / raw)
In article <380FFF3D.AAF0EF1C@ev.co.yu> Nikola Milutinovic
<Nikola.Milutinovic@ev.co.yu> writes:
>The idea behind symmetric is to make possible for one machine to synchronise to
>the other, if it looses it's source of time. Can a machine loose it's local
>clock? :-)
I would hope not.:-) (At least ntpd will have a real hard time keeping
it in sync then.:-) Someone else suggested that the two ntpds might
figure out which clock is "best" in this scenario, but as they don't
have any basis for this evaluation other than the fudged stratum value
(nor any other way to agree on it), each of them will just consider its
own clock as best and ignore the other's if the stratum difference isn't
"big enough", defeating the intended purpose.
--Per Hedeland
per@erix.ericsson.se
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: NTP on a Digital Cluster
1999-10-22 4:00 ` Per Hedeland
@ 1999-10-23 4:00 ` Jerome Limozin
0 siblings, 0 replies; 13+ messages in thread
From: Jerome Limozin @ 1999-10-23 4:00 UTC (permalink / raw)
In article <7up9b2$g6p$1@news.du.uab.ericsson.se>,
per@erix.ericsson.se (Per Hedeland) wrote:
> I would hope not.:-) (At least ntpd will have a real hard time keeping
> it in sync then.:-) Someone else suggested that the two ntpds might
> figure out which clock is "best" in this scenario, but as they don't
> have any basis for this evaluation other than the fudged stratum value
> (nor any other way to agree on it), each of them will just consider
its
> own clock as best and ignore the other's if the stratum difference
isn't
> "big enough", defeating the intended purpose.
I guess it was me.... Apologises for wrong informations. Sure I was
wrong. I imagined that ntp daemons could compare the accuracy and drift
of local clocks, but obviously a ntp daemon cannot know quality of local
clock without another external reference.
I'm still kind of 'ntp newbie'...
Jerome
Sent via Deja.com http://www.deja.com/
Before you buy.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: NTP on a Digital Cluster
1999-10-21 4:00 NTP on a Digital Cluster esafran
1999-10-21 4:00 ` David Schwartz
@ 1999-10-22 4:00 ` Jerome Limozin
1999-10-27 4:00 ` Homonnai Mihaly
1999-10-26 4:00 ` esafran
2 siblings, 1 reply; 13+ messages in thread
From: Jerome Limozin @ 1999-10-22 4:00 UTC (permalink / raw)
In article <7unp0t$gio$1@nnrp1.deja.com>,
esafran@aluar.com.ar wrote:
> I have a Digital Unix cluster of two hosts and I want to synchronize
> their clocks. I use only the local clocks of the cluster and my
> question refers about the association about them.
>
> * Must they be symmetric active peers, both configured as local
> reference clock?
> * Must they be the same as previous but one of them chosed as "prefer"
> server?
> * Must one of them be configured as time server and the other as
client?
>
> I have tried the three posibilities and all of them appears to work
> fine, but I am not sure wich is the best, or if there is another one
> better.
AFAIK, These 3 possibilities are almost same. your 2 servers will be
synchronised together, but will drift from UTC sooner or later.
I'd choose to declare them as peers, and each with local reference clock
also. I guess that both ntp daemons will elect the best local clock
among 2 servers, and synchronise to it.
If you choose one of other 2 solutions, you actually decide arbitraly
which local clock to use, and you have 50% chance to choose the worse
one.
I think you really should consider to have an external synchronisation
source...
Jerome
Sent via Deja.com http://www.deja.com/
Before you buy.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: NTP on a Digital Cluster
1999-10-21 4:00 NTP on a Digital Cluster esafran
1999-10-21 4:00 ` David Schwartz
1999-10-22 4:00 ` Jerome Limozin
@ 1999-10-26 4:00 ` esafran
1999-10-30 4:00 ` Per Hedeland
2 siblings, 1 reply; 13+ messages in thread
From: esafran @ 1999-10-26 4:00 UTC (permalink / raw)
Thanks to everybody for your comments. I have done some tests and the
configuration I choose, except someone/thing says it's wrong, follows:
* Each node use it's local clock in stratus 3 (default for local clocks)
* The cluster works in symmetric active mode.
* I don't need to have enough good time to justify to use UTC time, but
I need both node "perfectly" synchronized.
With these configuration the ntp daemons choose, with some policy, one
of the nodes for synchronization (ie node A), and the other as "client"
(ie node B). For example, if A boots prior B, then A is choosen; but if
B boots prior A, then B is choosen. I don't know if NTP can,
dynamically, choose the other node as the "best". If both nodes boot at
the same time (more or less), ntp choose one of them as "the best".
NTPQ output follows:
B# ntpq -p
remote refid st
-------------------------
* LOCAL(1) LOCAL(1) 3
A B 5
A# ntpq -p
remote refid st
-------------------------
LOCAL(1) LOCAL(1) 3
* B LOCAL(1) 4
Sent via Deja.com http://www.deja.com/
Before you buy.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: NTP on a Digital Cluster
1999-10-26 4:00 ` esafran
@ 1999-10-30 4:00 ` Per Hedeland
0 siblings, 0 replies; 13+ messages in thread
From: Per Hedeland @ 1999-10-30 4:00 UTC (permalink / raw)
In article <7v45vs$smc$1@nnrp1.deja.com> esafran@aluar.com.ar writes:
>NTPQ output follows:
>
>B# ntpq -p
>remote refid st
>-------------------------
>* LOCAL(1) LOCAL(1) 3
> A B 5
>
>A# ntpq -p
>remote refid st
>-------------------------
> LOCAL(1) LOCAL(1) 3
>* B LOCAL(1) 4
As explained in other postings in this thread, this is not a reliable
configuration - note that A has its own local clock at a lower stratum
than B; it may switch over to its local clock at any time and stay
there, with the result that the nodes start drifting apart. Also, you
should always "fudge" the local clocks to have a higher stratum than the
default of 3 (e.g. 10, 12), to make sure they don't interfere with
*real* time sources. (You may not have any now, but if you one day get
them this may come back and bite you, and possibly others.)
--Per Hedeland
per@erix.ericsson.se
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~1999-11-04 5:00 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-10-21 4:00 NTP on a Digital Cluster esafran
1999-10-21 4:00 ` David Schwartz
1999-10-22 4:00 ` Per Hedeland
1999-10-22 4:00 ` Nikola Milutinovic
1999-10-22 4:00 ` Per Hedeland
1999-10-23 4:00 ` Jerome Limozin
1999-10-22 4:00 ` Jerome Limozin
1999-10-27 4:00 ` Homonnai Mihaly
1999-10-27 4:00 ` Jerome Limozin
1999-10-27 4:00 ` Jesper Frank Nemholt
1999-11-04 5:00 ` Jay Drew
1999-10-26 4:00 ` esafran
1999-10-30 4:00 ` Per Hedeland
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox