Skip to content

[RaftLogEngine] Make log recycling effective when starting in cold by prefill-for-recycle. #14371

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

Closed
LykxSassinator opened this issue Mar 9, 2023 · 0 comments · Fixed by #14372
Labels
type/enhancement The issue or PR belongs to an enhancement.

Comments

@LykxSassinator
Copy link
Contributor

Development Task

In previous work, we've already introduced enable-log-recycle for reusing the obsolete raft logs for newly append entries. But this feature is not effective when starting with an empty db, only making sense when the count of logs up to threshold.

So, we want to introduce a new trigger, named with prefill-for-recycle, to enable this feature in advance when starting TiKV with an empty db, which has been done in tikv/raft-engine#278.

@LykxSassinator LykxSassinator added the type/enhancement The issue or PR belongs to an enhancement. label Mar 9, 2023
ti-chi-bot pushed a commit that referenced this issue Mar 17, 2023
… starting engine in cold state. (#14372)

close #14371

Adds a new configuration `raft-engine.prefill-for-recycle` for supporting to enable log recycling when starting TiKV in cold state.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
1 participant