Oh sorry for missed the configure of (EnsembleSize, writeQuorum, AckQuorum) quorum value of (2,2,2) in previous answer.
If only with 3 bookies, it will not support one machine down under quorum (3,3,2).
But even with quorum (2,2,2)before taking one machine off, be sure turn bookkeeper auto-recovery off by using command bin/bookkeeper shell autorecovery -disable
, and turn it on when machine come back by using bin/bookkeeper shell autorecovery -enable
.
If not set off, bookkeeper will do auto-recovery once a machine is offline, because bookkeeper was expected to have 3 data copies, but it only have 2 copies now.
And since it will not success to find a third available machine to place the recovered copy, so auto-recovery will be fail.
For more information of bookeeper auto-recovery, you could check this link.
Here is part of the content:
You can disable AutoRecovery at any time, for example during maintenance. Disabling AutoRecovery ensures that bookies' data isn't unnecessarily rereplicated when the bookie is only taken down for a short period of time, for example when the bookie is being updated or the configuration if being changed.