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

Allow Log Collector to run without CPU/Memory limits #2883

Closed
wants to merge 11 commits into from

Conversation

jovieir
Copy link

@jovieir jovieir commented Jul 24, 2023

The log collector will not run for distros running under CGroup2 due to LogCollectorMonitor dependency from CGroup1 metrics. This change will allow the LC to run, bypassing the monitor and resource usage, being effectively unconstrained.

Two distinct ways to run:

  • Set Logs.Uncapped=y on waagent.conf
  • Invoke waagent -collect-logs [-full] -uncapped

During testing, found an issue where a linked file to be collected no longer existed (removed after successful bootstrapping), causing an unhandled exception + logcollection to fail. Fixed with validation if symlink path file exists before appending to files to collect.

Issue #


PR information

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which has an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • If applicable, the PR references the bug/issue that it fixes in the description.
  • New Unit tests were added for the changes made

Quality of Code and Contribution Guidelines

@narrieta
Copy link
Member

@jovieir Thank you for your contribution. I'm closing this PR since there is an internal conversation on this issue.

@narrieta narrieta closed this Jul 27, 2023
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