# Galera Monitor

##

## Designing for MaxScale's Galera Monitor

MaxScale's [Galera Monitor (galeramon)](/docs/maxscale/maxscale-archive/archive/mariadb-maxscale-23-02/mariadb-maxscale-23-02-monitors/mariadb-maxscale-2302-galera-monitor.md) monitors [Galera Cluster](https://github.com/mariadb-corporation/docs-server/blob/test/en/mariadb-galera-cluster-quickstart/README.md) deployments.

This page contains topics that need to be considered when designing applications that use the Galera Monitor.

* [How do I allow SST donors to execute queries](#using-sst-donors-for-queries-with-maxscales-galera-monitor)?

Additional information is available [here](https://github.com/mariadb-corporation/mariadb-docs/blob/main/maxscale/maxscale-archive/archive/mariadb-maxscale-21-06/mariadb-maxscale-2106-maxscale-21-06-monitors/maxscale-mariadb-monitor-usage/broken-reference/README.md).

## Understanding MaxScale's Galera Monitor

MaxScale's [Galera Monitor (galeramon)](/docs/maxscale/maxscale-archive/archive/mariadb-maxscale-23-02/mariadb-maxscale-23-02-monitors/mariadb-maxscale-2302-galera-monitor.md) monitors [Galera Cluster](https://github.com/mariadb-corporation/docs-server/blob/test/en/mariadb-galera-cluster-quickstart/README.md) deployments.

What Does the [Galera Monitor](/docs/maxscale/maxscale-archive/archive/mariadb-maxscale-23-02/mariadb-maxscale-23-02-monitors/mariadb-maxscale-2302-galera-monitor.md) Support?

The Galera Monitor (galeramon) supports:

* Monitoring [MariaDB Enterprise Cluster](https://github.com/mariadb-corporation/docs-server/blob/test/en/mariadb-galera-cluster-quickstart/README.md) deployments
* Monitoring [MariaDB Galera Cluster](https://github.com/mariadb-corporation/docs-server/blob/test/en/mariadb-galera-cluster-quickstart/README.md) deployments
* Query-based load balancing with the [Read/Write Split Router (readwritesplit)](/docs/maxscale/maxscale-use-cases/readwrite-split-router-usage/understanding-maxscales-readwrite-split-router.md)
* Connection-based load balancing with the Read Connection Router (readconnroute)

### Deploying Galera Monitor

* Deploy MaxScale with Galera Monitor and Read/Write Split Router
* Deploy MaxScale with Galera Monitor and Read Connection Router

## Using SST Donors for Queries with MaxScale's Galera Monitor

MaxScale's [Galera Monitor (galeramon)](/docs/maxscale/maxscale-archive/archive/mariadb-maxscale-23-02/mariadb-maxscale-23-02-monitors/mariadb-maxscale-2302-galera-monitor.md) monitors [Galera Cluster](https://github.com/mariadb-corporation/docs-server/blob/test/en/mariadb-galera-cluster-quickstart/README.md).

By default, when a node is chosen as a donor for a State Snapshot Transfer (SST), Galera Monitor does not route any queries to it. However, some SST methods are non-blocking on the donor, so this default behavior is not always desired.

### Non-Blocking SST Methods

A cluster's SST method is defined by the [wsrep\_sst\_method](/docs/galera-cluster/reference/galera-cluster-system-variables.md#wsrep_sst_method) system variable. When this system variable is set to mariadb-backup, the cluster uses [MariaDB Backup](https://app.gitbook.com/s/SsmexDFPv2xG2OTyO5yV/server-management/backing-up-and-restoring-databases/mariadb-backup) to perform the SST. [MariaDB Backup](https://app.gitbook.com/s/SsmexDFPv2xG2OTyO5yV/server-management/backing-up-and-restoring-databases/mariadb-backup) is a non-blocking backup method, so Galera Cluster allows the node to execute queries while acting as the SST donor.

### Configuring Availability of SST Donors

1. Configure the availability of SST donors by configuring the available\_when\_donor parameter for the Galera Monitor in maxscale.cnf.

For example:

```
[galera-cluster]
type                     = monitor
module                   = galeramon
...
available_when_donor     = true
```

2. Restart the MaxScale instance.

```
$ sudo systemctl restart maxscale
```

{% @marketo/form formId="4316" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mariadb.com/docs/maxscale/maxscale-archive/archive/mariadb-maxscale-21-06/mariadb-maxscale-2106-maxscale-21-06-monitors/maxscale-mariadb-monitor-usage/maxscale-mariadb-monitor-usage-galera-monitor.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
