libp2p / libp2p/go-libp2p-daemon
Print stats/diagnostics on system signal
@vyzo is already working on this.
Since Feb 14, 2019.
- Dominant language
- Go
- Stars
- 95
- Forks
- 41
- PR merge metrics
- No merged PRs in 30d
Description
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:
- [x] [`dht.RoutingTable.Print()`](https://github.com/libp2p/go-libp2p-kbucket/blob/f6beec0711156e8f6d25fb512ac0eef15d6bc7f3/table.go#L235)
- [x] active connections with peers.
- [x] 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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.