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

Dedicated queue writers #5029

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

riverszhang89
Copy link
Contributor

Increasing the number of writers on the master does not always improve database performance. More often than not it increases contention and hurts performance. But queues may be an exception: only one client can consume from a queue at a time, that it could make sense for queue consumers to run in parellel as much as possible.

On a tunable, this patch dispatches queue consumes to dedicated writer threads. The handle_buf code is also refactored to use thdpool.

Copy link

@roborivers roborivers left a comment

Choose a reason for hiding this comment

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

Coding style check: Error. ⚠.
Smoke testing: Success ✓.
Cbuild submission: Success ✓.
Regression testing: 3/598 tests failed ⚠.

The first 10 failing tests are:
osql_cleanup
reco-ddlk-sql
incremental_backup_load

Increasing the number of writers on the master does not always improve
database performance. More often than not it increases contention
and hurts performance. But queues may be an exception: only one client
can consume from a queue at a time, that it could make sense for
queue consumers to run in parellel as much as possible.

On a tunable, this patch dispatches queue consumes to dedicated
writer threads. The handle_buf code is also refactored to use thdpool.

Signed-off-by: Rivers Zhang <[email protected]>
Copy link

@roborivers roborivers left a comment

Choose a reason for hiding this comment

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

Coding style check: Error. ⚠.
Smoke testing: Success ✓.
Cbuild submission: Error ⚠.
Regression testing: 3/598 tests failed ⚠.

The first 10 failing tests are:
triggersc_latency
reco-ddlk-sql
incremental_backup_load

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