Allows traces to be replayed in stats mode from `mc admin trace -json ALIAS >trace.json`, using `mc admin trace -in=trace.json`. `.zst` are automatically decompressed.
This is replayed at full speed, since I don't really see any value in keeping original speed.
Add scrolling to stats. Up+Down+Home+End
Add 'r' to reset min/max stats.
Make `mc admin trace -stats` more compact, and hopefully more readable.
* Truncates durations more reasonably
* Use `-` for 0 TTFB.
* Use `↑151B ↓12K` instead of `↑ 151 B ↓ 12 KiB/m`
* Reduce FPS from 7 to 3 for less flickering.
```
mc admin service restart local -w
Service status: ▰▱▱ [DONE]
Summary:
┌───────────────────────┬─────────────────────────────┐
│ Servers: │ 4 online, 0 offline, 0 hung │
│ Restart Time: │ 3.949842ms │
│ Background Init Time: │ 1.503707801s │
└───────────────────────┴─────────────────────────────┘
```
Existing UI didn't scale well for 100+ nodes, this
UI change is also made to provide clear guidance on
how soon the service is available v/s background
initialization time.