URL's in Galera take a particular format:
<schema>://<cluster_address>[?option1=value1[&option2=value2]]
gcomm
- This is the option to use for a working implementation. dummy
- Used for running tests and profiling, does not do any actual replication, and all following parameters are ignored. gcomm://
. This should never be hardcoded into any configuration files. gcomm:<node1 name or ip>,<node2 name or ip2>,<node3 name or ip>
. Alternately if multicast is use put the multicast address instead of the list of nodes. Each member address or multicast address can specify <node name or ip>:<port>
if a non-default port is used. A useful option to set is pc.wait_prim=no
to ensure the server will start running even if it can't determine a primary node. This is useful if all members go down at the same time.
By default, gcomm listens on all interfaces. The port is either provided in the cluster address, or will default to 4567 if not set.
© 2019 MariaDB
Licensed under the Creative Commons Attribution 3.0 Unported License and the GNU Free Documentation License.
https://mariadb.com/kb/en/galera-cluster-address/