Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds rtcsync directive to chrony config file #1184

Merged
merged 1 commit into from
Oct 27, 2020

Conversation

errm
Copy link
Contributor

@errm errm commented Oct 26, 2020

Issue number:

Fixes #1183

Description of changes:

Adds the rtcsync directive to the chrony config file.

I think this is a resonable change to make, as it allready seems to be the default in Amazon Linux 2.

Testing done:

I have added this directive to the config file on a running instance and restarted chronyd, and observed that the value of node_timex_sync exported by the prometheus node exporter is 1.

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

This directive enables kernel synchronisation (every 11 minutes) of the real-time clock.

It also causes chrony to update the timex sync flag, which is commonly
used to monitor clock synchronisation, e.g. via the prometheus node
exporter.

Fixes bottlerocket-os#1183
@zmrow
Copy link
Contributor

zmrow commented Oct 26, 2020

This looks reasonable to me, but... paging @bcressey

@bcressey
Copy link
Contributor

LGTM, thanks!

@bcressey bcressey merged commit a51b470 into bottlerocket-os:develop Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

node_timex_sync_status metric indicates that NTP is not syncing
4 participants