-
Notifications
You must be signed in to change notification settings - Fork 104
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
Customizable system resources configuration #95
base: v3
Are you sure you want to change the base?
Customizable system resources configuration #95
Conversation
63e63fe
to
e98ea9d
Compare
e98ea9d
to
e475be0
Compare
This change would allow end users to specify custom system resources configuration. It should not change the existing behaviour as it keeps the defaults in place. Signed-off-by: Maxime VISONNEAU <[email protected]>
e475be0
to
fddacd1
Compare
is this addressing an open issue ? (just curious) |
free := si.FreeRam + si.BufferRam | ||
|
||
if sr.Load1PerCPU > 0 && si.Loads[0] > sr.Load1PerCPU*float64(runtime.NumCPU()) { | ||
internal.Logger.Println("taskq: consumer memory is lower than required") |
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 need to fix a typo here
@rbg, unfortunately I haven't opened any related issue. My personal use case which required this change was when working within a very constraint system (<32MB) of RAM. |
If there is appetite to merge it, let me know and I will rebase / fix the typo, I have been using it as part of this project for a while now: https://github.com/mvisonneau/gitlab-ci-pipelines-exporter/blob/main/go.mod#L41 |
This change would allow end users to specify custom system resources configuration.
It should not change the existing behaviour as it keeps the defaults in place.