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
haikoschol opened this issue
Oct 22, 2024
· 2 comments
Labels
A-debugissue requires detective debug work to figure out what's going wrong.C-chaoticUnpredictable nature of this task/changes makes its chaotic.P-lowthis is mostly nice to have.T-bugthis issue covers unexpected and/or wrong behaviour.
The default value for the --max-peers CLI flag is 50. On a long-running bare metal Westend node, Grafana shows 479 under "Network total connected peers" and 957 under "Network total node connections". Either the configuration setting has no effect or the metrics are reported incorrectly.
Expected Behavior
The node should maintain no more than the maximum number of peer connections configured.
Current Behavior
The number of peers/connections keeps rising for a while until it stabilizes on a value much higher than the configured maximum. The number it stabilizes on seems to be correlated to the CPU/memory resources of the node.
To Reproduce
Steps to reproduce the behavior:
run Gossamer without passing --max-peers to use the default of 50
wait a while
check the number of peers with curl -s localhost:9876/metrics | grep peer_count_total
The text was updated successfully, but these errors were encountered:
haikoschol
added
T-bug
this issue covers unexpected and/or wrong behaviour.
A-debug
issue requires detective debug work to figure out what's going wrong.
P-low
this is mostly nice to have.
C-chaotic
Unpredictable nature of this task/changes makes its chaotic.
labels
Oct 22, 2024
$ grep peers config.toml
# Minimum number of peers to connect to
min-peers = 5
# Maximum number of peers to connect to
max-peers = 50
# Comma separated list of peers to always keep connected to
persistent-peers = ""
This was on a machine that reports 316 "Network total connected peers" and 735 "Network total node connections".
However, those numbers are apparently wrong as well.
Number of all TCP connections of the gossamer process:
$ lsof -n -P -iTCP | grep gossamer | wc -l
201
Number of all TCP connections in the ESTABLISHED state:
A-debugissue requires detective debug work to figure out what's going wrong.C-chaoticUnpredictable nature of this task/changes makes its chaotic.P-lowthis is mostly nice to have.T-bugthis issue covers unexpected and/or wrong behaviour.
Describe the bug
The default value for the
--max-peers
CLI flag is 50. On a long-running bare metal Westend node, Grafana shows 479 under "Network total connected peers" and 957 under "Network total node connections". Either the configuration setting has no effect or the metrics are reported incorrectly.Expected Behavior
The node should maintain no more than the maximum number of peer connections configured.
Current Behavior
The number of peers/connections keeps rising for a while until it stabilizes on a value much higher than the configured maximum. The number it stabilizes on seems to be correlated to the CPU/memory resources of the node.
To Reproduce
Steps to reproduce the behavior:
--max-peers
to use the default of 50curl -s localhost:9876/metrics | grep peer_count_total
Specification
development
ce5200c3f19d84e77598ea9b19b5a49053e681de
The text was updated successfully, but these errors were encountered: