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

[helm] Si bytes calculation always floor fix #10044

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

edwintye
Copy link
Contributor

@edwintye edwintye commented Nov 28, 2024

What this PR does

Changes the computation of mimir.siToBytes to use floating point arithmetics.

Additionally, adding a multiplication factor of 0.9 to the store gateway GOMEMLIMIT calculation. In the issue, it was suggested the multiplication factor to be 0.8 but after some testing and looking at other projects (such as prometheus) I settled on 0.9. Looking at the examples, it is common that the memory request and limit will be different so being a more generous number 0.9 is probably fine - some would argue a straight translation is probably fine as well which is the case in the jsonnet version. I am not too sure how exactly the jsonnet version works but from what I can tell this change does create a drift on the GOMEMLIMIT calculation.

The tests in ci - compare-helm-with-jsonnet/compare-manifests to be exact - is failing but I can't get it to work and looking at the other PRs it looks like they have been failing for a while.

Which issue(s) this PR fixes or relates to

Fixes #9780

Checklist

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

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.

[helm] Usage of function mimir.siToBytes seems inconsistent
1 participant