[bisq-network/bisq] Fix premature disconnections from seeds (#5057)

chimp1984 notifications at github.com
Wed Jan 6 22:55:11 CET 2021


I deployed it to 3 seed nodes. Observing how they behave before extending to other seeds.

I added new statistics logging per connection. That helps to analyse the peer management and see where are bottlenecks.

```
Jan-06 21:49:33.738 [SeedNodeMain] INFO  b.n.p.p.PeerManager: Connection statistics: 

Connection 1
Age: 1 minute, 45.838 seconds
Peer: [Seed node] sn2bisqad7ncazupgbd3dcedqh5ptirgwofw63djwpdtftwhddo75oid.onion:8000 
Type: PEER 
Direction: Outbound
UID: e2e209db-b50e-4caa-972d-cced1afb90f8
Time since last message: 0.800 seconds
Time for response: [PreliminaryGetDataRequest/Response: 18.532 seconds, GetDaoStateHashesRequest/Response: 0.550 seconds, GetProposalStateHashesRequest/Response: 0.684 seconds, GetBlindVoteStateHashesRequest/Response: 0.621 seconds, GetUpdatedDataRequest/Response: 1.549 seconds]
Sent data: 665.76 kB; {PreliminaryGetDataRequest=1, AddDataMessage=6, GetDaoStateHashesRequest=1, GetProposalStateHashesRequest=1, GetBlindVoteStateHashesRequest=1, RefreshOfferMessage=13, GetUpdatedDataRequest=1, GetPeersRequest=1, BundleOfEnvelopes=7}
Received data: 5.068 MB; {AddDataMessage=2, GetDaoStateHashesResponse=1, GetPeersResponse=1, GetDataResponse=2, RefreshOfferMessage=11, GetProposalStateHashesResponse=1, RemoveDataMessage=1, GetBlindVoteStateHashesResponse=1}
CPU time spent on sending messages: 0.179 seconds
CPU time spent on receiving messages: 3.171 seconds

Connection 2
Age: 1 minute, 45.427 seconds
Peer: [Seed node] wizseedscybbttk4bmb2lzvbuk2jtect37lcpva4l3twktmkzemwbead.onion:8000 
Type: INITIAL_DATA_EXCHANGE 
Direction: Outbound
UID: f65a92c4-45b7-497f-a79c-107393b1287d
Time since last message: 0.701 seconds
Time for response: [PreliminaryGetDataRequest/Response: 19.199 seconds, GetDaoStateHashesRequest/Response: 0.704 seconds, GetProposalStateHashesRequest/Response: 0.834 seconds, GetBlindVoteStateHashesRequest/Response: 0.690 seconds]
Sent data: 337.351 kB; {PreliminaryGetDataRequest=1, AddDataMessage=11, GetDaoStateHashesRequest=1, GetProposalStateHashesRequest=1, GetBlindVoteStateHashesRequest=1, RefreshOfferMessage=17, RemoveDataMessage=1, RemoveMailboxDataMessage=4, BundleOfEnvelopes=10}
Received data: 5.052 MB; {GetDaoStateHashesResponse=1, GetDataResponse=1, GetProposalStateHashesResponse=1, GetBlindVoteStateHashesResponse=1}
CPU time spent on sending messages: 0.090 seconds
CPU time spent on receiving messages: 0.457 seconds

Connection 3
Age: 1 minute, 38.621 seconds
Peer: devinsn2teu33efff62bnvwbxmfgbfjlgqsu3ad4b4fudx3a725eqnyd.onion:8000 
Type: INITIAL_DATA_EXCHANGE 
Direction: Inbound
UID: 81eb9315-5186-4fd6-a153-f9597883e2e6
Time since last message: 2.445 seconds
Time for response: [GetDaoStateHashesRequest awaiting response... , GetProposalStateHashesRequest awaiting response... , GetBlindVoteStateHashesRequest awaiting response... , GetUpdatedDataRequest/Response: 0.008 seconds]
Sent data: 1.989 kB; {GetDataResponse=1, RefreshOfferMessage=1, RemoveDataMessage=1}
Received data: 369.567 kB; {AddDataMessage=8, GetDaoStateHashesRequest=1, GetProposalStateHashesRequest=1, GetBlindVoteStateHashesRequest=1, RefreshOfferMessage=25, GetUpdatedDataRequest=1}
CPU time spent on sending messages: 0.011 seconds
CPU time spent on receiving messages: 0.147 seconds


```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/5057#issuecomment-755736907
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20210106/0cb86983/attachment.htm>


More information about the bisq-github mailing list