Similar Threads:
1.NTP n00b: NTP & Cluster
Hi all. I have 2 Netra440s in a cluster. I think I have them clocking
off of the same server, but that's not what I see when look at the
peers. I'm fairly new to NTP so I'm not sure if my ntp.conf files are
setup properly. Actually, I'd be surprised if they were. Both ntp.conf
files have
-----------------------------
#Servers:
server 127.127.1.0
server 216.152.162.29
server 216.152.162.30
#Peers:
peer clusternode1-priv prefer
peer clusternode2-priv
peer clusternode3-priv
peer clusternode4-priv
peer clusternode5-priv
peer clusternode6-priv
peer clusternode7-priv
peer clusternode8-priv
-----------------------------
So, right off, I guess I don't need nodes 3-8 in there since there are
only 2 nodes. Correct?
Next, when I look at ntpq -p I get:
-----------------------------
Node1:
remote refid st t when poll reach delay
offset disp
==============================================================================
LOCAL(0) LOCAL(0) 3 l 56 64 377 0.00
0.000 10.01
*216.152.162.29 192.38.7.240 2 u 286 1024 377 212.98
96.627 89.90
+216.152.162.30 192.5.41.209 2 u 567 1024 377 2.53
6.402 9.90
clusternode1-pr 0.0.0.0 16 - - 1024 0 0.00 0.000
16000.0
clusternode2-pr clusternode1-pr 4 u - 64 377 -2.76
-14.217 8.18
Node2:
remote refid st t when poll reach delay
offset disp
==============================================================================
LOCAL(0) LOCAL(0) 3 l 33 64 377 0.00
0.000 10.01
216.152.162.29 0.0.0.0 16 - - 1024 0 0.00 0.000
16000.0
216.152.162.30 0.0.0.0 16 - - 1024 0 0.00 0.000
16000.0
*clusternode1-pr 216.152.162.29 3 u 55 64 376 1.11
16.159 9.00
clusternode2-pr 0.0.0.0 16 - - 1024 0 0.00 0.000
16000.0
-----------------------------
It looks to me like node 1 is clocking off of the network and node2 is
clocking off of node 1. In the ntp.conf file it mentions that "All
nodes within the cluster must synchronize within the cluster as
peers. Time synchronization amongst the nodes is more important than
the accuracy of the agreed upon time." which would explain why node2
is clocking of node1, but would that mean node2 would not even attempt
to clock from the network?
Thanks in advance.
Ben..
2.question regarding NTP configuration for clusters, and "cluster time" stability
3.question regarding NTP configuration for clusters, and "cluster time" stability
I have a question that seems somewhat similiar to one that was just
asked,
but there are a couple of differences, so I figured I'd ask mine as
well.
Apologies for the long post, but I'm trying to skip the "more info
please"
phase. :-)
I have a product that is comprised of a cluster of Linux nodes, with
the
cluster ranging in size from 4 to over 100 nodes. To date, we've used
the version of NTP included in the OS (SLES 10) to maintain internal
time synchronization in the cluster, but without associations to any
external NTP servers nor any hardware based time sources. While
this has worked satisfactorily, it does allow for a gradual drift
from
UTC over time, so we'd like to extend the product to eliminate this.
What this means in terms of requirements is that we still must
maintain a stabile internal "cluster time" with sub-second tolerance.
This should be trivial for NTP to maintain, as that is a rather loose
tolerance compared to many others I've seen discussed. The requirement
to match true UTC is even looser, as all we're trying to do is enable
the use of an external reference to stop what can be a perpetual
drift.
Just to give it a number though, let's say we'd like it to be within
60 seconds of UTC.
The topology of our cluster has two tiers. All of the nodes are
interconnected
over a private network, and some subset of the nodes also have
external
connections to the LAN where it is deployed. The subset is always at
least 2 nodes, and can be as high as 25% of the total number of nodes.
Prior to extending the product to allow use of an external (to the
cluster)
NTP server or servers, those nodes with external connections were
configured as peer servers to the internal cluster, with all other
nodes
pure clients.
After adding support for external NTP servers, we kept something like
the same config: The nodes with external connections were still
servers to the internal network, and were peers of each other. But now
they were also clients of one or more external servers. I understand
that
requiring three or more would be better, and we can do that, but we
still
have to ensure stability of the internal cluster time even if a
reduced set
of servers (including the null set) were reachable.
Our configuration did not work, because we were able to cause
instability
in the internal cluster time with perturbations in the external
server. And we
have to guarantee stabililty even with bad inputs.
What happened was that some (but not all) of those externally
connected
nodes deemed the external server a false ticker, and stopped believing
it.
But some of the other externally connected nodes did not, and as a
result
there was time divergence between members of this group. It is this
divergence
that I'm referring to when I speak of a lack of stability.
So before I go into configuration details, is there a known "best way"
to
handle the sort of requirements I described? It sounds like orphan
mode
might provide functionality I'm looking for, but I figured in parallel
with
emperical experimentation, I'd pursue the analytical approach and ask
people who know more than me. :)
thanks,
Tim
4.[ntp:questions] Advice on sync clock between cluster of linux v2.6 to +-1us
5.NTP in a Linux cluster
Folks,
Could any NTP experts suggest how I should best configure NTP in
a loosely-coupled Linux cluster, where intra-cluster synchronization
is
the top priority?
I have done some reading about NTP, but can't seem to find an
authoritative
guide to using NTP in a cluster environment. My company sells systems
that
run on small clusters of Linux servers - typically from 2 to 16
servers ("nodes"),
each running RedHat Linux. All nodes in a cluster are equal. We
don't use
any third-party clustering software, just the standard OS and our own
applications.
The main priorities are:
1) Time must be kept closely synchronized between all nodes in the
cluster.
2) If one or more nodes become unavailable, synchronization must
still be
maintained.
3) Time must never go backwards, or jump - all changes must be by
"slewing"
4) Time should track one or more external NTP servers as closely as
possible,
while observing (1) to (3) above.
The key requirement here is the as-close-as-possible synchronization
between
nodes in the cluster; that is far more important than closely tracking
the external
NTP server(s).
How would an NTP guru go about configuring a cluster to meet those
requirements?
It would be preferable if the configuration of all nodes could be
identical. A solution
that requires two or more node types ("master" and "slave" perhaps)
with different
settings would be acceptable, of course, if the preferred one-size-
fits-all approach
is impossible.
Should all nodes have configuration entries for all other nodes as
"peers"?
Should all nodes (or only one) have configuration entries for the
external NTP server(s)?
If all nodes have both peer and external server entries, how can I
arrange that
keeping in sync with peers is seen as more important than keeping in
sync with
the external servers?
Questions, questions...
Any and all answers would be gratefully received!
Thanks in advance,
Lorcan Hamill
6. ntp cluster problem
7. configuring ntp in sun v880 in a cluster
8. [tip:timers/ntp] ntp: adjust SHIFT_PLL to improve NTP convergence