-
Notifications
You must be signed in to change notification settings - Fork 755
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: Implement WAL-based RaftLog storage #16776
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
the
pr-feature
this PR introduces a new feature to the codebase
label
Nov 6, 2024
drmingdrmer
force-pushed
the
165-raft-log
branch
15 times, most recently
from
November 7, 2024 10:23
59ab4f8
to
24449d4
Compare
Replace sled-based storage with a dedicated WAL implementation optimized for Raft Log operations. The new implementation provides: Performance improvements: - Non-blocking batched fdatasync - FILO caching for latest logs (configurable size/count) - ~0.5ms write latency Compatibility: - Backward compatible with existing data format - Auto-upgrades from V003 to V004 format on startup - Supports rolling upgrades (no protocol changes) - databend-metactl supports both V003/V004 import/export Technical details: - New storage format: V004 - Optimized specifically for Raft Log operations - Preserves all existing functionality
drmingdrmer
force-pushed
the
165-raft-log
branch
from
November 8, 2024 14:42
24449d4
to
3994a72
Compare
drmingdrmer
force-pushed
the
165-raft-log
branch
from
November 9, 2024 03:13
c852f80
to
7be3b41
Compare
Because sled db is not used by meta-service anymore. It is only used when import old format data.
import and export the data to normalize into the latest format to compare.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/
Summary
feat: Implement WAL-based RaftLog storage
Replace sled-based storage with a dedicated WAL implementation optimized
for Raft Log operations. The new implementation provides:
Performance improvements:
Compatibility:
Technical details:
Tests
Type of change
Related Issues
This change is