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:25] – 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 284: | Line 261: | ||
</ | </ | ||
- | =====Test the Environment==== | + | =====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 342: | Line 316: | ||
Password: mariadb | Password: mariadb | ||
- | {{ : | + | {{ : |