IntersectMBO / IntersectMBO/ouroboros-network

[FR] - Query node for list of outgoing/incoming connections and its state

Open
#5,006 11 comments 15 reactions 2 assignees Claimed by @the-headless-ghost View on GitHub
connection-manager high-priority node-to-client outbound-governor PI-9
Dominant language
Haskell
Stars
296
Forks
104
Avg merge
2d 10h
Merged PRs (30d)
4

Description

**Internal/External**
*External*

**Area**
*Other*

**Describe the feature you'd like**
When in P2P mode, we need a way to query the node for currently established incoming and outgoing connections with their state. State of connection should include hot/warm status for outgoing and uni-directional, bi-directional, duplex mode for all. The current metrics you can get from the node provide the numbers, but not specifically what IP has what state and if its incoming/outgoing. This could be included in Prometheus or EKG metrics, alternatively as a cardano-cli query.

This would be very beneficial when troubleshooting topology issues or just for general health checks that the node has connections to own nodes and in the preferred mode.

**Describe alternatives you've considered**
Before P2P we could use system tooling to query for established incoming and outgoing connections as they where all uni directional. This is no longer possible with P2P enabled. You can only see 'active connections'.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.