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
It is better than the old implementation. It only provides up to 5 random live peers plus a polkachu internal one. It is less likely to cause performance issues for nodes in the long run.
introduce P2P_POLKACHU_PERSISTENT_PEERS (which would be getting 5 random live peers plus a polkachu internal one via https://polkachu.com/api/v2/chains/<CHAIN>/live_peers call)
Also need to think what to do with P2P_PERSISTENT_PEERS which come via CHAIN_JSON. There are plenty of them typically and less maintained.
I'd say one should P2P_PERSISTENT_PEERS=0 (disable them) when using P2P_POLKACHU_PERSISTENT_PEERS=1 or have some switch to allow the combo.
Should also filter the duplicates. They often slip through.
The text was updated successfully, but these errors were encountered:
I am currently running my node with these settings for the state-sync to work and have avoid adding bunch of p2p persistent peers which come through CHAIN_JSON by default (when P2P_PERSISTENT_PEERS isn't set to 0 and CHAIN_JSON is present with the p2p persistent peers in it):
- STATESYNC_POLKACHU=1
- P2P_POLKACHU=1
# Discourage the use of p2p persistent peers (coming via CHAIN_JSON), to encourage the usage of p2p seeds instead.
- P2P_PERSISTENT_PEERS=0
# have to add Polkachu State-Sync Peer for Akash https://polkachu.com/live_peers/akash for the state-sync to work
- AKASH_P2P_PERSISTENT_PEERS=d1e47b071859497089c944dc082e920403484c1a@65.108.128.201:12856
But even then this might fail:
INF Error reconnecting to peer. Trying again addr={"id":"d1e47b071859497089c944dc082e920403484c1a","ip":"65.108.128.201","port":12856} err="auth failure: secret conn failed: EOF" module=p2p tries=0
Whereas, state-sync works again when specifying more peers:
As per Polkachu:
https://polkachu.com/docs/index.html#v2-public-GETapi-v2-chains--network--live_peers
I think we should do the following:
P2P_POLKACHU
toP2P_POLKACHU_SEEDS
P2P_POLKACHU_PERSISTENT_PEERS
(which would be getting 5 random live peers plus a polkachu internal one viahttps://polkachu.com/api/v2/chains/<CHAIN>/live_peers
call)Also need to think what to do with
P2P_PERSISTENT_PEERS
which come viaCHAIN_JSON
. There are plenty of them typically and less maintained.I'd say one should
P2P_PERSISTENT_PEERS=0
(disable them) when usingP2P_POLKACHU_PERSISTENT_PEERS=1
or have some switch to allow the combo.Should also filter the duplicates. They often slip through.
The text was updated successfully, but these errors were encountered: