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

release-19.1: storage: rate-limit AddSST requests #36444

Merged
merged 1 commit into from
Apr 2, 2019

Conversation

thoszhang
Copy link
Contributor

Backport 1/1 commits from #36403.

/cc @cockroachdb/release


We've been seeing extremely high latency for foreground traffic during bulk
index backfills, because AddSST requests into non-empty ranges can be
expensive, and write requests that are queued behind an AddSST request for an
overlapping span can get stuck waiting for multiple seconds. This PR limits the
number of concurrent AddSST requests for a single store, determined by a new
cluster setting, kv.bulk_io_write.concurrent_addsstable_requests, to decrease
the impact of index backfills on foreground writes. (It also decreases the risk
of writing too many L0 files to RocksDB at once, which causes stalls.)

Fixes #36430

Release note (general change): Add a new cluster setting,
kv.bulk_io_write.concurrent_addsstable_requests, which limits the number of
SSTables that can be added concurrently during bulk operations.

We've been seeing extremely high latency for foreground traffic during bulk
index backfills, because AddSST requests into non-empty ranges can be
expensive, and write requests that are queued behind an AddSST request for an
overlapping span can get stuck waiting for multiple seconds. This PR limits the
number of concurrent AddSST requests for a single store, determined by a new
cluster setting, `kv.bulk_io_write.concurrent_addsstable_requests`, to decrease
the impact of index backfills on foreground writes. (It also decreases the risk
of writing too many L0 files to RocksDB at once, which causes stalls.)

Release note (general change): Add a new cluster setting,
`kv.bulk_io_write.concurrent_addsstable_requests`, which limits the number of
SSTables that can be added concurrently during bulk operations.
@thoszhang thoszhang requested review from dt and a team April 2, 2019 20:40
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@thoszhang
Copy link
Contributor Author

bors r+

@thoszhang
Copy link
Contributor Author

bors r-

@craig
Copy link
Contributor

craig bot commented Apr 2, 2019

Canceled

@thoszhang thoszhang merged commit 1cbf368 into cockroachdb:release-19.1 Apr 2, 2019
@thoszhang thoszhang deleted the backport19.1-36403 branch April 2, 2019 22:24
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.

4 participants