From fa8edac847d06464c1bf950ce3ff8bfc5d522a61 Mon Sep 17 00:00:00 2001 From: Joao Eduardo Luis Date: Fri, 1 Aug 2025 11:29:03 +0000 Subject: [PATCH] doc: fix formatting, typos in mon elections and stretch mode Signed-off-by: Joao Eduardo Luis --- doc/rados/operations/change-mon-elections.rst | 2 ++ doc/rados/operations/stretch-mode.rst | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/doc/rados/operations/change-mon-elections.rst b/doc/rados/operations/change-mon-elections.rst index 7418ea3633db2..068a1f1983349 100644 --- a/doc/rados/operations/change-mon-elections.rst +++ b/doc/rados/operations/change-mon-elections.rst @@ -17,6 +17,8 @@ election default strategy`` option. This option takes an integer value: After your cluster has started running, you can change strategies by running a command of the following form: +.. prompt:: bash $ + $ ceph mon set election_strategy {classic|disallow|connectivity} Choosing a mode diff --git a/doc/rados/operations/stretch-mode.rst b/doc/rados/operations/stretch-mode.rst index 9d199387f9d03..18008a6994b11 100644 --- a/doc/rados/operations/stretch-mode.rst +++ b/doc/rados/operations/stretch-mode.rst @@ -262,14 +262,14 @@ with the CRUSH topology. ceph mon enable_stretch_mode e stretch_rule datacenter When stretch mode is enabled, PGs will become active only when they peer -across CRUSH ``datacenter``s (or across whichever CRUSH bucket type was specified), +across CRUSH ``datacenter`` (or across whichever CRUSH bucket type was specified), assuming both are available. Pools will increase in size from the default ``3`` to ``4``, and two replicas will be placed at each site. OSDs will be allowed to connect to Monitors only if they are in the same data center as the Monitors. New Monitors will not be allowed to join the cluster if they do not specify a CRUSH location. -If all OSDs and Monitors in one of the ``datacenter``s become inaccessible at once, +If all OSDs and Monitors in one of the ``datacenter`` become inaccessible at once, the cluster in the surviving ``datacenter`` enters *degraded stretch mode*. A health state warning will be raised, pools' ``min_size`` will be reduced to ``1``, and the cluster will be @@ -337,8 +337,8 @@ each data center. If pools exist in the cluster that do not have the default ``size`` or ``min_size``, Ceph will not enter stretch mode. An example of such a CRUSH rule is given above. -Because stretch mode runs with poos' ``min_size`` set to ``1`` -, we recommend enabling stretch mode only when using OSDs on +Because stretch mode runs with pools' ``min_size`` set to ``1``, +we recommend enabling stretch mode only when using OSDs on SSDs. Hybrid HDD+SSD or HDD-only OSDs are not recommended due to the long time it takes for them to recover after connectivity between data centers has been restored. This reduces the potential for data loss. -- 2.39.5