Should you wish to alter the number of nodes or their configuration, you can edit the percona_tests/cluster_basic/suite_config.py file:

Shell

1

2

3

server_requirements=[[],[],[]]

server_requests={'join_cluster':[(0,1),(0,2)]}

servers=[]

Each ‘[]’ in the server_requirements list is a server. You can add new servers by adding a new list. If you want specific options, put them into the list representing the server: [[‘–innodb-file-per-table’]]

You will need to add an entry into the server_requests dictionary as well. If you added a new node and want it in the cluster you would simply change it as follows: server_requests = {‘join_cluster':[(0,1), (0,2), (0,3)]}

Alternately, you can just let the tests run to ensure some basic functionality. I’ll be writing more about these tests and other testing efforts soon, but I wanted to help people get started with their own explorations.

Happy testing and I hope you dig Percona XtraDB Cluster as much as we do : )