Hi,
The limitation on multiple monitors monitoring the same servers only applies to the same MaxScale instance. It is perfectly safe to have separate MaxScale instances monitor the same cluster.
Markus
--
You received this message because you are subscribed to the Google Groups "MaxScale" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maxscale+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- Markus Mäkelä, Software Engineer MariaDB Corporation t: +358 40 7740484 | Skype: markus.j.makela
Hi,
Yes, using the priority system is one option but that is usually used when geographic location of the server dictates the order in which MaxScale should write to. The normal Galera monitoring algorithm already guarantees that multiple MaxScale instances pick the same server as the master. The algorithm chooses the node with the lowest value in wsrep_local_index as the master which guarantees that all MaxScale instances will use the same server for writes.
Markus
Hi,
The Galera cluster itself has to acknowledge the failure of a
server before the value of wsrep_local_index can change. By
default, MaxScale uses the lowest value but it is also possible to
configure it to use the node with only the value 0. This
guarantees that the cluster must reorganize itself before MaxScale
changes the node where it sends writes. You can enable this option
in MaxScale 2.1 by adding root_node_as_master=true to the
monitor definition.
Whether sending writes to a different node in a Galera cluster is
a problem depends on your application. If it can handle a possible
deadlock error on commit or if it uses autocommit, then it should
not cause problems.
Markus
Hi,
The only risk in using 2.0 is the fact that there's a possibility of sending writes to two different nodes. If two MaxScale instances are running at the same time and both of them are receiving traffic then when one of them loses the connection to the root node, it will use another node for writes.
If you only use one MaxScale instance at a time, there is no
problem even with 2.0. As I mentioned previously, whether write
conflicts are a problem depends largely on the client application.
Markus