Debug conn command¶
Queries the router management API for TCP adaptor connections, correlates them with listener/connector resources (routing key, resource name), and lists matching connections (idle time, TCP state, routing key). Connections idle beyond --idle-threshold can be force-closed with --execute via adminStatus=deleted. With --list-ports it instead reports how many connections each port carries, inbound and outbound, plus the correlated routing key and resource, and closes nothing. --port, --state, --routing-key, and --kind narrow either mode. --port is the router-side port shown by --list-ports (on Kubernetes this is often an allocated port such as 1024, not Listener spec.port). Note that closing a connection also closes the other leg of its flow, which sits on the connector's port and so may differ from the port swept. "sweep" remains as an alias for compatibility.
| Platforms | Kubernetes, Docker, Podman, Linux |
|---|
Examples¶
# List all connections
$ skupper debug conn
# List ports with connection counts
$ skupper debug conn --list-ports
# Filter by TCP state and routing key
$ skupper debug conn --state ESTAB --routing-key echo:8080
# Close idle connections matching filters
$ skupper debug conn --port 1024 --idle-threshold 14400 --execute
Primary options¶
--execute
--help
--idle-threshold
| Default |
|
|---|
--kind
--list-ports
--output
| Default |
|
|---|
--port
| Default |
|
|---|