fix: stability tweaks#333
Open
fluffypony wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Implements critical P2P stability fixes to resolve connection management bottlenecks causing "dead in the water" states requiring frequent node restarts. Key changes include:
Motivation and Context
Production log analysis revealed cascading P2P failures caused by:
Failed to identify peererrors due to resource contentionThe core issue was nodes entering "dead in the water" states where they couldn't sync or maintain connections, requiring manual restarts every few days. The single concurrent sync limit was the primary bottleneck causing this cascading failure pattern.
How Has This Been Tested?
cargo checkpasses)What process can a PR reviewer use to test or verify this change?
Code Review: Verify the three specific parameter changes in
p2pool/src/server/p2p/network.rs:num_concurrent_syncs: 10(was 1)CONNECTION_CHURN_DELAY_SECS: u64 = 60 * 45(was 20 minutes)Compilation Test: Run
cargo checkandcargo buildto ensure no compilation issuesConfiguration Validation: Confirm the changes only affect internal constants and don't break existing configurations
Log Analysis (if possible): Deploy to test environment and monitor for:
Breaking Changes