Burkov Egor
00fb114bce
fix: add checks for nil HTTP in admin-trace matches func ( #5216 )
2025-06-23 08:14:30 -07:00
Klaus Post
86907df91d
Improve trace stats ( #5095 )
...
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.
2024-12-15 01:25:34 -08:00
Harshavardhana
8ad22bb694
trace: avoid aggregate statistics TX/RX with --all ( #4998 )
2024-07-26 06:08:44 -07:00
Harshavardhana
6811427b8b
provide a overall summary along with call-wise ( #4970 )
...
```
Duration: 1m3s ▱▱▱
RPM : 1168103.3
RX Rate:↑ 2.5 TiB/m
TX Rate:↓ 2.4 TiB/m
-------------
...
```
2024-06-28 16:17:44 -07:00
Prakash Senthil Vel
b72bd7992c
enable batch expiry option in trace ( #4964 )
...
add batch expiry option in trace
2024-06-19 22:17:42 -07:00
Harshavardhana
a472e3d9ed
switch RX and TX arrow marks correctly
...
the arrow marks must be from server perpective
not `mc` perspective.
2024-06-11 12:50:18 -07:00
Harshavardhana
0bd92d778e
add space between upload/download indicators
2024-06-05 11:12:13 -07:00
Klaus Post
3997483ce7
Add sizes to mc admin trace ( #4949 )
...
```
Regular trace:
2024-06-03T14:18:37.303 [STORAGE] storage.ReadXL 127.0.0.1:9001 e:\data\distxl\s1\d3 warp-benchmark-bucket pz9WSPPj/4.TnpU8KEot9t4zl66.rnd 538.3µs 1003 B
With -v:
127.0.0.1:9001 [STORAGE storage.ReadXL] [2024-06-03T14:14:51.680] e:\data\distxl\s1\d3 warp-benchmark-bucket yvhiOPYp/117.hjDOOH6KmAhtC0Ty.rnd total-errs-availability=0 total-errs-timeout=0 0s 1003 B
With -stats
Duration: 21s ∙∙●
Call Count RPM Avg Time Min Time Max Time Avg TTFB Max TTFB Avg Size Errors
storage.ReadXL 15808 (67.2%) 44344.8 429µs 0s 69.9984ms 0s 0s 1.2 KiB 0
storage.Delete 3088 (13.1%) 8662.5 2.056ms 9.7075ms 305.0662ms 0s 0s - 3
http stats:
Duration: 14s ∙∙●
Call Count RPM Avg Time Min Time Max Time Avg TTFB Max TTFB Avg Size Errors
s3.GetObject 4532 (44.1%) 19502.8 1.121ms 267.5µs 67.9369ms 1.098ms 67.9369ms ↓77 B ↑1000 B 0
s3.HeadObject 3028 (29.4%) 13030.6 1.031ms 506.8µs 62.9893ms 0s 0s ↓77 B 0
s3.PutObject 1711 (16.6%) 7363.1 21.109ms 2.5496ms 181.8214ms 9µs 10.6771ms ↓1.3 KiB ↑0 B 0
s3.DeleteObject 1008 (9.8%) 4337.8 56.204ms 1.5859ms 411.1034ms 1.185ms 175.1619ms ↓77 B ↑4 B 0
s3.DeleteMultipleObjects 1 (0.0%) 4.3 316.358ms 316.3584ms 316.3584ms 315.306ms 315.3055ms ↓23 KiB ↑24 KiB 0
```
Backwards compatible, but will start displaying non-zero after: https://github.com/minio/minio/pull/19851 and https://github.com/minio/minio/pull/19864
2024-06-05 00:50:20 -07:00
Aditya Manthramurthy
d4b7b00d73
Bump up minio/pkg to v3 ( #4940 )
2024-05-23 00:59:47 -07:00
Krishnan Parthasarathi
d920e2b34b
Add support to batch-expire jobs ( #4677 )
2023-12-02 03:24:10 -08:00
Harshavardhana
fe05b5bb42
fix: avoid crash with --stats -a ( #4765 )
2023-11-16 16:43:30 -08:00
Harshavardhana
8c8e625217
trace statistics add MaxTTFB column ( #4757 )
2023-11-13 02:26:37 -08:00
Harshavardhana
97cc12fdc5
Add average TTFB for statistics ( #4726 )
2023-10-23 22:18:28 -07:00
Harshavardhana
903a1f202c
add support for min/max time in 'trace --stats' ( #4723 )
...
also change the UI to match a k8s'isk style
output.
```
mc admin trace play/ --stats
Duration: 12s ●∙∙
Call Count RPM Avg Time Min Time Max Time Errors RX Avg TX Avg
s3.GetBucketLocation 22 (48.9%) 107.8 431µs 205.196µs 1.360389ms 0 135 B 137 B
s3.ListObjectsV2 22 (48.9%) 107.8 1.615ms 520.96µs 6.821432ms 0 135 B 2.3 KiB
s3.ListBuckets 1 (2.2%) 4.9 2.302ms 2.301694ms 2.301694ms 0 135 B 29 KiB
```
2023-10-18 11:09:29 -07:00
Klaus Post
0793ce767b
Add --stats to traces ( #4669 )
...
Allows collecting live stats of all traced subsystems.
Examples:
```
λ mc admin trace --stats play
+----------------------------+-------------+------+-----------+--------+---------+---------+
| Call | Count | RPM | Avg Time | Errors | RX Avg | TX Avg |
| s3.GetObject | 247 (63.3%) | 82.5 | 2.391ms | 0 | 133 B | 179 KiB |
| s3.HeadBucket | 102 (26.2%) | 34.1 | 1.114ms | 0 | 147 B | 0 B |
| s3.GetBucketLocation | 18 (4.6%) | 6.0 | 1.942ms | 0 | 147 B | 149 B |
| s3.PutBucket | 6 (1.5%) | 2.0 | 4.146ms | 0 | 151 B | 0 B |
| s3.ListObjectsV1 | 4 (1.0%) | 1.3 | 4.276ms | 0 | 124 B | 577 B |
| s3.ListBuckets | 3 (0.8%) | 1.0 | 15.312ms | 0 | 135 B | 82 KiB |
| s3.PutObject | 3 (0.8%) | 1.0 | 4.304ms | 0 | 14 KiB | 0 B |
| s3.DeleteObject | 2 (0.5%) | 0.7 | 407µs | 0 | 88 B | 0 B |
| s3.HeadObject | 2 (0.5%) | 0.7 | 1.36ms | 0 | 108 B | 0 B |
| s3.CompleteMultipartUpload | 1 (0.3%) | 0.3 | 7.943ms | 0 | 301 B | 449 B |
| s3.NewMultipartUpload | 1 (0.3%) | 0.3 | 4.895ms | 0 | 160 B | 383 B |
| s3.PutObjectPart | 1 (0.3%) | 0.3 | 103.782ms | 0 | 8.8 MiB | 0 B |
+----------------------------+-------------+------+-----------+--------+---------+---------+
λ mc admin trace --stats -call=storage play
+------------------------------+---------------+----------+----------+--------+--------+--------+
| Call | Count | RPM | Avg Time | Errors | RX Avg | TX Avg |
| storage.ReadXL | 70780 (33.3%) | 174700.3 | 43µs | 200 | - | - |
| storage.RenameData | 70633 (33.2%) | 174337.5 | 1.165ms | 0 | - | - |
| storage.DiskInfo | 70540 (33.1%) | 174107.9 | 1µs | 0 | - | - |
| storage.ReadVersion | 280 (0.1%) | 691.1 | 70µs | 0 | - | - |
| storage.StatVol | 236 (0.1%) | 582.5 | 13µs | 0 | - | - |
| storage.DeleteAbandonedParts | 140 (0.1%) | 345.6 | 149µs | 0 | - | - |
| storage.CreateFile | 88 (0.0%) | 217.2 | 4.169ms | 0 | - | - |
| storage.ListVols | 88 (0.0%) | 217.2 | 426µs | 0 | - | - |
| storage.ReadFileStream | 18 (0.0%) | 44.4 | 28µs | 0 | - | - |
| storage.VerifyFile | 16 (0.0%) | 39.5 | 2.166ms | 0 | - | - |
+------------------------------+---------------+----------+----------+--------+--------+--------+
```
2023-10-10 10:12:06 -07:00
Harshavardhana
d8ace59107
add 'mc admin trace' filtering based on request queries ( #4704 )
2023-10-02 00:40:19 -07:00
Harshavardhana
3adb6c93fd
hide all old deprecate heal options ( #4682 )
2023-09-18 23:02:58 -07:00
Aditya Manthramurthy
e2056fb057
Update to minio/pkg v2 ( #4674 )
2023-09-02 14:28:03 -07:00
Harshavardhana
3cf3095253
add TTFB as part of 'mc admin trace' in pretty form ( #4648 )
2023-07-31 20:31:06 -07:00
Aditya Manthramurthy
5f39522e69
Add response details for policy attach/detach cmd ( #4602 )
...
For internal IDP.
Also updates madmin-go to v3 as part of this change
- Temporarily disable test_admin_users until minio side fix is merged
2023-06-19 12:31:19 -07:00
Harshavardhana
5e4ab1ec48
add ftp trace support ( #4590 )
2023-06-06 06:48:56 -07:00
Poorna
e94ce35608
Add trace for ilm call type ( #4538 )
2023-04-08 11:37:17 -07:00
Poorna
b5768efc96
Add trace options for batch key rotation ( #4507 )
2023-04-04 14:00:02 -07:00
Klaus Post
feccaabc78
Print custom info in trace ( #4476 )
2023-02-21 17:04:31 +05:30
Anis Elleuch
663e082161
Fix parsing --response-duration in trace command ( #4466 )
2023-02-03 21:40:24 -08:00
Anis Elleuch
a933ca5ae6
trace: Add bootstrap tracing type ( #4416 )
2023-01-06 11:36:11 -08:00
dorman
176072dee4
trace: Add input and output filters options ( #4353 )
2022-12-24 07:21:38 -08:00
Krishnan Parthasarathi
2166c63e8f
admin-trace: Fix support for tracing scanner calls ( #4417 )
2022-12-22 10:58:17 -08:00
Klaus Post
c18faa5ff6
Add full list of call types. ( #4401 )
2022-12-12 11:13:00 -08:00
Anis Elleuch
c4c0547a57
trace: Add two validations for passed arguments ( #4399 )
2022-12-12 08:43:09 -08:00
Klaus Post
52a931bfa7
Add staticcheck to CI ( #4386 )
2022-12-05 08:32:04 -08:00
Aditya Manthramurthy
854b4f123f
Bump up madmin-go to v2 ( #4382 )
2022-12-01 10:41:14 -08:00
Poorna
b38e144774
Add site resync commands ( #4269 )
2022-11-18 12:14:05 -08:00
adfost
fd7142e223
update license headers to 2022 ( #4360 )
2022-11-14 18:38:39 -08:00
Harshavardhana
cf7e0ae050
generalize input for ctx.Command.Name ( #4338 )
2022-11-01 08:04:26 -07:00
Krishnan Parthasarathi
5b0fc3ef94
feat: admin-rebalance subcommands ( #4186 )
2022-10-29 22:10:17 -07:00
Harshavardhana
27322636ae
feat: Introduce 'mc batch' command ( #4225 )
2022-10-09 14:10:59 -07:00
Harshavardhana
2f1d44eee2
convert tabs to spaces in all commands ( #4275 )
2022-09-29 11:14:57 -07:00
Anis Elleuch
f85086b153
Use a pager for help output ( #4245 )
2022-09-28 11:28:02 -07:00
Anis Elleuch
145da32419
Add --request-header to trace cmd to filter http requests ( #4238 )
...
e.g:
`mc admin trace --request-header "User-Agent: *hadoop*" <alias>`
to print all S3 requests sent by Hadoop
`mc admin trace --request-header "!X-Minio-Source*" <alias>`
to avoid printing S3 requests related to replication
2022-09-12 10:12:06 -07:00
Klaus Post
2c9a733cae
Add mc admin trace --call=healing ( #4229 )
...
Provide healing operation traces.
See https://github.com/minio/minio/pull/15616 for basic implementation.
2022-08-31 08:17:02 -07:00
Harshavardhana
41e6cc5626
fix: use DurationFlag to response-threshold ( #4227 )
...
Also add missing flags from 'mc admin scanner trace'
2022-08-30 08:15:54 -07:00
Krishnan Parthasarathi
d691fc4c9f
Add trace support for decommissioning ( #4195 )
2022-08-10 10:14:21 -07:00
Harshavardhana
7838be4a7f
apply --status-code only for HTTP traces if present ( #4189 )
...
fixes #4188
2022-08-08 08:33:23 -07:00
Klaus Post
48e9183957
Move mc admin top scanner -> mc admin scanner info ( #4151 )
...
Also, add `mc admin scanner trace` which gives a simplified trace
with only relevant options.
2022-07-15 02:20:55 -07:00
Klaus Post
82a6c4f20f
Add admin top scanner & trace --call=scanner ( #4130 )
...
mc: Add admin top scanner & trace --call=scanner
Examples:
```
λ mc admin top scanner myminio
Scanner Activity: ●∙∙
+-------------------------------------------------------------------------------------------------------+
| Last full scan time: 0d0h5m; Estimated 7358.44/month |
| Current cycle: 129439; Started: 2022-06-22 18:01:50.5775259 +0200 CEST |
| Active disks: 1 |
| -------------------------------------- Last Minute Statistics --------------------------------------- |
| Objects Scanned: 101 objects; Avg: 3.775ms; Rate: 145440/day |
| Versions Scanned: 10001 versions; Avg: 31.998µs; Rate: 14401440/day |
| Versions Heal Checked: 200 versions; Avg: 1.394ms; Rate: 288000/day |
| Read Metadata: 101 objects; Avg: 0ms |
| ILM checks: 10001 versions; Avg: 408ns |
| Check Replication: 10001 versions; Avg: 3.646µs |
| Verify Deleted: 0 folders; Avg: 0ms |
| Yield: 59.083s total; Avg: 584.978ms/obj |
| ------------------------------------- Currently Scanning Paths -------------------------------------- |
| 127.0.0.1:9002/d:/data/distxl-plain/s2/d1/warp-benchmark-bucket/qwrShN3c/405.M(nsCrNI(PZhkAqA.rnd |
+-------------------------------------------------------------------------------------------------------+
```
```
λ mc admin trace --call=scanner myminio
2022-06-22T18:04:12.705 [SCANNER] scanner.ScanFolder 127.0.0.1:9002 d:\data\distxl-plain\s2\d4 warp-benchmark-bucket/ajJkH6Ic/2425.mLeCC9gkg)7aQxfJ.rnd 15.2171467s
2022-06-22T18:04:28.022 [SCANNER] scanner.ScanObject 127.0.0.1:9002 d:\data\distxl-plain\s2\d4 ajJkH6Ic/304.SAWTkh9)WJrnZF7l.rnd/xl.meta 1.0691ms
2022-06-22T18:04:27.922 [SCANNER] scanner.ScanFolder 127.0.0.1:9002 d:\data\distxl-plain\s2\d4 warp-benchmark-bucket/ajJkH6Ic/304.SAWTkh9)WJrnZF7l.rnd 209.3969ms
2022-06-22T18:04:28.232 [SCANNER] scanner.ScanObject 127.0.0.1:9002 d:\data\distxl-plain\s2\d4 ajJkH6Ic/405.(kO1pyUPMdhsaXev.rnd/xl.meta 1.0531ms
2022-06-22T18:04:28.131 [SCANNER] scanner.ScanFolder 127.0.0.1:9002 d:\data\distxl-plain\s2\d4 warp-benchmark-bucket/ajJkH6Ic/405.(kO1pyUPMdhsaXev.rnd 207.7757ms
2022-06-22T18:04:28.440 [SCANNER] scanner.ScanObject 127.0.0.1:9002 d:\data\distxl-plain\s2\d4 ajJkH6Ic/506.E726EiB(GNLfSLro.rnd/xl.meta 1.0317ms
...
```
2022-07-01 16:04:04 -07:00
Harshavardhana
e19fcb8daf
feat: Add 'mc admin top api' for realtime view ( #4112 )
...
This is just a beginning but this can be enhanced further
to have different views of S3 calls, internal calls, and
disk/storage calls.
2022-06-10 11:02:26 -07:00
Anis Elleuch
8ca59cdebf
trace: Show milliseconds in trace output ( #4083 )
...
Trace output without --verbose was always missing milliseconds precision
due to a typo in the code. This commit fixes the issue.
2022-05-11 10:17:36 -07:00
Poorna
d6ffdbc8fb
admin trace: convert trace type to string in json fmt ( #4029 )
2022-03-25 01:52:53 -07:00
Harshavardhana
a59f9e4d30
add gofumpt support, automated cleanup ( #3911 )
2022-01-06 10:55:40 -08:00