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 excess memory consumption #141

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

tnthornton
Copy link
Member

Description of your changes

  • make hash generation for client-id deterministic
  • remove bearertoken as that is regenerated every 90s

This fixes a problem we were seeing where the same requester was identified as different clients resulting in excess informer cache accumulation and unbounded heap growth.

I have:

  • Read and followed Upbound's contribution process.
  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

Deployed the changes out to some Upbound control planes and verified (through logging) that the client cache remained small and that memory and cpu did not grow unbounded (via metrics).

- make hash generation for client-id deterministic
- remove bearertoken as that is regenerated every 90s
@tnthornton tnthornton force-pushed the client-cache-memory-leak branch from 7de040f to f7b96fc Compare September 25, 2024 19:57
@tnthornton tnthornton merged commit b4b3e68 into upbound:main Sep 25, 2024
7 checks passed
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