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

crl-release-23.1: bump commit pipeline constants #2770

Merged
merged 2 commits into from
Jul 25, 2023

Conversation

jbowens
Copy link
Collaborator

@jbowens jbowens commented Jul 24, 2023

This includes a 23.1 backport of #2764. Additionally, it contains a safer alternative to #2762, bumping the maximum allocated LogWriter blocks to 512. These are being backported as a part of a commitment to a customer.

Increase CapAllocatedBlocks to 512, allowing allocating up to 512 * 32 KiB = 16
MiB of blocks for WAL writes. In heavy-write workloads with large records,
we've observed excessive queueing in the WAL writer waiting for free blocks.
Queueing here is undesirable, as it blocks all commit pipeline writes. In
future work, we could consider adapting this capacity to scale as the memtable
size scales.
Increase record.SyncConcurrency to 4096 to allow additional concurrency within
the commit pipeline. In workloads with heavy writes and high concurrency, we've
observed semaphore queueing artifically increasing tail latencies.
@jbowens jbowens requested review from a team and sumeerbhola July 24, 2023 20:27
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@sumeerbhola sumeerbhola 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 1 of 1 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @jbowens)

@jbowens
Copy link
Collaborator Author

jbowens commented Jul 25, 2023

TFTR!

@jbowens jbowens merged commit 016035d into cockroachdb:crl-release-23.1 Jul 25, 2023
9 checks passed
@jbowens jbowens deleted the 23.1-commit-pipeline branch July 25, 2023 17:15
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.

3 participants