Re: Would it make sense to require ntp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Btw, in RHEL 7 based distros there is a choice between ntpd and
chronyd with the latest being more preferred.
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/ch-Configuring_NTP_Using_the_chrony_Suite.html

2015-11-06 23:08 GMT+08:00 Gregory Farnum <gfarnum@xxxxxxxxxx>:
> On Fri, Nov 6, 2015 at 4:26 AM, John Spray <jspray@xxxxxxxxxx> wrote:
>> On Fri, Nov 6, 2015 at 10:06 AM, Nathan Cutler <ncutler@xxxxxxx> wrote:
>>> Hi Ceph:
>>>
>>> Recently I encountered some a "clock skew" issue with 0.94.3. I have
>>> some small demo clusters in AWS. When I boot them up, in most cases the
>>> cluster will start in HEALTH_WARN due to clock skew on some of the MONs.
>>>
>>> I surmise that this is due to a race condition between the ceph-mon and
>>> ntpd systemd services. Sometimes ntpd.service starts *after* ceph-mon -
>>> in this case the MON sees a wrong/unsynchronized time value.
>>>
>>> Now, even though ntpd.service starts (and fixes the time value) very
>>> soon afterwards, the cluster remains in clock skew for a long time - but
>>> that is a separate issue. What I would like to ask is this:
>>>
>>> Is there any reasonable Ceph cluster node configuration that does not
>>> include running the NTP daemon?
>>
>> Only if there is some other time service replacing it.  I don't really
>> know of anyone using alternative ntp daemons, but it's a possibility
>> to consider before introducing a hard dependency on ntpd.
>>
>>> If the answer is "no", would it make sense to make NTP a runtime
>>> dependency and tell the ceph-mon systemd service to wait for
>>> ntpd.service before it starts?
>>
>> Just waiting for the service is quick, but it doesn't achieve any
>> effect on the clock other than promising that it will be synced at
>> some point in the future.  Wouldn't we have to wait for time sync
>> rather than just waiting for the service?  That could take a while.
>>
>> My hunch is that users wouldn't appreciate the mon blocking until
>> times were in sync, they'd probably prefer to go ahead and start up,
>> but raise a warning (like we currently do).
>>
>> Given all that, maybe the question is actually: why do the mons stay
>> in the skew state for so long after the clocks are corrected?
>
> Perhaps they're just keeping the warning log up until the next
> regularly-scheduled clock sync test? I don't know that we want to
> start higher-frequency testing when in an error state (how expensive
> are the clock sync tests?) but we could at least let admins trigger
> one directly. (Maybe we do, but I didn't find anything about clocks in
> MonCommands.)
> -Greg
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux