-
Notifications
You must be signed in to change notification settings - Fork 466
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
storage controller: don't hold detached tenants in memory #10264
base: main
Are you sure you want to change the base?
Conversation
7238 tests run: 6867 passed, 11 failed, 360 skipped (full report)Failures on Postgres 17
Failures on Postgres 16
Failures on Postgres 15
Failures on Postgres 14
Flaky tests (3)Postgres 17
Postgres 14
Test coverage report is not availableThe comment gets automatically updated with the latest test results
dd47681 at 2025-01-06T19:00:20.682Z :recycle: |
Let's get this merged and give it a week in staging -- there's a lot of detach/attach churn there, so we should have an excellent chance of spotting any unforseen issues |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
I think attach hook handling is missing a maybe_load_tenant
call around service.rs:1603
and that's causing the test failures.
Yep, thanks for pointing that out. |
Problem
Typical deployments of neon have some tenants that stay in use continuously, and a background churning population of tenants that are created and then fall idle, and are configured to Detached state. Currently, this churn of short lived tenants results in an ever-increasing memory footprint.
Closes: #9712
Summary of changes