Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
maria_ha_maxscale [2020/10/23 20:22] – andonovj | maria_ha_maxscale [2020/10/24 18:17] (current) – [Testing the Environment] andonovj | ||
---|---|---|---|
Line 18: | Line 18: | ||
* node4 | * node4 | ||
- | =====Setting up===== | + | =====Configuration===== |
- | To set up we have to install the packages and configure the repositories. Do that on all nodes in the cluster. In our case on all 4: | + | The whole processes will go as follows: |
+ | - Install MariaDB and Maxscale on all nodes | ||
+ | - Configure Galera Cluster | ||
+ | - Configure Maxscale | ||
+ | - Feature tests | ||
+ | ====Setup Repo==== | ||
< | < | ||
[root@node1 ~]# curl -sS https:// | [root@node1 ~]# curl -sS https:// | ||
Line 146: | Line 151: | ||
[root@node4 ~]# service mariadb start | [root@node4 ~]# service mariadb start | ||
Redirecting to / | Redirecting to / | ||
- | [root@node4 ~]# service mariadb status | ||
- | Redirecting to / | ||
- | ● mariadb.service - MariaDB 10.5.6 database server | ||
- | | ||
- | Drop-In: / | ||
- | | ||
- | | ||
- | Docs: man: | ||
- | | ||
- | Process: 23170 ExecStartPost=/ | ||
- | Process: 22993 ExecStartPre=/ | ||
- | Process: 22991 ExecStartPre=/ | ||
- | Main PID: 23042 (mariadbd) | ||
- | | ||
- | | ||
- | | ||
- | |||
- | Oct 22 17:13:11 node4 mariadbd[23042]: | ||
- | Oct 22 17:13:11 node4 mariadbd[23042]: | ||
- | Oct 22 17:13:11 node4 mariadbd[23042]: | ||
- | Oct 22 17:13:11 node4 mariadbd[23042]: | ||
- | Oct 22 17:13:11 node4 mariadbd[23042]: | ||
- | Oct 22 17:13:11 node4 mariadbd[23042]: | ||
- | Oct 22 17:13:11 node4 mariadbd[23042]: | ||
- | Oct 22 17:13:11 node4 mariadbd[23042]: | ||
- | Oct 22 17:13:11 node4 mariadbd[23042]: | ||
- | Oct 22 17:13:11 node4 systemd[1]: Started MariaDB 10.5.6 database server. | ||
</ | </ | ||
After that, we can see that the members of the cluster increased: | After that, we can see that the members of the cluster increased: | ||
- | |||
< | < | ||
Line 190: | Line 167: | ||
</ | </ | ||
- | ====Setup Users for MaxScale==== | + | ====Prepare users for MaxScale==== |
First we need to set up a user that MariaDB MaxScale use to attach to the cluster to get authentication data. On 192.168.10.182, | First we need to set up a user that MariaDB MaxScale use to attach to the cluster to get authentication data. On 192.168.10.182, | ||
Line 220: | Line 197: | ||
</ | </ | ||
- | ====Configure | + | ====Setup MaxScale==== |
The configuration of MaxScale is stored in: "/ | The configuration of MaxScale is stored in: "/ | ||
Line 284: | Line 261: | ||
</ | </ | ||
- | ====Test the Connection=== | + | =====Testing |
In our test: | In our test: | ||
- We will connect to the listener on the maxscale server | - We will connect to the listener on the maxscale server | ||
Line 303: | Line 280: | ||
Type ' | Type ' | ||
- | MariaDB [(none)]> | ||
- | -> ; | ||
- | ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ' | ||
MariaDB [(none)]> | MariaDB [(none)]> | ||
+---------------+-------+ | +---------------+-------+ | ||
Line 336: | Line 310: | ||
===GUI=== | ===GUI=== | ||
- | {{ : | + | {{ : |
The default credentials are: | The default credentials are: | ||
Line 342: | Line 316: | ||
Password: mariadb | Password: mariadb | ||
- | {{ : | + | {{ : |