Hi!
On 12.10.2017 13:11, Dominik Klein wrote:
> Hi
>
> we are trying to design a small(ish) galera cluster. We need synchronous
> replication across two machines but understand that, since galera is
> quorum based, it is not a good idea to run a two node setup.
Correct.
>
> [[...]] Two hardware boxes offer more than enough capacity/performance for
> our needs, so we'd rather not install a third just as powerful machine.
> Is it at all possible to configure such an "asynchronous quorum node"
> (and if so: which additional parameters do we need)?
Look into "garbd". This is a process which acts as a Galera node for all
purposes of connectivity and quorum, but does not store any data, so
AIUI it is extremely lightweight on its machine.
There is a caveat: Assume a "normal" setup with 3 data nodes A, B, and
C. If node A fails, B and C still have quorum, operation continues. When
node A recovers, it will ask B or C to provide the changes, assume B.
This might be a "mysqldump" SST, blocking B, but C will still be
available for operation.
If one of B or C is a garbd, it cannot provide data, so the cluster
would be un-available during a blocking SST.
Also, remember that any third node, be it a full function node or the
"garbd", should be as isolated from the other nodes as possible, so that
there is no common ressource which might the third node fail together
with either the first or the second node.
In the typical setup with two "real" nodes in two distinct data centers,
the third node should be separate from both of them.
HTH,
Jörg
--
Joerg Bruehe, Senior MySQL Support Engineer,
joerg....@fromdual.com
FromDual GmbH, Rebenweg 6, CH - 8610 Uster; phone
+41 44 500 58 26
Geschäftsführer: Oliver Sennhauser
Handelsregister-Eintrag: CH-020.4.044.539-3