mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
feat(rtt): 'machine rtt' command to show round-trip time between macines usign using gossip data (#226)
* Add corrosion admin client function to get RTT to other machines in the cluster * Add `uc machine rtt` showing all pair-wise RTT stats from corrosion * Add long description to machine rtt command * Include machine peer RTTs in InspectMachine instead of adding new gRPC API for it * Add nil check on InspectMachine's Rtt field to protect from a potential edge case * Generate docs for machine rtt command * Handle m.Message being nil when a node is down or unavailble * Update cli-docs * Use tui Table instead of tabwriter * Change reported RTT to the median rather than mean. Still calculate include stddev, as it might be a useful indication of network jitter. * Show RTT to peers in `wg show` output * Update cli docs
This commit is contained in:
@@ -25,5 +25,6 @@ Manage machines in the cluster.
|
||||
* [uc machine ls](uc_machine_ls.md) - List machines in a cluster.
|
||||
* [uc machine rename](uc_machine_rename.md) - Rename a machine in the cluster.
|
||||
* [uc machine rm](uc_machine_rm.md) - Remove a machine from a cluster and reset it.
|
||||
* [uc machine rtt](uc_machine_rtt.md) - Show round-trip times between machines.
|
||||
* [uc machine update](uc_machine_update.md) - Update machine configuration in the cluster.
|
||||
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
# uc machine rtt
|
||||
|
||||
Show round-trip times between machines.
|
||||
|
||||
## Synopsis
|
||||
|
||||
Show round-trip times between machines.
|
||||
|
||||
Round-trip time statistics are collected from the Corrosion gossip protocol
|
||||
and represent the median of recent RTT samples between each pair of machines
|
||||
in the cluster. The values shown include the median RTT and standard deviation
|
||||
for each machine-to-machine connection.
|
||||
|
||||
```
|
||||
uc machine rtt [flags]
|
||||
```
|
||||
|
||||
## Options
|
||||
|
||||
```
|
||||
-h, --help help for rtt
|
||||
```
|
||||
|
||||
## Options inherited from parent commands
|
||||
|
||||
```
|
||||
--connect string Connect to a remote cluster machine without using the Uncloud configuration file. [$UNCLOUD_CONNECT]
|
||||
Format: [ssh://]user@host[:port], ssh+go://user@host[:port], tcp://host:port, or unix:///path/to/uncloud.sock
|
||||
-c, --context string Name of the cluster context to use (default is the current context). [$UNCLOUD_CONTEXT]
|
||||
--uncloud-config string Path to the Uncloud configuration file. [$UNCLOUD_CONFIG] (default "~/.config/uncloud/config.yaml")
|
||||
```
|
||||
|
||||
## See also
|
||||
|
||||
* [uc machine](uc_machine.md) - Manage machines in the cluster.
|
||||
|
||||
Reference in New Issue
Block a user