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

feat: replace bg runtime with default and compact runtime #826

Merged
merged 3 commits into from
Apr 11, 2023

Conversation

ShiKaiWi
Copy link
Member

@ShiKaiWi ShiKaiWi commented Apr 11, 2023

Which issue does this PR close?

Closes #

Rationale for this change

Currently, the bg_runtime is used for many scenarios, e.g. grpc service, hotspot recording, and so on. And bg_runtime is also used heavily by compaction, that is to say, the other scenarios will be hungry to run, leading to blocking in the key paths, e.g. write procedure.

What changes are included in this PR?

  • Replace the bg_runtime with default_runtime and compact_runtime.

Are there any user-facing changes?

The runtime config will be updated.

How does this change test

By manually tests, it is found written rows per second changes from 4K(1 bg thread) -> 100K(1 default thread + 1 compact thread).

Copy link
Contributor

@chunshao90 chunshao90 left a comment

Choose a reason for hiding this comment

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

LGTM

@chunshao90 chunshao90 added this pull request to the merge queue Apr 11, 2023
Merged via the queue into apache:main with commit caa15d7 Apr 11, 2023
chunshao90 pushed a commit to chunshao90/ceresdb that referenced this pull request May 15, 2023
* feat: replace bg runtime with default and compact runtime

* fix: clippy error

* feat: add comments for different runtimes
@ShiKaiWi ShiKaiWi deleted the feat-separate-compaction-runtime branch May 29, 2023 08:32
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