On 2015-06-10 00:04, Ragnar Rova wrote:
> Hi,
>
> 1. How can pc.recovery=true be used to aid graceful cluster restarts?
> Today
> pc.recovery only helps me when there is a full cluster crash / power
> outage
> etc, since the gvwstate.dat file is removed on graceful shutdown.
>
http://galeracluster.com/documentation-webpages/galeraparameters.html#pc-recovery
> specifically mentions: "Graceful full cluster restarts without the need
> for
> explicitly bootstrapping a new Primary Component." How can pc.recovery
> help
> here? That line confuses me. And why again is gvwstate.dat removed on
> shutdown?
It is an error in documentation. At the moment pc.recovery=true helps
only in the case of total cluster crash. This is precisely because
gvwstate.dat is removed on graceful shutdown. Which in turn was made out
of conservative considerations that it may interfere with the now
canonical way to start the cluster with --wsrep-new-cluster option.
(Initial feature request was to facilitate unattended cluster restart in
case of power outage)
It may be that we've been too conservative about that and now we are
thinking of relaxing this.
You are not adding yourself to the miracle-expecters group. However, it
would be nice to understand, what is the use case for whole cluster
restart? The whole premise behind the cluster is that you never have to
shut the whole service down. Why do you need a 4th node? What's wrong
with restarting one node at a time?
Regards,
Alex