GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Calculation improvement by LeaveMyYard · Pull Request #128 · robusta-dev/krr

Conversation

@LeaveMyYard

@LeaveMyYard LeaveMyYard commented Aug 18, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor
  • Increased memory buffer
  • Changed default step to 1m15s (1.25m)
  • Fixed duration and step formatting in queries

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
LeaveMyYard added 5 commits August 16, 2023 18:52
@LeaveMyYard
Fix CPU calculation, improve get_query
118108e
@LeaveMyYard
Remove time param for custom_query
3daa36a
@LeaveMyYard
Fix resource format bug
ef4c0de
@LeaveMyYard
Change default step to 1.25 minutes
1253ebf
@LeaveMyYard
Change default memory buffer to 15%
99ad46e
@LeaveMyYard LeaveMyYard self-assigned this Aug 18, 2023
@LeaveMyYard
Add minimal points required for recommendation
357ce77
@LeaveMyYard LeaveMyYard mentioned this pull request Aug 18, 2023
Krr 1.5.3 returns no results due to no metrics for PercentileCPULoader and MaxMemoryLoader #127
Closed
@LeaveMyYard
LeaveMyYard marked this pull request as ready for review August 18, 2023 12:53
@LeaveMyYard LeaveMyYard mentioned this pull request Aug 18, 2023
Applying recommendations immediately leads to OOMKilled on startup #110
Closed
@fcecagno

fcecagno commented Aug 19, 2023

Copy link
Copy Markdown

Just tested this and found it odd that all my deployments had recommendation of 100m CPU request, even those that consumed almost no CPU in the past (for instance, config-reloader).

LeaveMyYard reacted with eyes emoji
All reactions
  • 👀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@LeaveMyYard

LeaveMyYard commented Aug 21, 2023

Copy link
Copy Markdown
Contributor Author

@fcecagno I think this is because we set the minimal recommendation to 100m for CPU (previously it was 5m I think). @Avi-Robusta Don't you think that we should make it less?

fcecagno reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@LeaveMyYard
LeaveMyYard requested review from Avi-Robusta and RoiGlinik August 21, 2023 20:27
RoiGlinik
RoiGlinik reviewed Aug 22, 2023
View reviewed changes
Comment thread robusta_krr/strategies/simple.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

RoiGlinik
RoiGlinik reviewed Aug 22, 2023
View reviewed changes
Comment thread robusta_krr/strategies/simple.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

RoiGlinik
RoiGlinik approved these changes Aug 22, 2023
View reviewed changes
@LeaveMyYard
Small fix for points filtering
4d3ab4e
@LeaveMyYard
LeaveMyYard merged commit 80ef416 into main Aug 22, 2023
@LeaveMyYard
LeaveMyYard deleted the calculation-improvement branch August 22, 2023 13:27
@Sheeproid Sheeproid mentioned this pull request Oct 19, 2026
ROB-1636 Bump urllib3 to 2.8.0 and drop pip from the image to fix CVEs #556
Merged
Sheeproid added a commit that referenced this pull request Oct 19, 2026
@Sheeproid @claude
ROB-1636 Bump urllib3 to 2.8.0 and drop pip from the image to fix CVEs (
f21d482
#556)

## Summary
- **urllib3** 2.7.0 → 2.8.0 in `pyproject.toml`, `poetry.lock`,
`requirements.txt` and `enforcer/requirements.txt`. Fixes CVE-2026-97687
and CVE-2026-97689 (High). Closes dependabot alerts #122, #123, #125,
#126, #128 and #129, and the matching Artifact Registry findings on
`devel/krr`.
- **Dockerfile**: pip is uninstalled once the requirements are
installed. pip 26.2.1, the latest release, vendors its own urllib3
2.7.0, so the dependency bump alone left the CVEs in the image. krr
never calls pip at runtime. The pip upgrade, requirements install and
uninstall run in one `RUN`, so the upgraded pip never lands in an image
layer (CodeRabbit's finding, now fixed).

Linear: [ROB-1636](https://linear.app/robusta/issue/ROB-1636)

## Verification
- `poetry lock --no-update` with Poetry 1.8.5: only urllib3 changes in
the lock. `poetry check --lock` passes.
- `pytest`: 55 passed.
- Built the image for `linux/amd64` and scanned it with Trivy (Docker
Scout isn't available in the sandbox). The Python packages have no HIGH
or CRITICAL findings. Before this change the image showed urllib3 2.7.0
(pip's vendored copy) and msgpack 1.1.2. `docker history` shows no
separate pip layer.
- Built for `linux/arm64` under QEMU (from the commit before the
single-`RUN` change, so the same packages): it runs on `aarch64`, Trivy
reports the same results as amd64, urllib3 is 2.8.0, and pip is gone.
- In both images `krr.py simple --help` works.
- Not tested: a rescan in Artifact Registry. The Vanta finding clears
only after CI publishes the image.

Out of scope:
- `gcc-14` CVE-2026-95619 (Low, no Debian fix) and 10 unfixed Debian
HIGHs, unchanged from `main`.
- The `enforcer` image installs pip the same way, but Vanta has not
flagged it.
- The enforcer README's "Python 3.9+" was already wrong before this PR.
It's tracked in [ROB-1650](https://linear.app/robusta/issue/ROB-1650).

---
_Generated by [Claude
Code](https://claude.ai/code/session_01Fq7hqRqj2kshg8M2sFpN7h)_

---------

Signed-off-by: Claude <[email protected]>
Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@RoiGlinik RoiGlinik RoiGlinik approved these changes
@Avi-Robusta Avi-Robusta Awaiting requested review from Avi-Robusta

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@LeaveMyYard LeaveMyYard

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@LeaveMyYard @fcecagno @RoiGlinik
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.