-
Notifications
You must be signed in to change notification settings - Fork 36
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
feat: Harvest should include numPollers and RSS in autosupport #2143
Conversation
cmd/poller/collector/asup.go
Outdated
// Ignore processes that: | ||
// - don't pass the allowList, unless the process is using more that 100MB of memory | ||
// - have no cmdline (these are not interesting) | ||
if pp.RssBytes < HundredMB && !psAllowListRe.MatchString(name) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we want all harvest pollers even if they take less than 100MB?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, even we do process limited process as per allowList, still do we need 100MB criteria ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think, I have misunderstood the condition, it's skipping other processes which are less than 100MB, our all expected processes would any way will be evaluated irrespective of the memory.
} else { | ||
pp.Threads = threads | ||
} | ||
msg.Platform.Processes = append(msg.Platform.Processes, pp) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need a limit of number of processes stored in slice considering the asup size limit?
Fixes: #2065