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

Customizable system resources configuration #95

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

Conversation

mvisonneau
Copy link

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.

@mvisonneau mvisonneau force-pushed the customizable_system_resources branch 3 times, most recently from 63e63fe to e98ea9d Compare October 14, 2020 10:54
@mvisonneau mvisonneau force-pushed the customizable_system_resources branch from e98ea9d to e475be0 Compare November 2, 2020 18:19
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]>
@mvisonneau mvisonneau force-pushed the customizable_system_resources branch from e475be0 to fddacd1 Compare November 27, 2020 17:02
@rbg
Copy link
Contributor

rbg commented Mar 16, 2021

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")
Copy link
Author

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

@mvisonneau
Copy link
Author

@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.
I wanted to simply disable the check as it was preventing the consumers from working properly.

@mvisonneau
Copy link
Author

mvisonneau commented Mar 23, 2021

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

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