doc: Document top command (#2672)
This commit is contained in:
@@ -30,7 +30,7 @@ import (
|
||||
|
||||
var adminTopLocksCmd = cli.Command{
|
||||
Name: "locks",
|
||||
Usage: "Get list of oldest locks on a Minio server/cluster.",
|
||||
Usage: "Get a list of the 10 oldest locks on a MinIO cluster.",
|
||||
Before: setGlobalsFromContext,
|
||||
Action: mainAdminTopLocks,
|
||||
Flags: globalFlags,
|
||||
@@ -44,8 +44,8 @@ FLAGS:
|
||||
{{range .VisibleFlags}}{{.}}
|
||||
{{end}}
|
||||
EXAMPLES:
|
||||
1. Get oldest locks on a Minio server/cluster.
|
||||
$ {{.HelpName}} play/
|
||||
1. Get a list of the 10 oldest locks on a MinIO cluster.
|
||||
$ {{.HelpName}} myminio/
|
||||
|
||||
`,
|
||||
}
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ import "github.com/minio/cli"
|
||||
|
||||
var adminTopCmd = cli.Command{
|
||||
Name: "top",
|
||||
Usage: "command like top in linux",
|
||||
Usage: "provide top like statistics for MinIO",
|
||||
Action: mainAdminTop,
|
||||
Before: setGlobalsFromContext,
|
||||
Flags: globalFlags,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
MinIO Client (mc) provides `admin` sub-command to perform administrative tasks on your MinIO deployments.
|
||||
|
||||
```sh
|
||||
```
|
||||
service stop, restart or get status of minio server
|
||||
info display minio server information
|
||||
user manage users
|
||||
@@ -10,6 +10,7 @@ policy manage canned policies
|
||||
credential change admin server access and secret keys
|
||||
config manage configuration file
|
||||
heal heal disks, buckets and objects on minio server
|
||||
top provide top like statistics for MinIO
|
||||
```
|
||||
|
||||
## 1. Download MinIO Client
|
||||
@@ -221,6 +222,7 @@ Skip SSL certificate verification.
|
||||
|[**credential** - change **admin** server access and secret keys](#credential) |
|
||||
|[**config** - manage server configuration file](#config)|
|
||||
|[**heal** - heal disks, buckets and objects on minio server](#heal) |
|
||||
|[**top** - provide top like statistics for MinIO](#top) |
|
||||
|
||||
<a name="service"></a>
|
||||
### Command `service` - stop, restart or get status of minio server
|
||||
@@ -454,3 +456,25 @@ mc admin heal -r myminio/mybucket
|
||||
```sh
|
||||
mc admin heal -r myminio/mybucket/myobjectprefix
|
||||
```
|
||||
|
||||
<a name="top"></a>
|
||||
### Command `top` - provide top like statistics for MinIO
|
||||
NOTE: This command is only applicable for a distributed MinIO setup. It is not supported on single node and gateway deployments.
|
||||
|
||||
```
|
||||
NAME:
|
||||
mc admin top - provide top like statistics for MinIO
|
||||
|
||||
FLAGS:
|
||||
--help, -h show help
|
||||
|
||||
COMMANDS:
|
||||
locks Get a list of the 10 oldest locks on a MinIO cluster.
|
||||
|
||||
```
|
||||
|
||||
*Example: Get a list of the 10 oldest locks on a distributed MinIO cluster, where 'myminio' is the MinIO cluster alias.*
|
||||
|
||||
```sh
|
||||
mc admin top locks myminio
|
||||
```
|
||||
Reference in New Issue
Block a user