-
Notifications
You must be signed in to change notification settings - Fork 115
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
go/storage: reduce storage checkpointing #4561
Conversation
b77f1e8
to
3f112cd
Compare
We can probably leave consensus checkpoints as they are since consensus state is fairly small. |
Codecov Report
@@ Coverage Diff @@
## master #4561 +/- ##
==========================================
- Coverage 66.97% 66.86% -0.11%
==========================================
Files 425 424 -1
Lines 47960 47958 -2
==========================================
- Hits 32119 32067 -52
- Misses 11905 11939 +34
- Partials 3936 3952 +16
Continue to review full report at Codecov.
|
3f112cd
to
3ee5ec7
Compare
paused := false | ||
|
||
for { | ||
select { | ||
case <-ctx.Done(): | ||
return | ||
case <-ticker.C: | ||
case <-time.After(random.GetRandomValueFromInterval(checkpointIntervalRandomizationFactor, rand.Float64(), c.cfg.CheckInterval)): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could maybe move the inner value into a new variable initialized before the select
statement to make it less cluttered.
3ee5ec7
to
3b195a3
Compare
3b195a3
to
ad009aa
Compare
Should the consensus checkpoints also be disabled by default?