Aditya Manthramurthy
854b4f123f
Bump up madmin-go to v2 ( #4382 )
2022-12-01 10:41:14 -08:00
adfost
fd7142e223
update license headers to 2022 ( #4360 )
2022-11-14 18:38:39 -08:00
Shireesh Anjal
81c04723f9
Print license info table with solid lines ( #4301 )
2022-10-17 09:44:34 -07:00
Harshavardhana
b34681d662
fix: use deadlineconn properly ( #4249 )
...
PR #4164 didn't use the set deadlines properly
2022-09-14 08:15:37 -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
Praveen raj Mani
c29c4a38a6
Implement mc ready to check if the cluster is ready or not ( #4101 )
...
Also adds option to check if the cluster has enough read quorum and if
the cluster is taken down for any maintenance.
Uses madmin.AnonymousClient for invoking the requests
2022-07-01 12:02:25 -07:00
Harshavardhana
1402987ccb
change license to AGPLv3
2021-05-11 17:45:08 -07:00
Harshavardhana
6c3ac00e18
update madmin to github.com/minio/madmin-go ( #3710 )
2021-05-06 13:33:17 -07:00
Anis Elleuch
90dc31f6ba
Move from mc config host to alias command ( #3311 )
...
```
mc alias set
alias remove
alias list
```
are new commands that replace mc config host sub-commands.
mc config host will still be available but hidden for backward
compatiblity. The JSON output is also kept if the user is running mc
config host command.
2020-07-28 10:26:41 -07:00
Anis Elleuch
a419bb4130
Use minio-go v7 and madmin master ( #3295 )
2020-07-14 11:15:19 -07:00
Harshavardhana
fbb7d75c1c
support proper proxy for all transports ( #3290 )
...
fixes #3225
2020-07-07 17:07:49 -07:00
Harshavardhana
a62a539399
fix: support STS for admin commands ( #3264 )
2020-06-19 12:37:57 -07:00
Harshavardhana
5c4add2000
optimize client admin transport ( #3168 )
2020-04-16 18:24:11 -07:00
Daniel Valdivia
4d36c1f8b8
Make NewS3Config and NewAdminFactory Public ( #3138 )
2020-04-02 19:41:31 -07:00
poornas
1dd2b4494d
Fix error message wording in mc admin commands ( #2887 )
2019-09-06 17:09:44 -07:00
ebozduman
83a9d8b91d
Adds missing codebase MinIO and min.io changes ( #2745 )
2019-04-16 22:31:54 -07:00
Harshavardhana
d4981656d3
Remove response timeout for admin operations ( #2390 )
2018-02-13 15:40:46 -08:00
A. Elleuch
99ee2a5042
Refactor {build,new}S3Config to remove a duplicate code ( #2329 )
2018-01-24 12:06:34 -08:00
Harshavardhana
8fbbd0ee83
Fix and refactor MC_HOSTS_ env handling code ( #2365 )
...
Existing MC_HOSTS_<alias> was incorrectly placed
inside s3Config initialization code path which
leads to a situation where we loose the URL path
information.
Fixes #2364
2018-01-19 18:29:28 -08:00
Aditya Manthramurthy
ca96cfc6e6
Move pkg/probe from vendor dir to package dir ( #2236 )
...
The probe package is no longer available in the Minio server
repo. This change just moves probe from the vendor directory to its
own dir under `pkg`.
This is a maintenance fix.
2017-08-14 11:13:38 -07:00
Anis Elleuch
973dc13cc0
admin: Set 5 min timeout for header response ( #1982 )
...
For admin management API requests, we set 5 min as default value
2017-01-24 23:05:19 +01:00
Anis Elleuch
caf6bfb76f
admin: service status uses new response format ( #1979 )
...
server & service fields are added to JSON response
2017-01-23 17:01:21 -08:00
Harshavardhana
76180184a5
client: S3 and Admin clients should have TLSConfig. ( #1977 )
...
TLSConfig should be allocated regardless of the
URL scheme so that the re-direction works properly.
Without this change if a server is configured with
self signed certs redirection would fail with
```
x509: certificate signed by unknown authority
```
Allocate TLSConfig always with default values.
2017-01-23 14:38:56 -08:00
Anis Elleuch
94bd9564d0
admin: fatal message for unknown aliases ( #1953 )
...
This change issues a fatal message when the provided alias in cli is not known
2017-01-09 08:47:43 -08:00
Anis Elleuch
c6cb6595be
admin: Simplify client initialization ( #1951 )
...
newAdminClient() is added to simplify initialization and take care of ssl connections
and tracing http request
2017-01-07 16:00:22 -08:00