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: impl DoNothing wal #1311

Merged
merged 5 commits into from
Nov 20, 2023
Merged

Conversation

jiacai2050
Copy link
Contributor

@jiacai2050 jiacai2050 commented Nov 17, 2023

Rationale

In some deployments when latest data is allowed to lost, wal is not a required module.

Also, wal may cost too much resources if write throughput is high, by disable it, we can save those resources.

Detailed Changes

  • Add a DoNothing wal implementation
  • Introduce WalConfig, and add a new disable_data flag in it.
    • This Config wrap old StorageConfig, and use #[serde(flatten)] to keep backwards compatible.

Test Plan

Manually

src/wal/src/config.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@Rachelint Rachelint left a comment

Choose a reason for hiding this comment

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

LGTM

@jiacai2050 jiacai2050 merged commit 046cdd3 into apache:main Nov 20, 2023
7 checks passed
@jiacai2050 jiacai2050 deleted the feat-dummy-data-wal branch November 20, 2023 07:51
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.

None yet

2 participants