Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print stats/diagnostics on system signal #68

Open
3 of 4 tasks
raulk opened this issue Feb 14, 2019 · 2 comments
Open
3 of 4 tasks

Print stats/diagnostics on system signal #68

raulk opened this issue Feb 14, 2019 · 2 comments
Assignees

Comments

@raulk
Copy link
Member

raulk commented Feb 14, 2019

For debugging the state of the daemon, it could be useful to add a hook to catch SIGUSR2 (as we plan to use SIGUSR1 for config reload) that prints statistics/diagnostics to stdout/stderr.

We can output at least:

  • dht.RoutingTable.Print()
  • active connections with peers.
  • active streams with peers, including the protocol id.
  • pubsub subscriptions.

For now, the DHT routing table would suffice, as we actually do need it kind of immediately.

@vyzo
Copy link
Collaborator

vyzo commented Feb 14, 2019

First pass, we dump the routing table on SIGUSR1.

@vyzo
Copy link
Collaborator

vyzo commented Apr 12, 2019

#101 implemented peer and stream dumps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants