You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Range sync groups peers by status message. When peers are re-status'd a new group is created and peers roll over to the new chain. This group is called a syncing chain and comprises many block batches. Block batches are downloaded in advance and buffered in-memory.
When syncing chains roll over to the new group of peer the buffered batches are dropped and wasted. This PR will give us visibility on the issue
But there are some solutions we could do to mitigate it.
Potential solution
When we want to switch chains into the next one we can switch the current chain into Stopping state. In that state it will not attempt to download new batches, but it will attempt to process existing batches. Once it can not make any more progress (either complete all of them, or some failure) the chain can transition to Stopped and be dropped without wasting blocks.
Note that this strategy allows to not lose progress but it can slow down sync during the roll over and no more batches are getting buffered.
The text was updated successfully, but these errors were encountered:
Description
Range sync groups peers by status message. When peers are re-status'd a new group is created and peers roll over to the new chain. This group is called a syncing chain and comprises many block batches. Block batches are downloaded in advance and buffered in-memory.
When syncing chains roll over to the new group of peer the buffered batches are dropped and wasted. This PR will give us visibility on the issue
But there are some solutions we could do to mitigate it.
Potential solution
When we want to switch chains into the next one we can switch the current chain into
Stopping
state. In that state it will not attempt to download new batches, but it will attempt to process existing batches. Once it can not make any more progress (either complete all of them, or some failure) the chain can transition toStopped
and be dropped without wasting blocks.Note that this strategy allows to not lose progress but it can slow down sync during the roll over and no more batches are getting buffered.
The text was updated successfully, but these errors were encountered: