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 austerity mode to parser. option --austerity-mode governs whether or... #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

broberts-zd
Copy link

... not the program will do a load average check prior to running

… or not the program will do a load average check prior to running
@vanchi-zendesk
Copy link
Contributor

I like this!

cc @osheroff

@mfischer-zd
Copy link
Contributor

It's not OS-independent, though. This is a Linux-specific way of gathering load average and the number of CPUs. If a Gem exists that can obtain system facts in an OS-independent way, I'd use that instead.

@mfischer-zd
Copy link
Contributor

Also I think run policy is better enforced elsewhere, like in a wrapper script.

@broberts-zd
Copy link
Author

Typically this should be done in a wrapper script in accordance with separation of concerns between general functionality of the app (mostly developers province) and the specific operational reality of our environment (mostly ops). But but but.... I think we are going to have to go with this austerity option anyway. We need to add something to ultragrep to prevent it from driving up the load average too much. 7% of our PD alerts come from ultragrep running the way it currently does - and adding this load check to prevent it from running won't solve the issue. Just one instance of ultragrep (I think) will set off alerts. What I proposed here was just the first part of --austerity-mode, I was planning to also limit its resource usage (see op-5030).

Another concern is: should this be in the open source version of ultragrep? If not, just fork.

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