Commit Graph
1399 Commits
Author SHA1 Message Date
Shubhendu 56d84e64b1 Option to enable disable ILM expiry for site replication (#4698)
Added options `replicate-ilm-expiry` and `disable-ilm-expiry-replication`
for `mc admin replicate add` and `mc admin replicate update` commands
respectively.

Signed-off-by: Shubhendu Ram Tripathi <shubhendu@minio.io>
2023-11-21 22:17:38 -08:00
Shireesh Anjal 937b34616f Do not fail if deployment id not found in license (#4767)
SUBNET is being enhanced to generate account-level licenses instead of
deployment-level. So newer licenses may not contain the deployment id.

So validate the deployment id against the cluster only if present in the
license.
2023-11-20 08:30:59 -08:00
Harshavardhana fe05b5bb42 fix: avoid crash with --stats -a (#4765) 2023-11-16 16:43:30 -08:00
Harshavardhana 4724c024c6 support missing role-arn and role-session-name (#4763) 2023-11-15 14:45:58 -08:00
Pedro Juarez 6c9cdc27bc Refactor methods that initialize client to reuse code blocks (#4755) 2023-11-15 13:20:52 -08:00
jiuker c3ebf165ee fix: Incorrect batch status Throughput entry (#4758)
fixes https://github.com/minio/mc/issues/4756
2023-11-13 10:10:39 -08:00
Harshavardhana 5124a01ae7 add 'alias export' command (#4759) 2023-11-13 03:20:16 -08:00
Harshavardhana 8c8e625217 trace statistics add MaxTTFB column (#4757) 2023-11-13 02:26:37 -08:00
Pedro Juarez b1d4341fcb add STS support for mc admin command (#4754) 2023-11-11 23:08:33 -08:00
Krishnan Parthasarathi d3773744a6 Transition doesn't support NewerNoncurrentVersions (#4750)
hiding --noncurrent-transition-newer flag to avoid confusion to MinIO
users.
2023-11-11 12:58:33 -08:00
Daryl White 56803d2167 Updating example with correct flag (#4751) 2023-11-10 13:37:17 -08:00
Shireesh Anjal a5adf14769 Add anonymize flag to support-diag (#4742) 2023-11-08 01:36:09 -08:00
Daniel Valdivia 011c61b254 Add support for STS credentials (#4744) 2023-11-05 20:19:23 -08:00
Shireesh Anjal b7dc9cc724 Show net info spinner in health diagnostics (#4741) 2023-11-02 09:52:34 -07:00
Harshavardhana 9f2fb2b6a9 upgrade madmin-go/v3 (#4738) 2023-10-30 11:43:32 -07:00
Sveinn b82f6c60b2 Removing un-used variables and fixing an error condition (#4737) 2023-10-30 08:43:44 -07:00
Harshavardhana 01df0ff497 upgrade madmin-go/v3 (#4735) 2023-10-28 14:24:39 -07:00
Taran Pelkey c1f61a1e06 Add idp ldap accesskey (#4686) 2023-10-26 14:23:45 -07:00
Harshavardhana 1bcbe9019d add top locks owner as well (#4733)
```
Since                 Type    Owner                 Resource
13 hours ago          WRITE   10.68.100.18:9000     .minio.sys/leader.lock
13 hours ago          WRITE   10.68.100.18:9000     .minio.sys/callhome/runCallhome.lock
13 hours ago          WRITE   10.68.100.23:9000     .minio.sys/new-drive-healing/0/0
...
...
```
2023-10-26 07:52:18 -07:00
r-sc 75e722216a fix: print updates/merge multiple policy for a user (#4691) 2023-10-24 14:42:22 -07:00
Shireesh Anjal 39a57a14b8 revamp spinner in mc support diag (#4727)
The current spinner mechanism looks for the data categories (CPU,
drives, memory, etc) sequentially. If any of the category's data is not
received, it gets stuck there.

If a new data category is introduced without changing the version of the
HealthInfo struct, then `mc support diag` can get stuck for the new
category when talking to an older version of minio.

So instead of looking for the categories one by one, start a spinner for
each category at the beginning, and mark it as done as soon as the
corresponding data is received. When the last category (admin info) is
received, mark any pending category as done so that the command
continues with the rest of the processing.
2023-10-24 00:17:17 -07:00
Harshavardhana 97cc12fdc5 Add average TTFB for statistics (#4726) 2023-10-23 22:18:28 -07:00
Andreas Auernhammer 0440badc41 use ubi-micro instead of ubi-minimal (#4725)
This commit replaces the UBI minimal with the
small and less bloated UBI micro image.

This reduces noise from security scanners flagging
components not used by mc and reduces the overall
size of the container.

Signed-off-by: Andreas Auernhammer <github@aead.dev>
2023-10-23 21:51:09 -07:00
Poorna 2c6ae7d1f7 Add --bucket-bandwidth flag to mc admin replicate update (#4687)
to allow default bucket bandwidth to be set in site replication
2023-10-23 15:46:02 -07:00
Sveinn eb6f304e2e Created a retry mechanism and added a --retry flag to mc mirror (#4715) 2023-10-20 02:03:26 -07:00
Klaus Post d2a2bdb07b Fix missing colours on windows (#4721) 2023-10-19 11:31:34 -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
Harshavardhana 062f28c9cc allow 'mc' flags to have ENV equivalent (#4720)
it simplifies the codebase a bit and also
allows for `mc` to easily be configured in
containerized environments.
2023-10-16 22:51:25 -07:00
Sveinn 377b71641b Preventing duplicate transfers during cp and mv when prefixes overlap (#4719) 2023-10-16 09:56:30 -07:00
Anis Eleuch d158b9a478 prom: Allow insecure TLS connections if --insecure is provided (#4716) 2023-10-13 18:57:03 -07:00
Sveinn 87d6cd2d4f Validation optimization - reduce HEAD calls during cp and mv operations (#4710) 2023-10-12 11:30:11 -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
Shireesh Anjal eca8310ac8 Add support for resource metrics (#4689) 2023-10-03 23:52:56 -07:00
Anis Eleuch 4be483de6d scanner: Limit the active disks if no enough term space (#4705)
If the terminal height is not enough to show the number of active disks,
which is likely the case in a large deployment, print only a few entries
until the number of lines reaches the terminal height.
2023-10-03 08:31:31 -07:00
Anis Eleuch 67fa4aa7a3 Fix mirror stats with --quiet flag (#4703) 2023-10-02 08:03:54 -06:00
Harshavardhana d8ace59107 add 'mc admin trace' filtering based on request queries (#4704) 2023-10-02 00:40:19 -07:00
Armin Weißer d47a2ba53a Add min, max and total request time to top api command (#4702)
Add min and max request time to top api command
2023-09-29 09:41:22 -07:00
Anis Eleuch 1a65176cee perf net: Do not show Err: tag if there is no error (#4700) 2023-09-28 15:59:55 -07:00
Harshavardhana 103272612a change 6->3 decimal resolution, to conserve terminal realestate 2023-09-28 10:48:30 -07:00
Armin Weißer c3c899c365 Add ART and ATP to 'support top api' command (#4699)
Average Request Time (ART) = Total Duration / Calls
Average Throughput (ATP) = (RX+TX) / Total Duration
2023-09-28 08:33:49 -07:00
Taran Pelkey 618512cc92 broaden reach of --no-color flag (#4697) 2023-09-25 23:10:43 -07:00
Klaus Post 21ee2bd432 Show heal checks performed on missing (#4692)
Add stats for objects missing on current disk, but healed.

Visualizes stats for https://github.com/minio/minio/pull/18076
2023-09-25 10:32:06 -07:00
Anis Eleuch 38b8665e9e perf net: Show the error with the bandwidth results (#4688)
An error in the result does not mean that the whole perf net test
failed, we can still show some results, with an error as well, to be
less confusing to the user.
2023-09-20 08:22:31 -07:00
Harshavardhana 79df949087 add exclude-storageclass flag for mirror (#4684)
this option exists to skip tiered objects such as

- "GLACIER"
- "DEEP_ARCHIVE"

users can use this option when migrating awss3 -> minio

```
mc mirror --exclude-storageclass GLACIER \
   --exclude-storageclass DEEP_ARCHIVE s3/bucket minio/bucket
```
2023-09-19 22:47:55 -07:00
r-sc f551d4b14d Support multiple policies in 'mc admin user policy' command (#4685) 2023-09-19 09:27:38 -07:00
Harshavardhana 3adb6c93fd hide all old deprecate heal options (#4682) 2023-09-18 23:02:58 -07:00
Harshavardhana 9dcef8825f fix: alignment issues in help for svacct sub-commands (#4676) 2023-09-07 15:48:55 -07:00
Harshavardhana e088bd45a9 fix: alignment in 'replicate status' help (#4675) 2023-09-07 01:01:36 -07:00
Aditya Manthramurthy e2056fb057 Update to minio/pkg v2 (#4674) 2023-09-02 14:28:03 -07:00
Poorna 5a5a9973c3 Change replicate status metrics to show additional info (#4582)
in `mc replicate status` for bucket replication
and `mc admin replicate status` for site replication.
2023-08-30 01:02:26 -07:00