Skip to content

concurrency: add optional lock table flushing#154521

Draft
stevendanna wants to merge 1 commit intocockroachdb:masterfrom
stevendanna:ssd/lock-flush-on-memory-pressure
Draft

concurrency: add optional lock table flushing#154521
stevendanna wants to merge 1 commit intocockroachdb:masterfrom
stevendanna:ssd/lock-flush-on-memory-pressure

Conversation

@stevendanna
Copy link
Copy Markdown
Collaborator

This adds a new LockTableFlusher which can optionally be used by the lock table to move unreplicated locks into the replicated lock table when under memory pressure.

The LockTableFlusher is held at the store level, limiting the total number of in-flight lock requests.

Right now, we start sending flush requests when we are 80% of the maximum size.

Epic: none
Release note: None

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@stevendanna stevendanna force-pushed the ssd/lock-flush-on-memory-pressure branch 4 times, most recently from c535273 to d14c1d5 Compare October 6, 2025 11:25
This adds a new LockTableFlusher which can optionally be used by the
lock table to move unreplicated locks into the replicated lock table
when under memory pressure.

The LockTableFlusher is held at the store level, limiting the total
number of in-flight lock requests.

Right now, we start sending flush requests when we are 80% of the
maximum size.

Epic: none
Release note: None
@stevendanna stevendanna force-pushed the ssd/lock-flush-on-memory-pressure branch from d14c1d5 to 375a183 Compare October 6, 2025 12:01
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