Skip to content

ttljob: add cluster setting to control concurrency#145578

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
rafiss:ttl-concurrency-limit
May 6, 2025
Merged

ttljob: add cluster setting to control concurrency#145578
craig[bot] merged 1 commit intocockroachdb:masterfrom
rafiss:ttl-concurrency-limit

Conversation

@rafiss
Copy link
Copy Markdown
Collaborator

@rafiss rafiss commented May 1, 2025

Each processor of the TTL job creates a number of goroutines that operate concurrently to scan for expired rows and delete them.

Previously, the concurrency was always equal to GOMAXPROCS. This new setting allows it to be overriden.

Once this is merged, we should update support runbooks to discuss this setting.

Informs: https://github.com/cockroachlabs/support/issues/3284
Epic: None
Release note: None

Each processor of the TTL job creates a number of goroutines that
operate concurrently to scan for expired rows and delete them.

Previously, the concurrency was always equal to GOMAXPROCS. This new
setting allows it to be overriden.

Release note: None
@blathers-crl
Copy link
Copy Markdown

blathers-crl bot commented May 1, 2025

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@rafiss rafiss marked this pull request as ready for review May 6, 2025 18:49
@rafiss rafiss requested a review from a team as a code owner May 6, 2025 18:49
@rafiss rafiss requested a review from fqazi May 6, 2025 18:50
@rafiss rafiss added backport-23.2.x PAST MAINTENANCE SUPPORT: 23.2 patch releases via ER request only backport-24.1.x Flags PRs that need to be backported to 24.1. backport-24.3.x Flags PRs that need to be backported to 24.3 backport-25.1.x backport-25.2.x Flags PRs that need to be backported to 25.2 labels May 6, 2025
Copy link
Copy Markdown
Collaborator

@fqazi fqazi left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @rafiss)

@rafiss
Copy link
Copy Markdown
Collaborator Author

rafiss commented May 6, 2025

tftr!

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented May 6, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-23.2.x PAST MAINTENANCE SUPPORT: 23.2 patch releases via ER request only backport-24.1.x Flags PRs that need to be backported to 24.1. backport-24.3.x Flags PRs that need to be backported to 24.3 backport-25.2.x Flags PRs that need to be backported to 25.2 v25.3.0-prerelease

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants