* Why only support odd number monitors in ceph cluster?
@ 2011-12-23 7:21 Eric_YH_Chen
2011-12-23 9:34 ` Wido den Hollander
0 siblings, 1 reply; 3+ messages in thread
From: Eric_YH_Chen @ 2011-12-23 7:21 UTC (permalink / raw)
To: ceph-devel; +Cc: Chris_YT_Huang, Alex_KT_Lin
Hi, all:
I am curious about why ceph cluster only support odd number monitors.
If we lose 1 monitor (becomes odd number),
would it cause any problem if we do not handle this situation in short time?
Thanks!
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Why only support odd number monitors in ceph cluster?
2011-12-23 7:21 Why only support odd number monitors in ceph cluster? Eric_YH_Chen
@ 2011-12-23 9:34 ` Wido den Hollander
2011-12-23 15:48 ` Sage Weil
0 siblings, 1 reply; 3+ messages in thread
From: Wido den Hollander @ 2011-12-23 9:34 UTC (permalink / raw)
To: Eric_YH_Chen; +Cc: ceph-devel, Chris_YT_Huang, Alex_KT_Lin
Hi,
On 12/23/2011 08:21 AM, Eric_YH_Chen@wistron.com wrote:
> Hi, all:
>
> I am curious about why ceph cluster only support odd number monitors.
It doesn't only support a odd number. A even number of monitors works in
theory, but it's recommended to use a odd number to get a majority.
>
> If we lose 1 monitor (becomes odd number),
You shouldn't look to the number of online monitors, but to the number
of monitors in your monmap. That should be a odd number.
Wido
>
> would it cause any problem if we do not handle this situation in short time?
>
> Thanks!
>
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Why only support odd number monitors in ceph cluster?
2011-12-23 9:34 ` Wido den Hollander
@ 2011-12-23 15:48 ` Sage Weil
0 siblings, 0 replies; 3+ messages in thread
From: Sage Weil @ 2011-12-23 15:48 UTC (permalink / raw)
To: Wido den Hollander; +Cc: Eric_YH_Chen, ceph-devel, Chris_YT_Huang, Alex_KT_Lin
On Fri, 23 Dec 2011, Wido den Hollander wrote:
> Hi,
>
> On 12/23/2011 08:21 AM, Eric_YH_Chen@wistron.com wrote:
> > Hi, all:
> >
> > I am curious about why ceph cluster only support odd number monitors.
>
> It doesn't only support a odd number. A even number of monitors works in
> theory, but it's recommended to use a odd number to get a majority.
Right. A bit more detail:
Running an even number of monitors means a slightly higher risk of failure
than running one less monitor. For example, if you run 3 monitors, you
can tolerate 1 failure (2 is a strict majority). And you have 3 machines
that can fail.
On the other hand, if you run four, you can still only tolerate 1 failure
(3 is a majority but 2 is not). But then you have 4 machines that can
potentially fail, and your risk of 2 dying is slightly higher.
The difference is risk is probably pretty small for most failure rates,
but, generally speaking, odd numbers are slightly better.
sage
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-12-23 15:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-23 7:21 Why only support odd number monitors in ceph cluster? Eric_YH_Chen
2011-12-23 9:34 ` Wido den Hollander
2011-12-23 15:48 ` Sage Weil
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.