Skip to content

feat: tune memory limiter settings #161

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

Merged
merged 2 commits into from
Feb 20, 2025
Merged

Conversation

obs-gh-alexlew
Copy link
Collaborator

Description

OB-XXX Please explain the changes you made here.

Checklist

  • Created tests which fail without the change (if possible)
  • Extended the README / documentation, if necessary

@@ -33,8 +33,8 @@ processors:

memory_limiter:
check_interval: 1s
limit_percentage: 20
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we had misinterpreted the meaning of these fields. limit_percentage is the total possible usage allowed to this pipeline and after that it starts dropping data. I think maybe we thought that it wasn't a shared thing but actually each instance of this component has a shared size limit so if we only have one instance of this component then its safe to use up to 80% of memory total. The spike percentage is basically reserved for spikes so generally the process is actually limited to 60% of memory and is allowed to spike up to 80.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, makes sense! So do you think we should omit this when running on bare metal? Maybe we could put a comment about that in our docs if so.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

im not sure how the max gets calculated in a bare-metal situation since it doesn't technically exist. maybe there's a gomemlimit default? in which case i dont think its unreasonable to have this limiter try to respect that

@@ -33,8 +33,8 @@ processors:

memory_limiter:
check_interval: 1s
limit_percentage: 20
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, makes sense! So do you think we should omit this when running on bare metal? Maybe we could put a comment about that in our docs if so.

@obs-gh-alexlew obs-gh-alexlew merged commit 9efb48a into main Feb 20, 2025
8 checks passed
@obs-gh-alexlew obs-gh-alexlew deleted the alew/tune-memory-limiter branch February 20, 2025 19:38
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