1
0
mirror of https://github.com/minio/docs.git synced 2025-07-30 07:03:26 +03:00

mc admin speedtest and mc ping updates (#723)

- Adds `mc ping` doc

Closes #538 

- Deprecates `mc admin speedtest` to `mc support perf`

Closes #678
This commit is contained in:
Daryl White
2023-02-15 11:37:11 -06:00
committed by GitHub
parent 38c06fffeb
commit 38bf361add
6 changed files with 165 additions and 9 deletions

View File

@ -10,6 +10,12 @@
.. mc:: mc admin speedtest
.. versionchanged:: RELEASE.2022-07-24T02-25-13Z
.. important::
The ``mc admin speedtest`` function has moved to the :mc:`mc support perf` command.
Description
-----------

View File

@ -120,11 +120,6 @@ The following table lists :mc:`mc admin` commands:
:start-after: start-mc-admin-service-desc
:end-before: end-mc-admin-service-desc
* - :mc-cmd:`mc admin speedtest`
- .. include:: /reference/minio-mc-admin/mc-admin-speedtest.rst
:start-after: start-mc-admin-speedtest-desc
:end-before: end-mc-admin-speedtest-desc
* - :mc-cmd:`mc admin top`
- .. include:: /reference/minio-mc-admin/mc-admin-top.rst
:start-after: start-mc-admin-top-desc

View File

@ -72,6 +72,10 @@ Table of Deprecated Admin Commands
- :mc:`mc admin replicate rm`
- mc RELEASE.2023-01-11T03-14-16Z
* - ``mc admin speedtest``
- :mc:`mc support perf`
- mc RELEASE.2022-07-24T02-25-13Z
* - ``mc admin tier add``
- :mc:`mc ilm tier add`
- mc RELEASE.2022-12-24T15-21-38Z
@ -104,10 +108,6 @@ Table of Deprecated Admin Commands
- :mc-cmd:`mc quota clear`, :mc-cmd:`mc quota info`, :mc-cmd:`mc quota set`
- mc RELEASE.2022-12-13T00-23-28Z
.. toctree::
:titlesonly:
:hidden:
@ -120,3 +120,4 @@ Table of Deprecated Admin Commands
/reference/deprecated/mc-ilm-rm
/reference/deprecated/mc-admin-tier
/reference/deprecated/mc-admin-bucket-quota
/reference/deprecated/mc-admin-speedtest

View File

@ -285,6 +285,11 @@ The following table lists :mc-cmd:`mc` commands:
:start-after: start-mc-od-desc
:end-before: end-mc-od-desc
* - :mc:`mc ping`
- .. include:: /reference/minio-mc/mc-ping.rst
:start-after: start-mc-ping-desc
:end-before: end-mc-ping-desc
* - :mc:`mc pipe`
- .. include:: /reference/minio-mc/mc-pipe.rst
:start-after: start-mc-pipe-desc
@ -545,6 +550,7 @@ All :ref:`commands <minio-mc-commands>` support the following global options:
/reference/minio-mc/mc-mirror
/reference/minio-mc/mc-mv
/reference/minio-mc/mc-od
/reference/minio-mc/mc-ping
/reference/minio-mc/mc-pipe
/reference/minio-mc/mc-quota
/reference/minio-mc/mc-rb

View File

@ -0,0 +1,144 @@
===========
``mc ping``
===========
.. default-domain:: minio
.. contents:: Table of Contents
:local:
:depth: 2
.. mc:: mc ping
Syntax
------
.. start-mc-pipe-desc
The :mc:`mc ping` command performs a liveness check on a specified target.
.. end-mc-pipe-desc
.. tab-set::
.. tab-item:: EXAMPLE
The following sends a response request to the target(s) and outputs the minimum, maximum, average, and roundtrip times of the response, as well as the number of errors encountered when processing the request.
.. code-block:: shell
:class: copyable
mc ping play --count 5
The command pings the deployment at the :mc:`~mc alias` ``play`` for five cycles.
The output resembles the following:
.. code-block:: shell
1: https://play.min.io min=213.00ms max=213.00ms average=213.00ms errors=0 roundtrip=213.00ms
2: https://play.min.io min=67.15ms max=213.00ms average=140.07ms errors=0 roundtrip=67.15ms
3: https://play.min.io min=67.15ms max=213.00ms average=115.85ms errors=0 roundtrip=67.41ms
4: https://play.min.io min=61.26ms max=213.00ms average=102.20ms errors=0 roundtrip=61.26ms
5: https://play.min.io min=61.26ms max=213.00ms average=95.03ms errors=0 roundtrip=66.36ms
.. tab-item:: SYNTAX
The command has the following syntax:
.. code-block:: shell
:class: copyable
mc [GLOBALFLAGS] ping \
TARGET \
[--count, -c value] \
[--error-count, -e value] \
[--interval, -i value] \
[--distributed, -a value]
.. include:: /includes/common-minio-mc.rst
:start-after: start-minio-syntax
:end-before: end-minio-syntax
Parameters
~~~~~~~~~~
.. mc-cmd:: TARGET
:required:
The full path to the :ref:`alias <minio-mc-alias>` or prefix where the command should run.
.. mc-cmd:: --count
:optional:
Specify the number of times to perform the check.
If not specified, the liveness check performs continuously until stopped.
.. mc-cmd:: --error-count
:optional:
Specify a number of errors to receive before exiting.
For example, to stop the ping process after receiving five errors, use
.. code-block:: shell
:class: copyable
mc ping TARGET -e 5
.. mc-cmd:: --interval
:optional:
The length of time in seconds to wait between requests.
By default, the command waits 1 second between requests.
.. mc-cmd:: --distributed
:optional:
Send requests to all servers in the MinIO cluster.
.. note::
Use this option for distributed deployments where you have direct access to each node or pod.
This flag does not work when nodes are placed behind a service, such as a load balancer.
Global Flags
~~~~~~~~~~~~
.. include:: /includes/common-minio-mc.rst
:start-after: start-minio-mc-globals
:end-before: end-minio-mc-globals
Examples
--------
Return Latency and Liveness for 5 Requests
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The following command sends a liveness check for a deployment with the alias ``myminio`` five times, outputs the result of each check, then ends.
.. code-block:: shell
:class: copyable
mc ping myminio --count 5
Send Liveness Checks Repeatedly with 5 Minute Wait Between Each Request
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The following command sends continuous liveness check requests with an interval of 5 minutes (300 seconds) between each request.
.. code-block:: shell
:class: copyable
mc ping myminio --interval 300
End Liveness Checks for Error Counts Greater Than 20
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The following command sends continuous liveness checks until 20 errors have been encountered:
.. code-block:: shell
:class: copyable
mc ping myminio --error-count 20

View File

@ -10,6 +10,10 @@
.. mc:: mc support perf
.. versionchanged:: RELEASE.2022-07-24T02-25-13Z
``mc support perf`` replaces the ``mc admin speedtest`` command.
Description
-----------