Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

How is everyone going to handle a leap second added to the end of 2016, for kube-aws created clusters? #51

Closed
mumoshu opened this issue Nov 10, 2016 · 8 comments
Labels
triage/support Indicates an issue that is a support question.

Comments

@mumoshu
Copy link
Contributor

mumoshu commented Nov 10, 2016

IFAIK,

  • CoreOS uses systemd-timesyncd instead of ntpd or chronyd to sync time, by default.
  • It is possible to switch to ntpd as described in the CoreOS doc
  • We usually(?) handle leap second with the slew feature which can be seen in ntpd, chronyd
  • The slew feature make the leap second invisible and the clock is gradually fixed over time. Theoretically, it will be enough to completely avoid issues from a leap second.

However:

  • systemd-timesyncd's slew feature is limited. It applies the slew feature only when the gap of the clock is less than 0.4 sec according to timesyncd's source
  • ntpd.service included in coreos-overlay doesn't seem to provide -x -g option to enable "slew" according to coreos-overlay's source
@mumoshu mumoshu added the triage/support Indicates an issue that is a support question. label Nov 10, 2016
@mumoshu mumoshu changed the title Question: How is everyone going to handle a leap second added to the end of 2016? How is everyone going to handle a leap second added to the end of 2016? Nov 10, 2016
@mumoshu mumoshu changed the title How is everyone going to handle a leap second added to the end of 2016? How is everyone going to handle a leap second added to the end of 2016, for kube-aws created clusters? Nov 10, 2016
@pieterlange
Copy link
Contributor

I think this is more of an issue for CoreOS upstream.

@mumoshu
Copy link
Contributor Author

mumoshu commented Nov 10, 2016

Could be. I wish CoreOS had a guide like RedHat does.

@mumoshu
Copy link
Contributor Author

mumoshu commented Nov 11, 2016

You can blame be for doing this but cross posted to the coreos users' group! https://groups.google.com/forum/?hl=ja#!topic/coreos-user/tMaJtso7Ky4

@mumoshu
Copy link
Contributor Author

mumoshu commented Nov 18, 2016

Closing this as probably no one is interested 😢

@mumoshu mumoshu closed this as completed Nov 18, 2016
@mumoshu
Copy link
Contributor Author

mumoshu commented Dec 4, 2016

Note to self: It turns out we can just source from a leap-smearing NTP server instead of the default one so that a leap is handled on their side.

@aholbreich
Copy link

@mumoshu you can source time from google or whatever but that does not prevent your system to include .60 second automatically or? I would not expect that without special treatment

@mumoshu
Copy link
Contributor Author

mumoshu commented Dec 20, 2016

@aholbreich Thanks for catching this up 👍
AFAIK, Google Public NTP serves leap-smeared time hence sourcing it ends up making a leap second invisible from our ntp clients and hence our clock.

@aholbreich
Copy link

Nice info @mumoshu, found this too now: http://www.theregister.co.uk/2016/12/02/google_public_ntp_servers/

I was thinking if it still has any troubles with tzdata (time zone database) that includes leapseconds. But maybe in case of smearing it has no effect.

davidmccormick pushed a commit to HotelsDotCom/kube-aws that referenced this issue Jul 18, 2018
…he-lab-roll to hcom-flavour

* commit '300ee60dbe32edde0bb461c96df7f40d6b6ff802':
  Give more time and ignore headless services
  Give consolidation process more time.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
triage/support Indicates an issue that is a support question.
Projects
None yet
Development

No branches or pull requests

3 participants