Skip to content

Commit

Permalink
add an example Arbitrator config
Browse files Browse the repository at this point in the history
  • Loading branch information
fraenki committed Jul 5, 2022
1 parent 5d2f95d commit 9068eeb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added
* Add an example Arbitrator config (see README)

## [3.0.0]
This is a new major release. It supports the two most recent (long-term)
versions of Codership Galera, Percona XtraDB and MariaDB. Older versions may
Expand Down
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ NOTE: The "master" branch on GitHub contains the development version, which may
- [Basic usage](#basic-usage)
- [WSREP provider options](#wsrep-provider-options)
- [More complex example](#more-complex-example)
- [Configuring an Arbitrator](#configuring-an-Arbitrator)
- [Custom repository configuration](#custom-repository-configuration)
- [FreeBSD support](#freebsd-support)
- [EPP supported for many options](#epp-supported-for-many-options)
Expand Down Expand Up @@ -44,7 +45,7 @@ Basic usage requires only the FQDN of the master node, a list of IP addresses of
```puppet
class { 'galera':
cluster_name => 'mycluster',
galera_servers => ['10.0.99.101', '10.0.99.102'],
galera_servers => ['10.0.99.101', '10.0.99.102', '10.0.99.103'],
galera_master => 'node1.example.com',
root_password => 'pa$$w0rd',
status_password => 'pa$$w0rd',
Expand Down Expand Up @@ -92,7 +93,7 @@ Furthermore, a number of simple options are available to customize the cluster c
```puppet
class { 'galera':
cluster_name => 'mycluster',
galera_servers => ['10.0.99.101', '10.0.99.102'],
galera_servers => ['10.0.99.101', '10.0.99.102', '10.0.99.103'],
galera_master => 'node1.example.com',
root_password => 'pa$$w0rd',
status_password => 'pa$$w0rd',
Expand Down Expand Up @@ -140,6 +141,21 @@ class { 'galera':
}
```

### Configuring an Arbitrator

Configuring an Arbitrator service is straight-forward:

```puppet
class { 'galera':
arbitrator => true,
cluster_name => 'mycluster',
galera_servers => ['10.0.99.101', '10.0.99.102', '10.0.99.103'],
...
}
```

You may even use the same parameters that you would normally use for database nodes, when `$arbitrator` is set to `true` they will be ignored. This makes it easy to share the same parameters across all cluster nodes, no matter if they are real database nodes or just an arbitrator service.

### Custom repository configuration

This module automatically determines which APT/YUM repositories need to be configured. This depends on your choices for `$vendor_type`, `$vendor_version` and `$wsrep_sst_method`. Each of these choices may enabled additional repositories.
Expand Down

0 comments on commit 9068eeb

Please sign in to comment.