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

Add a startup delay to the autoupdater, to avoid interfering with critical work #695

Merged
merged 4 commits into from
Jan 21, 2021

Conversation

directionless
Copy link
Contributor

@directionless directionless commented Dec 24, 2020

When launcher first enrolls with a server, it often begins fetching key data. However, the autoupdater also starts. And if there's a pending update, this has the effect of pre-empting that early data.

This introduces a simple option to delay the autoupdater to allow key data to come in first. This option defaults to an hour.

cmd/launcher/updater.go Outdated Show resolved Hide resolved
directionless and others added 3 commits December 29, 2020 15:25
Co-authored-by: blaedj <blaedj@users.noreply.github.com>
@directionless directionless marked this pull request as ready for review December 29, 2020 21:34
Copy link
Contributor

@blaedj blaedj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, though I think we should note that this delay will happen every time launcher starts (reboot etc), right?

@directionless
Copy link
Contributor Author

lgtm, though I think we should note that this delay will happen every time launcher starts (reboot etc), right?

Yes, this delays applies on eery launcher start. Where do you think we should say that? I think it's implied by the option help text.

@blaedj
Copy link
Contributor

blaedj commented Jan 21, 2021

.. Where do you think we should say that? ..

I just did, above 😄 the option help text is fine as-is, I agree.

@directionless directionless merged commit 0e6d486 into kolide:master Jan 21, 2021
@directionless directionless deleted the seph/autoupdate-delay branch January 21, 2021 18:21
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.

2 participants