From c1bbe71cebe2b92d9ec576d46417f90d3acdcbcd Mon Sep 17 00:00:00 2001 From: Daryl White <53910321+djwfyi@users.noreply.github.com> Date: Wed, 22 May 2024 13:52:25 -0400 Subject: [PATCH] Adds mc ready to reference docs (#1221) Closes #1188 --- source/glossary.rst | 2 +- source/reference/minio-mc.rst | 6 ++ source/reference/minio-mc/mc-ready.rst | 112 +++++++++++++++++++++++++ 3 files changed, 119 insertions(+), 1 deletion(-) create mode 100644 source/reference/minio-mc/mc-ready.rst diff --git a/source/glossary.rst b/source/glossary.rst index 233d423b..ce4ac1af 100644 --- a/source/glossary.rst +++ b/source/glossary.rst @@ -211,7 +211,7 @@ Glossary read quorum The minimum number of object shards necessary to reconstruct the full object for read operations. - See :ref `minio-ec-basics` for more information. + See :ref:`minio-ec-basics` for more information. replication mirror diff --git a/source/reference/minio-mc.rst b/source/reference/minio-mc.rst index fd38f0f8..7b494ccd 100644 --- a/source/reference/minio-mc.rst +++ b/source/reference/minio-mc.rst @@ -356,6 +356,11 @@ The following table lists :mc-cmd:`mc` commands: :start-after: start-mc-rb-desc :end-before: end-mc-rb-desc + * - :mc:`mc ready` + - .. include:: /reference/minio-mc/mc-ready.rst + :start-after: start-mc-ready-desc + :end-before: end-mc-ready-desc + * - | :mc:`mc replicate add` | :mc:`mc replicate backlog` | :mc:`mc replicate export` @@ -663,6 +668,7 @@ You can also define some of these options using :ref:`Environment Variables ` or prefix where the command should run. + +.. mc-cmd:: --cluster-read + :optional: + + Checks if the cluster has enough :term:`quorum ` to serve ``READ`` requests. + +.. mc-cmd:: --maintenance + :optional: + + Checks if the cluster can maintain read and write quorum if the node for the alias is taken down for maintenance. + + Use an alias for the specific node you expect to take down for maintenance and not an alias set to a load balancer. + +Global Flags +~~~~~~~~~~~~ + +.. include:: /includes/common-minio-mc.rst + :start-after: start-minio-mc-globals + :end-before: end-minio-mc-globals + +Examples +-------- + +Check if the cluster has read quorum +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The following command checks that a deployment has sufficient drives available for read operations. + +.. code-block:: shell + :class: copyable + + mc read myminio --cluster-read + +Check if a cluster is down for maintenance +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The following command checks whether the cluster can maintain read and write quorum during maintenance when the node at alias ``myminio`` is taken down. + +.. code-block:: shell + :class: copyable + + mc ready myminio --maintenance