Anup_Tripathi
Anup_Tripathi

Reputation: 2817

How to create non-primary component in Galera cluster to test

I have already setup properly 3 node (mariadb) Galera cluster with maxscale load balancing. maxscale is on different server. All the nodes are Primary component. I want to test the non-primary component situation. How can I create this situation in my Galera cluster.

I stopped one by one all the servers and started again one by one but all the nodes are in sync when they are started back.

How can I test the non-primary state of a node.

Upvotes: 1

Views: 710

Answers (1)

Rick James
Rick James

Reputation: 142298

Add a 4th node and make it a Replica only, not a Primary. And don't tell maxscale to allow writes to it.

Upvotes: 0

Related Questions