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: expose more rocksdb options #1033

Merged
merged 7 commits into from
Jun 27, 2023

Conversation

zouxiang1993
Copy link
Contributor

Rationale

Now rocksdb as the wal, it is easy to become the bottleneck of write.

Detailed Changes

  1. expose more rocksdb options to avoid write stall
  2. introduce rocksdb's FIFO compaction style, which makes rocksdb looks like a message queue.
    (FIFO is more suitable for time-series data, maybe it will become the default option in the future?)

Test Plan

I will test it in my test env.

wal/src/rocks_impl/config.rs Outdated Show resolved Hide resolved
wal/src/rocks_impl/config.rs Outdated Show resolved Hide resolved
wal/src/rocks_impl/config.rs Outdated Show resolved Hide resolved
@zouxiang1993 zouxiang1993 changed the title Expose more rocksdb options feat: expose more rocksdb options Jun 27, 2023
Copy link
Member

@ShiKaiWi ShiKaiWi left a comment

Choose a reason for hiding this comment

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

LGTM

@ShiKaiWi ShiKaiWi merged commit d2c8139 into apache:main Jun 27, 2023
@zouxiang1993 zouxiang1993 deleted the expose-more-rocksdb-options branch June 27, 2023 07:48
dust1 pushed a commit to dust1/ceresdb that referenced this pull request Aug 9, 2023
## Rationale
Now rocksdb as the wal, it is easy to become the bottleneck of write.

## Detailed Changes
1. expose more rocksdb options to avoid write stall
2. introduce rocksdb's FIFO compaction style, which makes rocksdb looks
like a message queue.
(FIFO is more suitable for time-series data, maybe it will become the
default option in the future.)
## Test Plan
I will test it in my test env.

---------

Co-authored-by: WEI Xikai <ShiKaiWi@users.noreply.github.com>
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