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

Do not perform osquery healthchecks while system is sleeping #1284

Merged

Conversation

RebeccaMahany
Copy link
Contributor

@RebeccaMahany RebeccaMahany commented Aug 7, 2023

We occasionally see an issue where launcher shuts itself down on Windows while the device is sleeping, and fails to be restarted successfully. Our best guess is that while in modern standby, launcher is throttled and the osquery healthcheck therefore fails enough to shut down launcher, and the throttling prevents launcher from starting back up. This PR disables the osquery healthcheck while the system is sleeping.

@RebeccaMahany RebeccaMahany force-pushed the becca/skip-healthcheck-on-power-event branch from 6dc940d to cb5f07e Compare August 7, 2023 20:35
@RebeccaMahany RebeccaMahany marked this pull request as ready for review August 7, 2023 21:21
James-Pickett
James-Pickett previously approved these changes Aug 7, 2023
directionless
directionless previously approved these changes Aug 7, 2023
Copy link
Contributor

@directionless directionless left a comment

Choose a reason for hiding this comment

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

I'd take it as is, or called PowersaveMode. I don't know that I know which feel more correct yet.

@@ -47,6 +47,7 @@ const (
LogIngestServerURL FlagKey = "log_ingest_url"
TraceIngestServerURL FlagKey = "trace_ingest_url"
DisableTraceIngestTLS FlagKey = "disable_trace_ingest_tls"
DisableOsqueryHealthchecks FlagKey = "disable_osquery_healthchecks"
Copy link
Contributor

Choose a reason for hiding this comment

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

Thoughts about whether should do this as DisableOsqueryHealthchecks vs PowersaveMode?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had gone back and forth on similar too, thinking about this versus something like InModernStandby. I ended up on this one because the osquery extension doesn't need to know why it should skip healthchecks, just what to do -- but I do not feel that strongly about it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated per offline discussion!

@RebeccaMahany RebeccaMahany merged commit ab70039 into kolide:main Aug 8, 2023
26 checks passed
@RebeccaMahany RebeccaMahany deleted the becca/skip-healthcheck-on-power-event branch August 8, 2023 16:24
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.

3 participants