Skip to content

Commit 672d1b4

Browse files
Merge pull request ceph#64797 from jecluis/wip-mon-stretch-docs
doc: fix formatting, typos in mon elections and stretch mode
2 parents 368a624 + fa8edac commit 672d1b4

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

doc/rados/operations/change-mon-elections.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ election default strategy`` option. This option takes an integer value:
1717
After your cluster has started running, you can change strategies by running a
1818
command of the following form:
1919

20+
.. prompt:: bash $
21+
2022
$ ceph mon set election_strategy {classic|disallow|connectivity}
2123

2224
Choosing a mode

doc/rados/operations/stretch-mode.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,14 +262,14 @@ with the CRUSH topology.
262262
ceph mon enable_stretch_mode e stretch_rule datacenter
263263

264264
When stretch mode is enabled, PGs will become active only when they peer
265-
across CRUSH ``datacenter``s (or across whichever CRUSH bucket type was specified),
265+
across CRUSH ``datacenter`` (or across whichever CRUSH bucket type was specified),
266266
assuming both are available. Pools will increase in size from the default ``3`` to
267267
``4``, and two replicas will be placed at each site. OSDs will be allowed to
268268
connect to Monitors only if they are in the same data center as the Monitors.
269269
New Monitors will not be allowed to join the cluster if they do not specify a
270270
CRUSH location.
271271

272-
If all OSDs and Monitors in one of the ``datacenter``s become inaccessible at once,
272+
If all OSDs and Monitors in one of the ``datacenter`` become inaccessible at once,
273273
the cluster in the surviving ``datacenter`` enters *degraded stretch mode*.
274274
A health state warning will be
275275
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
337337
``size`` or ``min_size``, Ceph will not enter stretch mode. An example of such
338338
a CRUSH rule is given above.
339339

340-
Because stretch mode runs with poos' ``min_size`` set to ``1``
341-
, we recommend enabling stretch mode only when using OSDs on
340+
Because stretch mode runs with pools' ``min_size`` set to ``1``,
341+
we recommend enabling stretch mode only when using OSDs on
342342
SSDs. Hybrid HDD+SSD or HDD-only OSDs are not recommended
343343
due to the long time it takes for them to recover after connectivity between
344344
data centers has been restored. This reduces the potential for data loss.

0 commit comments

Comments
 (0)