satellite/overlay decrease NodeCheckInWaitPeriod #6795
+2
−2
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.
What: Decrease NodeCheckInWaitPeriod from 2h down to 1h10m
Why: NodeCheckInWaitPeriod is designed to suppress unnecessary DB commits. At the same time, we want to allow the storage node to update its
last_contact_success
once every 2 hours. It turns out as long as the value is set to 2 hours the storage node has a high chance to getlast_contact_success
updates once every 3 hours because the second check-in is almost perfect on the 2 hour mark. This is a bit unfair. It means with just 1 hour of downtime the storage node might end up with anlast_contact_success
that is more than 4 hours old. At that point repair kicks in and moves pieces away from the node.Reducing NodeCheckInWaitPeriod to 1h10m will make sure the node is allowed to checkin every 2 hours and even accounts for a possible restart after 1h30m or so. It would still commit the node checkin.
Please describe the tests:
Please describe the performance impact:
Code Review Checklist (to be filled out by reviewer)