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

Added software install capability to agent. #21196

Merged
merged 7 commits into from
Aug 21, 2024

Conversation

getvictor
Copy link
Member

Testing feature for #19551

@getvictor getvictor marked this pull request as ready for review August 8, 2024 17:03
@getvictor getvictor requested a review from a team as a code owner August 8, 2024 17:03

var path string
if !failed {
tmpDir, err := os.MkdirTemp("", "")
Copy link
Member

@lucasmrod lucasmrod Aug 13, 2024

Choose a reason for hiding this comment

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

In the loadtest environment we run 500 agents per docker container. They will run out of memory/disk-space.

Copy link
Member

@lucasmrod lucasmrod Aug 13, 2024

Choose a reason for hiding this comment

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

We should probably make the download but not store it anywhere (something like "stream to /dev/null").
Will consume memory/disk but most likely less.

Copy link
Member Author

Choose a reason for hiding this comment

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

I made the change. I still need to download the software once to extract the metadata, and afterwards I can do dummy downloads.

Copy link
Member

@lucasmrod lucasmrod left a comment

Choose a reason for hiding this comment

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

LGTM.

Left a couple of questions/comments.

@getvictor
Copy link
Member Author

LGTM.

Left a couple of questions/comments.

@lucasmrod I checked in fixes. Ready for re-review.

Copy link
Member

@lucasmrod lucasmrod left a comment

Choose a reason for hiding this comment

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

LGTM!

(Let's merge, I can add log.Println on my PR.)

// Download the file if needed to get its metadata
meta, cacheMiss, err = installerMetadataCache.Get(installer.InstallerID, orbitClient)
if err != nil {
return
Copy link
Member

Choose a reason for hiding this comment

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

log.Println here

@getvictor getvictor merged commit b965587 into main Aug 21, 2024
16 of 17 checks passed
@getvictor getvictor deleted the victor/20896-osquery-perf-software-install branch August 21, 2024 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants