Hi There!
I have around 200 peer connections of the node. However I set the max_connections config parameter to 512. The default value is 256 and it seems that other values does not affect on the behavior. So the question how to get more peer connections - Thanks in advance!
is there any other network related printout in the node log:
INFO failed to connect to peer
INFO connecting to peer
INFO accepted connection
INFO connection closed
INFO peer node ID differs from the expected
INFO disconnecting client
Is there any log about the case when someone tries to connect to the node? I think accepted connection
means that when my node connecting to a node it is accepted.
ok here is my stats from the node log:
- number of unique nodes my node attempt to connect: 2817
grep "INFO connecting to peer" <node_log> | awk -F',' '{print $3}' | sort | uniq -c | wc -l
- number of connection closed: 3277
grep "INFO connection closed" <node_log> | wc -l
- number of accepted connection: 3509
grep "INFO accepted connection" <node_log> | wc -l
- number of disconnecting clients: 286
current connection stats for my node:
$>netstat -tn | tail -n +3 | awk "{ print \$6 }" | sort | uniq -c | sort -n
1 SYN_RECV
1 TIME_WAIT
10 FIN_WAIT1
178 ESTABLISHED
Diagnostic:
$ curl -s <rest_url>/api/v0/diagnostic
{"open_files_limit":32768,"cpu_usage_limit":18446744073709551615}
network stat:
$>curl -s <rest_url>api/v0/network/stats | jq -r ' . | length'
446
node stats:
peerAvailableCnt: 9994
peerQuarantinedCnt: 69
peerTotalCnt: 10240
peerUnreachableCnt: 177
uptime: 14793
node config:
"gossip_interval": "5s",
"listen_address": "/ip4/0.0.0.0/tcp/8399",
"public_address": "/ip4/<public_ip>/tcp/8399",
"max_connections": 1024,
version: jormungandr 0.8.13-241b3a59
So still the question is that why the node can not make more then ~200 connections…
just received the solution from the github
once I set
"max_connections": 768,
"max_client_connections": 768,
immediately started to grow…
6 SYN_RECV
12 TIME_WAIT
14 SYN_SENT
69 CLOSE_WAIT
625 ESTABLISHED
node stats:
peerAvailableCnt: 1680
peerQuarantinedCnt: 1129
peerTotalCnt: 2810
peerUnreachableCnt: 1
state: Running
txRecvCnt: 0
uptime: 1018
1 Like