diff options
author | Joao Eduardo Luis <joao.luis@inktank.com> | 2014-01-22 13:21:36 +0100 |
---|---|---|
committer | Joao Eduardo Luis <joao.luis@inktank.com> | 2014-01-22 13:26:41 +0100 |
commit | 9792500af4c323f12f525ebff54f1523d0cadd06 (patch) | |
tree | b0dc3c6b944bfb0a68912164b730bdfc580eff5d | |
parent | removing rgw_tests.sh (diff) | |
download | ceph-9792500af4c323f12f525ebff54f1523d0cadd06.tar.xz ceph-9792500af4c323f12f525ebff54f1523d0cadd06.zip |
doc: add-or-rm-mons.rst: better explanation on number of monitors
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
-rw-r--r-- | doc/rados/operations/add-or-rm-mons.rst | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/doc/rados/operations/add-or-rm-mons.rst b/doc/rados/operations/add-or-rm-mons.rst index 4563d27624f..aa4f03ddfeb 100644 --- a/doc/rados/operations/add-or-rm-mons.rst +++ b/doc/rados/operations/add-or-rm-mons.rst @@ -11,10 +11,26 @@ Adding Monitors Ceph monitors are light-weight processes that maintain a master copy of the cluster map. You can run a cluster with 1 monitor. We recommend at least 3 -monitors for a production cluster. Ceph monitors use PAXOS to establish -consensus about the master cluster map, which requires a majority of -monitors running to establish a quorum for consensus about the cluster map -(e.g., 1; 2 out of 3; 3 out of 4 or 5; 4 out of 6; etc.). +monitors for a production cluster. Ceph monitors use a variation of the +`Paxos_` protocol to establish consensus about maps and other critical +information across the cluster. Due to the nature of Paxos, Ceph requires +a majority of monitors running to establish a quorum (thus establishing +consensus). + +It is advisable to run an odd-number of monitors but not mandatory. An +odd-number of monitors has a higher resiliency to failures than an +even-number of monitors. For instance, on a 2 monitor deployment, no +failures can be tolerated in order to maintain a quorum; with 3 monitors, +one failure can be tolerated; in a 4 monitor deployment, one failure can +be tolerated; with 5 monitors, two failures can be tolerated. This is +why an odd-number is advisable. Summarizing, Ceph needs a majority of +monitors to be running (and able to communicate with each other), but that +majority can be achieved using a single monitor, or 2 out of 2 monitors, +2 out of 3, 3 out of 4, etc. + +For an initial deployment of a multi-node Ceph cluster, it is advisable to +deploy three monitors, increasing the number two at a time if a valid need +for more than three exists. Since monitors are light-weight, it is possible to run them on the same host as an OSD; however, we recommend running them on separate hosts, @@ -343,4 +359,4 @@ the monitors should operate successfully. .. _Manual Deployment: ../../../install/manual-deployment -.. _Monitor Bootstrap: ../../../dev/mon-bootstrap
\ No newline at end of file +.. _Monitor Bootstrap: ../../../dev/mon-bootstrap |