Compare repo and store endpoints in token stats

This commit is contained in:
mpabi
2026-04-26 10:36:25 +02:00
parent 663242c855
commit 918b192212
4 changed files with 179 additions and 37 deletions
+10 -9
View File
@@ -118,22 +118,23 @@ python3 workspace.py tokens read --show-secrets
### `tokens stats`
Pokazuje statystyki per endpoint serwera.
Pokazuje statystyki per endpoint serwera i porownuje dwa zrodla:
- endpointy znalezione w remote URL-ach repo
- endpointy zapisane w `tokens.json`
Wynik ma ten sam model co `tokens read`, ale w formie zbiorczej:
- endpoint
- type
- scheme
- host
- port
- users
- tokens
- liczbe endpointow w repo
- liczbe endpointow w store
- laczna unie endpointow
- statusy zgodnosci, na przyklad `in_sync`, `store_ahead`, `repo_ahead`
- tabele endpointow z liczbami tokenow po obu stronach
Przyklad:
```bash
python3 workspace.py tokens stats
python3 workspace.py tokens stats --repo ~/dev/workspace/rv/series/inf/03
```
### `tokens write`