Skip to content

Conversation

@dsboulder
Copy link
Contributor

Description

The code allows both a configurable % and byte limit for memory. Specifically the byte limit makes sense when you want to run log-cache on a really large VM, colocated with other things, but you don't want it to take up too much of the VM's memory.

This optional property will do nothing until set, at which point it will override the memory % limit, as documented.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Testing performed?

  • Acceptance tests

I validated the deployment with the property provided and saw that memory was kept under control to a small amount (tested with 10MB limit, saw log cache grow to ~30MB but then stop... I'm assuming that's a 10MB app logs limit not a total process limit)

I validated the deployment with the property missing and saw the BPM.yml was valid and no longer set the memory limit in bytes at all.

Checklist:

  • This PR is being made against the main branch, or relevant version branch
  • I have made corresponding changes to the documentation (via spec)

If you have any questions, or want to get attention for a PR or issue please reach out on the #logging-and-metrics channel in the cloudfoundry slack

The code allows both a configurable % and byte limit for memory. Specifically the byte limit makes sense when you want
to run log-cache on a really large VM, colocated with other things, but you don't want it to take up too much
of the VM's memory.

This optional property will do nothing until set, at which point it will override the memory % limit, as documented.
@dsboulder dsboulder requested a review from a team as a code owner August 29, 2025 18:08
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Aug 29, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: dsboulder / name: David Stevenson (fcaa105)

@dsboulder
Copy link
Contributor Author

/easycla

Copy link
Contributor

@chombium chombium left a comment

Choose a reason for hiding this comment

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

Hi @dsboulder thanks for your contribution!

LGTM!

@github-project-automation github-project-automation bot moved this from Inbox to Pending Merge | Prioritized in Application Runtime Platform Working Group Aug 29, 2025
@chombium chombium merged commit 0c33af4 into cloudfoundry:main Aug 29, 2025
4 checks passed
@github-project-automation github-project-automation bot moved this from Pending Merge | Prioritized to Done in Application Runtime Platform Working Group Aug 29, 2025
@dsboulder
Copy link
Contributor Author

Yay, it was fun to add something... even if it's tiny!

@dsboulder dsboulder deleted the memory-limit-bytes branch September 2, 2025 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants