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

Ingester: Base memory utilization on Go heap size #6584

Merged
merged 3 commits into from
Nov 16, 2023

Conversation

aknuds1
Copy link
Contributor

@aknuds1 aknuds1 commented Nov 6, 2023

What this PR does

Modify the utilization based ingester read path limiter to base memory utilization on Go heap size instead of RSS from /proc/self/ (Linux procfs). The motivation is that we have experienced significant practical divergence between procfs and cAdvisor (container) memory measurements, and after a design discussion we've arrived at trying to track the Go heap size instead for simplicity.

Which issue(s) this PR fixes or relates to

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@aknuds1 aknuds1 added bug Something isn't working component/ingester enhancement New feature or request and removed bug Something isn't working labels Nov 6, 2023
@aknuds1 aknuds1 force-pushed the arve/memory-utilization-based-ingester-limiting branch 4 times, most recently from a5595b4 to f9a063c Compare November 14, 2023 09:47
@aknuds1 aknuds1 changed the title WIP: Ingester: Prefer memory utilization measurements from cgroup WIP: Ingester: Base memory utilization on Go heap size Nov 14, 2023
@aknuds1 aknuds1 force-pushed the arve/memory-utilization-based-ingester-limiting branch 2 times, most recently from 08ce83d to 78db976 Compare November 14, 2023 10:17
@aknuds1 aknuds1 changed the title WIP: Ingester: Base memory utilization on Go heap size Ingester: Base memory utilization on Go heap size Nov 14, 2023
@aknuds1 aknuds1 marked this pull request as ready for review November 14, 2023 10:28
@aknuds1 aknuds1 requested a review from a team as a code owner November 14, 2023 10:28
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
@aknuds1 aknuds1 force-pushed the arve/memory-utilization-based-ingester-limiting branch from 78db976 to 21ac558 Compare November 15, 2023 13:19
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
@aknuds1 aknuds1 merged commit 35696bd into main Nov 16, 2023
28 checks passed
@aknuds1 aknuds1 deleted the arve/memory-utilization-based-ingester-limiting branch November 16, 2023 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/ingester enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants