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

fix(engine): exclude inactive memory from memory metrics #424

Merged
1 commit merged into from
Nov 22, 2023

Conversation

ghost
Copy link

@ghost ghost commented Nov 22, 2023

What

This upgrades engine to v1.168.0 which contains a fix for build memory metrics.

Exact formula depends on Control Group and Docker API versions:

  • cgroup v1: memoryUsage = memory_stats.usage - memory_stats.stats.total_inactive_file

  • cgroup v2: memoryUsage = memory_stats.usage - memory_stats.stats.inactive_file

  • unknown cgroup (older Docker API): memoryUsage = memory_stats.usage - memory_stats.stats.cache

Why

Bug fix.

Notes

@ghost ghost self-requested a review as a code owner November 22, 2023 15:30
@ghost ghost requested review from mikhail-klimko and removed request for a team November 22, 2023 15:30
@ghost ghost self-assigned this Nov 22, 2023
@ghost ghost merged commit 69266e7 into release-1.0 Nov 22, 2023
4 checks passed
@ghost ghost deleted the CR-21247-exclude-inactive-memory-from-memory-metrics branch November 22, 2023 15:44
This pull request was closed.
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