You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/Extensions/Galera-Cluster.md
+18-18Lines changed: 18 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ This is currently being tested, use at your own risk.
4
4
5
5
LibreNMS can be used with a MariaDB Galera Cluster. This is a Multi Master cluster, meaning each
6
6
node in the cluster can read and write to the database. They all have the same ability. LibreNMS will
7
-
randomly choose a working node to read and write requests to.
7
+
randomly choose a working node to read and write requests to.
8
8
9
9
10
10
For more information see
@@ -14,7 +14,7 @@ For more information see
14
14
## Getting Started
15
15
16
16
* It is best practice to have a minimum of 3 nodes in the cluster, A odd number of nodes is recommended in the event nodes have a disagreement on data, they will have a tie breaker.
17
-
* It's recommended that all servers be similar in hardware performance, cluster performance can be affected by the slowest server in the cluster.
17
+
* It's recommended that all servers be similar in hardware performance, cluster performance can be affected by the slowest server in the cluster.
18
18
* Backup the database before starting, and backing up the database regularly is still recommended even in a working cluster environment.
19
19
20
20
## Install and Configure Galera
@@ -52,20 +52,20 @@ wsrep_sst_method=rsync
52
52
wsrep_node_address="192.168.1.35"
53
53
wsrep_node_name="librenms1.35"
54
54
```
55
-
Change the following values for your environment.
55
+
Change the following values for your environment.
56
56
* wsrep_cluster_address - All the IP address's of your nodes.
57
57
* wsrep_cluster_name - Name of cluster, should be the same for all nodes
58
58
* wsrep_node_address - IP address of this node.
59
59
* wsrep_node_name - Name of this node.
60
60
61
61
### Edit LibreNMS .env
62
62
63
-
LibreNMS supports up to 9 galera nodes, you define these nodes in the .env file. For each node we have the ability to define if this librenms installation/poller is able to write, read or both to that node.
64
-
The galera nodes you define here can be the same or differnt for each librenms poller. If you have a poller you only want to write/read to one galera node, you would simply add one DB_HOST, and omit all the rest. This allows you to precisely control what galera nodes a librenms poller is reading and or writing too.
63
+
LibreNMS supports up to 9 galera nodes, you define these nodes in the .env file. For each node we have the ability to define if this librenms installation/poller is able to write, read or both to that node.
64
+
The galera nodes you define here can be the same or differnt for each librenms poller. If you have a poller you only want to write/read to one galera node, you would simply add one DB_HOST, and omit all the rest. This allows you to precisely control what galera nodes a librenms poller is reading and or writing too.
65
65
66
66
* DB_HOST is always set to read/write.
67
67
* DB_HOST must be set, however, it does not have to be the same on each poller, it can be different as long as it's part of the same galera cluster.
68
-
* If the node that is set to DB_HOST is down, things like ```lnms db``` command no longer work, as they only use DB_HOST and don't failover to other nodes.
68
+
* If the node that is set to DB_HOST is down, things like ```lnms db``` command no longer work, as they only use DB_HOST and don't failover to other nodes.
69
69
* Set DB_CONNECTION=mysql_cluster to enable
70
70
* DB_STICKY can be used if you are pulling out of sync data form the database in a read request. For more information see
0 commit comments