When a write query is sent to Percona XtraDB Cluster all the nodes store the writeset on a file called gcache. By default the name of that file is galera.cache and it is stored in the MySQL datadir. This is a very important file, and as usual with the most important variables in MySQL, the default value is not good for high-loaded servers. Let’s see why it’s important and how can we calculate a correct value for the workload of our cluster.
What’s the gcache?
When a node goes out of the
cluster (crash or maintenance) it obviously stops receiving
changes. When you try to reconnect the node to the cluster the
data will be outdated. The joiner node needs to ask a donor to
send the changes happened during the downtime.
The donor …
[Read more]