]> git.proxmox.com Git - ceph.git/blob - ceph/doc/rados/configuration/mon-config-ref.rst
add stop-gap to fix compat with CPUs not supporting SSE 4.1
[ceph.git] / ceph / doc / rados / configuration / mon-config-ref.rst
1 .. _monitor-config-reference:
2
3 ==========================
4 Monitor Config Reference
5 ==========================
6
7 Understanding how to configure a :term:`Ceph Monitor` is an important part of
8 building a reliable :term:`Ceph Storage Cluster`. **All Ceph Storage Clusters
9 have at least one monitor**. The monitor complement usually remains fairly
10 consistent, but you can add, remove or replace a monitor in a cluster. See
11 `Adding/Removing a Monitor`_ for details.
12
13
14 .. index:: Ceph Monitor; Paxos
15
16 Background
17 ==========
18
19 Ceph Monitors maintain a "master copy" of the :term:`Cluster Map`.
20
21 The maintenance by Ceph Monitors of a :term:`Cluster Map` makes it possible for
22 a :term:`Ceph Client` to determine the location of all Ceph Monitors, Ceph OSD
23 Daemons, and Ceph Metadata Servers by connecting to one Ceph Monitor and
24 retrieving a current cluster map. Before Ceph Clients can read from or write to
25 Ceph OSD Daemons or Ceph Metadata Servers, they must connect to a Ceph Monitor.
26 When a Ceph client has a current copy of the cluster map and the CRUSH
27 algorithm, it can compute the location for any RADOS object within in the
28 cluster. This ability to compute the locations of objects makes it possible for
29 Ceph Clients to talk directly to Ceph OSD Daemons. This direct communication
30 with Ceph OSD Daemons represents an improvment upon traditional storage
31 architectures in which clients were required to communicate with a central
32 component, and that improvment contributes to Ceph's high scalability and
33 performance. See `Scalability and High Availability`_ for additional details.
34
35 The Ceph Monitor's primary function is to maintain a master copy of the cluster
36 map. Monitors also provide authentication and logging services. All changes in
37 the monitor services are written by the Ceph Monitor to a single Paxos
38 instance, and Paxos writes the changes to a key/value store for strong
39 consistency. Ceph Monitors are able to query the most recent version of the
40 cluster map during sync operations, and they use the key/value store's
41 snapshots and iterators (using leveldb) to perform store-wide synchronization.
42
43 .. ditaa::
44 /-------------\ /-------------\
45 | Monitor | Write Changes | Paxos |
46 | cCCC +-------------->+ cCCC |
47 | | | |
48 +-------------+ \------+------/
49 | Auth | |
50 +-------------+ | Write Changes
51 | Log | |
52 +-------------+ v
53 | Monitor Map | /------+------\
54 +-------------+ | Key / Value |
55 | OSD Map | | Store |
56 +-------------+ | cCCC |
57 | PG Map | \------+------/
58 +-------------+ ^
59 | MDS Map | | Read Changes
60 +-------------+ |
61 | cCCC |*---------------------+
62 \-------------/
63
64 .. index:: Ceph Monitor; cluster map
65
66 Cluster Maps
67 ------------
68
69 The cluster map is a composite of maps, including the monitor map, the OSD map,
70 the placement group map and the metadata server map. The cluster map tracks a
71 number of important things: which processes are ``in`` the Ceph Storage Cluster;
72 which processes that are ``in`` the Ceph Storage Cluster are ``up`` and running
73 or ``down``; whether, the placement groups are ``active`` or ``inactive``, and
74 ``clean`` or in some other state; and, other details that reflect the current
75 state of the cluster such as the total amount of storage space, and the amount
76 of storage used.
77
78 When there is a significant change in the state of the cluster--e.g., a Ceph OSD
79 Daemon goes down, a placement group falls into a degraded state, etc.--the
80 cluster map gets updated to reflect the current state of the cluster.
81 Additionally, the Ceph Monitor also maintains a history of the prior states of
82 the cluster. The monitor map, OSD map, placement group map and metadata server
83 map each maintain a history of their map versions. We call each version an
84 "epoch."
85
86 When operating your Ceph Storage Cluster, keeping track of these states is an
87 important part of your system administration duties. See `Monitoring a Cluster`_
88 and `Monitoring OSDs and PGs`_ for additional details.
89
90 .. index:: high availability; quorum
91
92 Monitor Quorum
93 --------------
94
95 Our Configuring ceph section provides a trivial `Ceph configuration file`_ that
96 provides for one monitor in the test cluster. A cluster will run fine with a
97 single monitor; however, **a single monitor is a single-point-of-failure**. To
98 ensure high availability in a production Ceph Storage Cluster, you should run
99 Ceph with multiple monitors so that the failure of a single monitor **WILL NOT**
100 bring down your entire cluster.
101
102 When a Ceph Storage Cluster runs multiple Ceph Monitors for high availability,
103 Ceph Monitors use `Paxos`_ to establish consensus about the master cluster map.
104 A consensus requires a majority of monitors running to establish a quorum for
105 consensus about the cluster map (e.g., 1; 2 out of 3; 3 out of 5; 4 out of 6;
106 etc.).
107
108 .. confval:: mon_force_quorum_join
109
110 .. index:: Ceph Monitor; consistency
111
112 Consistency
113 -----------
114
115 When you add monitor settings to your Ceph configuration file, you need to be
116 aware of some of the architectural aspects of Ceph Monitors. **Ceph imposes
117 strict consistency requirements** for a Ceph monitor when discovering another
118 Ceph Monitor within the cluster. Whereas, Ceph Clients and other Ceph daemons
119 use the Ceph configuration file to discover monitors, monitors discover each
120 other using the monitor map (monmap), not the Ceph configuration file.
121
122 A Ceph Monitor always refers to the local copy of the monmap when discovering
123 other Ceph Monitors in the Ceph Storage Cluster. Using the monmap instead of the
124 Ceph configuration file avoids errors that could break the cluster (e.g., typos
125 in ``ceph.conf`` when specifying a monitor address or port). Since monitors use
126 monmaps for discovery and they share monmaps with clients and other Ceph
127 daemons, **the monmap provides monitors with a strict guarantee that their
128 consensus is valid.**
129
130 Strict consistency also applies to updates to the monmap. As with any other
131 updates on the Ceph Monitor, changes to the monmap always run through a
132 distributed consensus algorithm called `Paxos`_. The Ceph Monitors must agree on
133 each update to the monmap, such as adding or removing a Ceph Monitor, to ensure
134 that each monitor in the quorum has the same version of the monmap. Updates to
135 the monmap are incremental so that Ceph Monitors have the latest agreed upon
136 version, and a set of previous versions. Maintaining a history enables a Ceph
137 Monitor that has an older version of the monmap to catch up with the current
138 state of the Ceph Storage Cluster.
139
140 If Ceph Monitors were to discover each other through the Ceph configuration file
141 instead of through the monmap, additional risks would be introduced because
142 Ceph configuration files are not updated and distributed automatically. Ceph
143 Monitors might inadvertently use an older Ceph configuration file, fail to
144 recognize a Ceph Monitor, fall out of a quorum, or develop a situation where
145 `Paxos`_ is not able to determine the current state of the system accurately.
146
147
148 .. index:: Ceph Monitor; bootstrapping monitors
149
150 Bootstrapping Monitors
151 ----------------------
152
153 In most configuration and deployment cases, tools that deploy Ceph help
154 bootstrap the Ceph Monitors by generating a monitor map for you (e.g.,
155 ``cephadm``, etc). A Ceph Monitor requires a few explicit
156 settings:
157
158 - **Filesystem ID**: The ``fsid`` is the unique identifier for your
159 object store. Since you can run multiple clusters on the same
160 hardware, you must specify the unique ID of the object store when
161 bootstrapping a monitor. Deployment tools usually do this for you
162 (e.g., ``cephadm`` can call a tool like ``uuidgen``), but you
163 may specify the ``fsid`` manually too.
164
165 - **Monitor ID**: A monitor ID is a unique ID assigned to each monitor within
166 the cluster. It is an alphanumeric value, and by convention the identifier
167 usually follows an alphabetical increment (e.g., ``a``, ``b``, etc.). This
168 can be set in a Ceph configuration file (e.g., ``[mon.a]``, ``[mon.b]``, etc.),
169 by a deployment tool, or using the ``ceph`` commandline.
170
171 - **Keys**: The monitor must have secret keys. A deployment tool such as
172 ``cephadm`` usually does this for you, but you may
173 perform this step manually too. See `Monitor Keyrings`_ for details.
174
175 For additional details on bootstrapping, see `Bootstrapping a Monitor`_.
176
177 .. index:: Ceph Monitor; configuring monitors
178
179 Configuring Monitors
180 ====================
181
182 To apply configuration settings to the entire cluster, enter the configuration
183 settings under ``[global]``. To apply configuration settings to all monitors in
184 your cluster, enter the configuration settings under ``[mon]``. To apply
185 configuration settings to specific monitors, specify the monitor instance
186 (e.g., ``[mon.a]``). By convention, monitor instance names use alpha notation.
187
188 .. code-block:: ini
189
190 [global]
191
192 [mon]
193
194 [mon.a]
195
196 [mon.b]
197
198 [mon.c]
199
200
201 Minimum Configuration
202 ---------------------
203
204 The bare minimum monitor settings for a Ceph monitor via the Ceph configuration
205 file include a hostname and a network address for each monitor. You can configure
206 these under ``[mon]`` or under the entry for a specific monitor.
207
208 .. code-block:: ini
209
210 [global]
211 mon_host = 10.0.0.2,10.0.0.3,10.0.0.4
212
213 .. code-block:: ini
214
215 [mon.a]
216 host = hostname1
217 mon_addr = 10.0.0.10:6789
218
219 See the `Network Configuration Reference`_ for details.
220
221 .. note:: This minimum configuration for monitors assumes that a deployment
222 tool generates the ``fsid`` and the ``mon.`` key for you.
223
224 Once you deploy a Ceph cluster, you **SHOULD NOT** change the IP addresses of
225 monitors. However, if you decide to change the monitor's IP address, you
226 must follow a specific procedure. See :ref:`Changing a Monitor's IP address` for
227 details.
228
229 Monitors can also be found by clients by using DNS SRV records. See `Monitor lookup through DNS`_ for details.
230
231 Cluster ID
232 ----------
233
234 Each Ceph Storage Cluster has a unique identifier (``fsid``). If specified, it
235 usually appears under the ``[global]`` section of the configuration file.
236 Deployment tools usually generate the ``fsid`` and store it in the monitor map,
237 so the value may not appear in a configuration file. The ``fsid`` makes it
238 possible to run daemons for multiple clusters on the same hardware.
239
240 .. confval:: fsid
241
242 .. index:: Ceph Monitor; initial members
243
244 Initial Members
245 ---------------
246
247 We recommend running a production Ceph Storage Cluster with at least three Ceph
248 Monitors to ensure high availability. When you run multiple monitors, you may
249 specify the initial monitors that must be members of the cluster in order to
250 establish a quorum. This may reduce the time it takes for your cluster to come
251 online.
252
253 .. code-block:: ini
254
255 [mon]
256 mon_initial_members = a,b,c
257
258
259 .. confval:: mon_initial_members
260
261 .. index:: Ceph Monitor; data path
262
263 Data
264 ----
265
266 Ceph provides a default path where Ceph Monitors store data. For optimal
267 performance in a production Ceph Storage Cluster, we recommend running Ceph
268 Monitors on separate hosts and drives from Ceph OSD Daemons. As leveldb uses
269 ``mmap()`` for writing the data, Ceph Monitors flush their data from memory to disk
270 very often, which can interfere with Ceph OSD Daemon workloads if the data
271 store is co-located with the OSD Daemons.
272
273 In Ceph versions 0.58 and earlier, Ceph Monitors store their data in plain files. This
274 approach allows users to inspect monitor data with common tools like ``ls``
275 and ``cat``. However, this approach didn't provide strong consistency.
276
277 In Ceph versions 0.59 and later, Ceph Monitors store their data as key/value
278 pairs. Ceph Monitors require `ACID`_ transactions. Using a data store prevents
279 recovering Ceph Monitors from running corrupted versions through Paxos, and it
280 enables multiple modification operations in one single atomic batch, among other
281 advantages.
282
283 Generally, we do not recommend changing the default data location. If you modify
284 the default location, we recommend that you make it uniform across Ceph Monitors
285 by setting it in the ``[mon]`` section of the configuration file.
286
287
288 .. confval:: mon_data
289 .. confval:: mon_data_size_warn
290 .. confval:: mon_data_avail_warn
291 .. confval:: mon_data_avail_crit
292 .. confval:: mon_warn_on_cache_pools_without_hit_sets
293 .. confval:: mon_warn_on_crush_straw_calc_version_zero
294 .. confval:: mon_warn_on_legacy_crush_tunables
295 .. confval:: mon_crush_min_required_version
296 .. confval:: mon_warn_on_osd_down_out_interval_zero
297 .. confval:: mon_warn_on_slow_ping_ratio
298 .. confval:: mon_warn_on_slow_ping_time
299 .. confval:: mon_warn_on_pool_no_redundancy
300 .. confval:: mon_cache_target_full_warn_ratio
301 .. confval:: mon_health_to_clog
302 .. confval:: mon_health_to_clog_tick_interval
303 .. confval:: mon_health_to_clog_interval
304
305 .. index:: Ceph Storage Cluster; capacity planning, Ceph Monitor; capacity planning
306
307 .. _storage-capacity:
308
309 Storage Capacity
310 ----------------
311
312 When a Ceph Storage Cluster gets close to its maximum capacity
313 (see``mon_osd_full ratio``), Ceph prevents you from writing to or reading from OSDs
314 as a safety measure to prevent data loss. Therefore, letting a
315 production Ceph Storage Cluster approach its full ratio is not a good practice,
316 because it sacrifices high availability. The default full ratio is ``.95``, or
317 95% of capacity. This a very aggressive setting for a test cluster with a small
318 number of OSDs.
319
320 .. tip:: When monitoring your cluster, be alert to warnings related to the
321 ``nearfull`` ratio. This means that a failure of some OSDs could result
322 in a temporary service disruption if one or more OSDs fails. Consider adding
323 more OSDs to increase storage capacity.
324
325 A common scenario for test clusters involves a system administrator removing an
326 OSD from the Ceph Storage Cluster, watching the cluster rebalance, then removing
327 another OSD, and another, until at least one OSD eventually reaches the full
328 ratio and the cluster locks up. We recommend a bit of capacity
329 planning even with a test cluster. Planning enables you to gauge how much spare
330 capacity you will need in order to maintain high availability. Ideally, you want
331 to plan for a series of Ceph OSD Daemon failures where the cluster can recover
332 to an ``active+clean`` state without replacing those OSDs
333 immediately. Cluster operation continues in the ``active+degraded`` state, but this
334 is not ideal for normal operation and should be addressed promptly.
335
336 The following diagram depicts a simplistic Ceph Storage Cluster containing 33
337 Ceph Nodes with one OSD per host, each OSD reading from
338 and writing to a 3TB drive. So this exemplary Ceph Storage Cluster has a maximum
339 actual capacity of 99TB. With a ``mon osd full ratio`` of ``0.95``, if the Ceph
340 Storage Cluster falls to 5TB of remaining capacity, the cluster will not allow
341 Ceph Clients to read and write data. So the Ceph Storage Cluster's operating
342 capacity is 95TB, not 99TB.
343
344 .. ditaa::
345 +--------+ +--------+ +--------+ +--------+ +--------+ +--------+
346 | Rack 1 | | Rack 2 | | Rack 3 | | Rack 4 | | Rack 5 | | Rack 6 |
347 | cCCC | | cF00 | | cCCC | | cCCC | | cCCC | | cCCC |
348 +--------+ +--------+ +--------+ +--------+ +--------+ +--------+
349 | OSD 1 | | OSD 7 | | OSD 13 | | OSD 19 | | OSD 25 | | OSD 31 |
350 +--------+ +--------+ +--------+ +--------+ +--------+ +--------+
351 | OSD 2 | | OSD 8 | | OSD 14 | | OSD 20 | | OSD 26 | | OSD 32 |
352 +--------+ +--------+ +--------+ +--------+ +--------+ +--------+
353 | OSD 3 | | OSD 9 | | OSD 15 | | OSD 21 | | OSD 27 | | OSD 33 |
354 +--------+ +--------+ +--------+ +--------+ +--------+ +--------+
355 | OSD 4 | | OSD 10 | | OSD 16 | | OSD 22 | | OSD 28 | | Spare |
356 +--------+ +--------+ +--------+ +--------+ +--------+ +--------+
357 | OSD 5 | | OSD 11 | | OSD 17 | | OSD 23 | | OSD 29 | | Spare |
358 +--------+ +--------+ +--------+ +--------+ +--------+ +--------+
359 | OSD 6 | | OSD 12 | | OSD 18 | | OSD 24 | | OSD 30 | | Spare |
360 +--------+ +--------+ +--------+ +--------+ +--------+ +--------+
361
362 It is normal in such a cluster for one or two OSDs to fail. A less frequent but
363 reasonable scenario involves a rack's router or power supply failing, which
364 brings down multiple OSDs simultaneously (e.g., OSDs 7-12). In such a scenario,
365 you should still strive for a cluster that can remain operational and achieve an
366 ``active + clean`` state--even if that means adding a few hosts with additional
367 OSDs in short order. If your capacity utilization is too high, you may not lose
368 data, but you could still sacrifice data availability while resolving an outage
369 within a failure domain if capacity utilization of the cluster exceeds the full
370 ratio. For this reason, we recommend at least some rough capacity planning.
371
372 Identify two numbers for your cluster:
373
374 #. The number of OSDs.
375 #. The total capacity of the cluster
376
377 If you divide the total capacity of your cluster by the number of OSDs in your
378 cluster, you will find the mean average capacity of an OSD within your cluster.
379 Consider multiplying that number by the number of OSDs you expect will fail
380 simultaneously during normal operations (a relatively small number). Finally
381 multiply the capacity of the cluster by the full ratio to arrive at a maximum
382 operating capacity; then, subtract the number of amount of data from the OSDs
383 you expect to fail to arrive at a reasonable full ratio. Repeat the foregoing
384 process with a higher number of OSD failures (e.g., a rack of OSDs) to arrive at
385 a reasonable number for a near full ratio.
386
387 The following settings only apply on cluster creation and are then stored in
388 the OSDMap. To clarify, in normal operation the values that are used by OSDs
389 are those found in the OSDMap, not those in the configuration file or central
390 config store.
391
392 .. code-block:: ini
393
394 [global]
395 mon_osd_full_ratio = .80
396 mon_osd_backfillfull_ratio = .75
397 mon_osd_nearfull_ratio = .70
398
399
400 ``mon_osd_full_ratio``
401
402 :Description: The threshold percentage of device space utilized before an OSD is
403 considered ``full``.
404
405 :Type: Float
406 :Default: ``0.95``
407
408
409 ``mon_osd_backfillfull_ratio``
410
411 :Description: The threshold percentage of device space utilized before an OSD is
412 considered too ``full`` to backfill.
413
414 :Type: Float
415 :Default: ``0.90``
416
417
418 ``mon_osd_nearfull_ratio``
419
420 :Description: The threshold percentage of device space used before an OSD is
421 considered ``nearfull``.
422
423 :Type: Float
424 :Default: ``0.85``
425
426
427 .. tip:: If some OSDs are nearfull, but others have plenty of capacity, you
428 may have an inaccurate CRUSH weight set for the nearfull OSDs.
429
430 .. tip:: These settings only apply during cluster creation. Afterwards they need
431 to be changed in the OSDMap using ``ceph osd set-nearfull-ratio`` and
432 ``ceph osd set-full-ratio``
433
434 .. index:: heartbeat
435
436 Heartbeat
437 ---------
438
439 Ceph monitors know about the cluster by requiring reports from each OSD, and by
440 receiving reports from OSDs about the status of their neighboring OSDs. Ceph
441 provides reasonable default settings for monitor/OSD interaction; however, you
442 may modify them as needed. See `Monitor/OSD Interaction`_ for details.
443
444
445 .. index:: Ceph Monitor; leader, Ceph Monitor; provider, Ceph Monitor; requester, Ceph Monitor; synchronization
446
447 Monitor Store Synchronization
448 -----------------------------
449
450 When you run a production cluster with multiple monitors (recommended), each
451 monitor checks to see if a neighboring monitor has a more recent version of the
452 cluster map (e.g., a map in a neighboring monitor with one or more epoch numbers
453 higher than the most current epoch in the map of the instant monitor).
454 Periodically, one monitor in the cluster may fall behind the other monitors to
455 the point where it must leave the quorum, synchronize to retrieve the most
456 current information about the cluster, and then rejoin the quorum. For the
457 purposes of synchronization, monitors may assume one of three roles:
458
459 #. **Leader**: The `Leader` is the first monitor to achieve the most recent
460 Paxos version of the cluster map.
461
462 #. **Provider**: The `Provider` is a monitor that has the most recent version
463 of the cluster map, but wasn't the first to achieve the most recent version.
464
465 #. **Requester:** A `Requester` is a monitor that has fallen behind the leader
466 and must synchronize in order to retrieve the most recent information about
467 the cluster before it can rejoin the quorum.
468
469 These roles enable a leader to delegate synchronization duties to a provider,
470 which prevents synchronization requests from overloading the leader--improving
471 performance. In the following diagram, the requester has learned that it has
472 fallen behind the other monitors. The requester asks the leader to synchronize,
473 and the leader tells the requester to synchronize with a provider.
474
475
476 .. ditaa::
477 +-----------+ +---------+ +----------+
478 | Requester | | Leader | | Provider |
479 +-----------+ +---------+ +----------+
480 | | |
481 | | |
482 | Ask to Synchronize | |
483 |------------------->| |
484 | | |
485 |<-------------------| |
486 | Tell Requester to | |
487 | Sync with Provider | |
488 | | |
489 | Synchronize |
490 |--------------------+-------------------->|
491 | | |
492 |<-------------------+---------------------|
493 | Send Chunk to Requester |
494 | (repeat as necessary) |
495 | Requester Acks Chuck to Provider |
496 |--------------------+-------------------->|
497 | |
498 | Sync Complete |
499 | Notification |
500 |------------------->|
501 | |
502 |<-------------------|
503 | Ack |
504 | |
505
506
507 Synchronization always occurs when a new monitor joins the cluster. During
508 runtime operations, monitors may receive updates to the cluster map at different
509 times. This means the leader and provider roles may migrate from one monitor to
510 another. If this happens while synchronizing (e.g., a provider falls behind the
511 leader), the provider can terminate synchronization with a requester.
512
513 Once synchronization is complete, Ceph performs trimming across the cluster.
514 Trimming requires that the placement groups are ``active+clean``.
515
516
517 .. confval:: mon_sync_timeout
518 .. confval:: mon_sync_max_payload_size
519 .. confval:: paxos_max_join_drift
520 .. confval:: paxos_stash_full_interval
521 .. confval:: paxos_propose_interval
522 .. confval:: paxos_min
523 .. confval:: paxos_min_wait
524 .. confval:: paxos_trim_min
525 .. confval:: paxos_trim_max
526 .. confval:: paxos_service_trim_min
527 .. confval:: paxos_service_trim_max
528 .. confval:: paxos_service_trim_max_multiplier
529 .. confval:: mon_mds_force_trim_to
530 .. confval:: mon_osd_force_trim_to
531 .. confval:: mon_osd_cache_size
532 .. confval:: mon_election_timeout
533 .. confval:: mon_lease
534 .. confval:: mon_lease_renew_interval_factor
535 .. confval:: mon_lease_ack_timeout_factor
536 .. confval:: mon_accept_timeout_factor
537 .. confval:: mon_min_osdmap_epochs
538 .. confval:: mon_max_log_epochs
539
540
541 .. index:: Ceph Monitor; clock
542
543 Clock
544 -----
545
546 Ceph daemons pass critical messages to each other, which must be processed
547 before daemons reach a timeout threshold. If the clocks in Ceph monitors
548 are not synchronized, it can lead to a number of anomalies. For example:
549
550 - Daemons ignoring received messages (e.g., timestamps outdated)
551 - Timeouts triggered too soon/late when a message wasn't received in time.
552
553 See `Monitor Store Synchronization`_ for details.
554
555
556 .. tip:: You must configure NTP or PTP daemons on your Ceph monitor hosts to
557 ensure that the monitor cluster operates with synchronized clocks.
558 It can be advantageous to have monitor hosts sync with each other
559 as well as with multiple quality upstream time sources.
560
561 Clock drift may still be noticeable with NTP even though the discrepancy is not
562 yet harmful. Ceph's clock drift / clock skew warnings may get triggered even
563 though NTP maintains a reasonable level of synchronization. Increasing your
564 clock drift may be tolerable under such circumstances; however, a number of
565 factors such as workload, network latency, configuring overrides to default
566 timeouts and the `Monitor Store Synchronization`_ settings may influence
567 the level of acceptable clock drift without compromising Paxos guarantees.
568
569 Ceph provides the following tunable options to allow you to find
570 acceptable values.
571
572 .. confval:: mon_tick_interval
573 .. confval:: mon_clock_drift_allowed
574 .. confval:: mon_clock_drift_warn_backoff
575 .. confval:: mon_timecheck_interval
576 .. confval:: mon_timecheck_skew_interval
577
578 Client
579 ------
580
581 .. confval:: mon_client_hunt_interval
582 .. confval:: mon_client_ping_interval
583 .. confval:: mon_client_max_log_entries_per_message
584 .. confval:: mon_client_bytes
585
586 .. _pool-settings:
587
588 Pool settings
589 =============
590
591 Since version v0.94 there is support for pool flags which allow or disallow changes to be made to pools.
592 Monitors can also disallow removal of pools if appropriately configured. The inconvenience of this guardrail
593 is far outweighed by the number of accidental pool (and thus data) deletions it prevents.
594
595 .. confval:: mon_allow_pool_delete
596 .. confval:: osd_pool_default_ec_fast_read
597 .. confval:: osd_pool_default_flag_hashpspool
598 .. confval:: osd_pool_default_flag_nodelete
599 .. confval:: osd_pool_default_flag_nopgchange
600 .. confval:: osd_pool_default_flag_nosizechange
601
602 For more information about the pool flags see :ref:`Pool values <setpoolvalues>`.
603
604 Miscellaneous
605 =============
606
607 .. confval:: mon_max_osd
608 .. confval:: mon_globalid_prealloc
609 .. confval:: mon_subscribe_interval
610 .. confval:: mon_stat_smooth_intervals
611 .. confval:: mon_probe_timeout
612 .. confval:: mon_daemon_bytes
613 .. confval:: mon_max_log_entries_per_event
614 .. confval:: mon_osd_prime_pg_temp
615 .. confval:: mon_osd_prime_pg_temp_max_time
616 .. confval:: mon_osd_prime_pg_temp_max_estimate
617 .. confval:: mon_mds_skip_sanity
618 .. confval:: mon_max_mdsmap_epochs
619 .. confval:: mon_config_key_max_entry_size
620 .. confval:: mon_scrub_interval
621 .. confval:: mon_scrub_max_keys
622 .. confval:: mon_compact_on_start
623 .. confval:: mon_compact_on_bootstrap
624 .. confval:: mon_compact_on_trim
625 .. confval:: mon_cpu_threads
626 .. confval:: mon_osd_mapping_pgs_per_chunk
627 .. confval:: mon_session_timeout
628 .. confval:: mon_osd_cache_size_min
629 .. confval:: mon_memory_target
630 .. confval:: mon_memory_autotune
631
632 .. _Paxos: https://en.wikipedia.org/wiki/Paxos_(computer_science)
633 .. _Monitor Keyrings: ../../../dev/mon-bootstrap#secret-keys
634 .. _Ceph configuration file: ../ceph-conf/#monitors
635 .. _Network Configuration Reference: ../network-config-ref
636 .. _Monitor lookup through DNS: ../mon-lookup-dns
637 .. _ACID: https://en.wikipedia.org/wiki/ACID
638 .. _Adding/Removing a Monitor: ../../operations/add-or-rm-mons
639 .. _Monitoring a Cluster: ../../operations/monitoring
640 .. _Monitoring OSDs and PGs: ../../operations/monitoring-osd-pg
641 .. _Bootstrapping a Monitor: ../../../dev/mon-bootstrap
642 .. _Monitor/OSD Interaction: ../mon-osd-interaction
643 .. _Scalability and High Availability: ../../../architecture#scalability-and-high-availability