mc du will always count the size of all objects under a specified
path, du -r will show the disk usage in a more detailed fashion, but if
not specified, let's do a recursive LIST call instead of calling du()
multiple times.
Co-authored-by: Klaus Post <klauspost@gmail.com>
Print '...' instead, for a distributed cluster, other characters will
follow to indicate the status of the restart command.
Co-authored-by: Anis Elleuch <anis@min.io>
it latest release and master `mc admin bucket remote add` cannot
parse accesskeys/secretkeys with special characters such as `@`,
this is due to an incorrect implementation.
use the technique used in parsing MC_HOST_alias here to allow
for more complex use-cases.
* Add --schedule flag to subnet health command
If passed along with --license, the health diagnostics will be executed
and uploaded to Subnet at given schedule (in days).
Also, delete the generated file after succesful upload to subnet.
* Add --name flag to subnet health command
If passed along with the --license flag, this will be passed as the name
of the cluster in the subnet upload request. Subnet uses this only for
the 1st upload of the given cluster.
If not passed, the alias of the cluster will be passed as default value
for the cluster name.
Sometimes passwords are auto-generated, print them so the user can
easily copy it somewhere.
Signed-off-by: Anis Elleuch <anis@min.io>
Co-authored-by: Anis Elleuch <anis@min.io>
mc admin restart service clearly indicates to the user that restarting
the process is started and also shows progress using:
`.` in red to indicate the cluster is still offline
`!` in yellow to indicate the cluster is up but still initializing
Currently trace filters are like OR operations, but I think in debugging
we want AND instead.
Currently, --status-code 503 --path 'bucket/path' will show 503 requests or
requests with 'bucket/path', this PR will require having both conditions
in the requests in order to be shown in the trace.
In case of single server setups, the network performance data is empty.
Because of this, the condition that indicates that the network test step
is over never evaluates to true and hence the spinner doesn't finish
(doesn't show the tickmark indicating the step has completed).
While this is a nigligible issue in normal execution of the subnet
health command, it has a weird side effect when the `--license` flag is
passed. In such cases, the network test spinner finishes _after_ the
message about succesful generation of the report is printed.
Ensuring that all the spinners are stopped explicitly after the api call
returns resolves this issue.
Add an optional text flag `license` to the `subnet health`
command. If this flag is passed, upload the generated health report to
Subnet by passing the license key as auth.
* mirror: Add monitoring endpoint for mirroring operations
The following are the added metrics:
mc_mirror_failed_s3ops 3
mc_mirror_time_last_activity 9
mc_mirror_total_restarts 3
mc_mirror_total_s3ops 199920
Also, --watch automatically restarted if an error is detected
Co-authored-by: Anis Elleuch <anis@min.io>