cockroachdb / cockroachdb/cockroach
catalog,lease: create an eviction policy for leased descriptors in the LeaseManager
Open
A-schema-descriptors
A-schema-leasing
C-enhancement
T-sql-foundations
- Dominant language
- Go
- Stars
- 32.5k
- Forks
- 4.1k
- PR merge metrics
- PR metrics pending
Description
As we add support for clusters to contain more than a few thousand schema objects, we need to make sure not to introduce unbounded memory consumption. Currently, the lease manager maintains a cache of all leased descriptors in memory.
This issue tracks adding an eviction policy to this cache. To prevent excessive memory growth, using a size-based policy is sufficient, but a time-based policy could additionally be useful.
Jira issue: CRDB-52633
Epic CRDB-60956
Contributor guide
Assessment
This issue has not been assessed yet.