Test for replication-manager: https://github.com/tanji/replication-manager
Tests for replication-manager
and MaxScale.
Running tests requires:
Edit the following files to do the following actions:
start.sh
: Start a node, either 0 or 1 is given as parameter for either first or second nodestop.sh
: Stop a node, same parameters as startbootstrap.sh
: Bootstrap the cluster into a running statebootstrap_cluster_down.sh
: Bootstrap the cluster into a downed stateThe tests consist of two a node setup with one master and one slave. Each line
in a .test file is considered a state of the cluster. Here’s an example:
MS
MX
MS
This starts with the first server as Master and the second server as Slave
(MS). Then the second server goes down (MX) and is restarted again (MS).