Files
pezkuwi-subxt/prdoc/pr_3983.prdoc
T
Dmitry Markin a26d25d5c7 Detect closed notification substreams instead of evicting all peers (#3983)
This PR brings the fix
https://github.com/paritytech/substrate/pull/13396 to polkadot-sdk.

In the past, due to insufficient inbound slot count on polkadot &
kusama, this fix led to low peer count. The situation has improved since
then after changing the default ratio between `--in-peers` &
`--out-peers`.

Nevertheless, it's expected that the reported total peer count with this
fix is going to be lower than without it. This should be seen as the
correct number of working connections reported, as opposed to also
reporting already closed connections, and not as lower count of working
connections with peers.

This PR also removes the peer eviction mechanism, as closed substream
detection is a more granular way of detecting peers that stopped syncing
with us.

The burn-in has been already performed as part of testing these changes
in https://github.com/paritytech/polkadot-sdk/pull/3426.

---------

Co-authored-by: Aaro Altonen <a.altonen@hotmail.com>
2024-04-09 12:40:52 +00:00

21 lines
789 B
Plaintext

# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0
# See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json
title: Detect closed notification substreams instead of evicting all peers
doc:
- audience: Node Operator
description: |
Replace eviction of all peers when syncing has completely stalled with a more granular
detection of notification substreams closed by remote peers.
This change is expected to make the _reported_ peer count lower, as before this change
the number also included already closed substreams. Nevertheless, the currently reported
number should be seen as the real number of working connections.
crates:
- name: sc-network-sync
bump: minor
- name: sc-network
bump: minor