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

Speed up launcher startup and collect more data about slow parts of startup #2065

Merged

Conversation

RebeccaMahany
Copy link
Contributor

  • DetectAndRemediateHardwareChange can be extremely slow. Since we aren't actually remediating right now, we can move this call to a goroutine instead of blocking on it.
  • MakeStores can take as long as 45 seconds -- added some child spans to see if we can glean any more information about what's slow there.
  • We know that CheckExecutable can be slow. (See: Speed up tuf.CheckExecutable #1585.) I see a couple example traces where it's taking nearly a minute, though, which should never happen -- the exec should time out after 5 seconds and we should attempt the exec no more than 3 times. So, I added a couple more spans to collect more information.

@RebeccaMahany RebeccaMahany added the features-improvements Features and Improvements label Jan 24, 2025
James-Pickett
James-Pickett previously approved these changes Jan 24, 2025
@RebeccaMahany RebeccaMahany added this pull request to the merge queue Jan 27, 2025
Merged via the queue into kolide:main with commit 42db15e Jan 27, 2025
32 checks passed
@RebeccaMahany RebeccaMahany deleted the becca/faster-launcher-startup branch January 27, 2025 14:16
@RebeccaMahany RebeccaMahany mentioned this pull request Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
features-improvements Features and Improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants