Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Automatically restrict trailing peers while syncing #1167

Merged
merged 6 commits into from
Mar 26, 2019

Conversation

ajsutton
Copy link
Contributor

PR description

During a full sync, while Pantheon is behind the chain head restrict the number of trailing peers to 25% of the maximum peers. This reduces the load placed on our node by other peers requesting data and ensures there's room for peers ahead of us on the chain to connect and improve our sync speed.

The 25% of maximum peers is fairly arbitrary but is deliberately above zero to ensure we contribute something to the overall network even while catching up.

@ajsutton ajsutton merged commit eb6ecf1 into PegaSysEng:master Mar 26, 2019
@ajsutton ajsutton deleted the limit-full-sync-trailing-peers branch March 26, 2019 20:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants