Skip to content

Commit dfdaafa

Browse files
mariadb-udaydubeygitbook-bot
authored andcommitted
GITBOOK-148: docs-5899/Added-page-description-for-quickstart-landing-pages-and-subpages
1 parent 68ded64 commit dfdaafa

File tree

6 files changed

+67
-100
lines changed

6 files changed

+67
-100
lines changed

maxscale/maxscale-quickstart-guides/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
description: >-
33
Get started with MariaDB MaxScale, the advanced database proxy. These guides
4-
provide a quick path to installing, configuring, and leveraging key features.
4+
provide concise instructions for installation, configuration, and
5+
understanding core concepts for new deployments.
56
icon: rabbit-running
67
---
78

maxscale/maxscale-quickstart-guides/mariadb-maxscale-authenticators-guide.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
---
2-
description: Quickstart guide for MariaDB MaxScale authentication modules
2+
description: >-
3+
Configure secure access to your database. This guide explains how to set up
4+
authenticators in MaxScale to manage client credentials and validate
5+
connections to backend servers.
36
---
47

58
# MariaDB MaxScale Authenticators Guide

maxscale/maxscale-quickstart-guides/mariadb-maxscale-guide.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
---
2-
description: Quickstart guide for MariaDB MaxScale
2+
description: >-
3+
Discover the capabilities of MariaDB MaxScale. This overview explains how the
4+
proxy manages high availability, load balancing, and security for your
5+
database infrastructure.
36
---
47

58
# MariaDB MaxScale Guide

maxscale/maxscale-quickstart-guides/mariadb-maxscale-installation-guide.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
---
2-
description: MariaDB MaxScale installation quickstart guide
2+
description: >-
3+
Follow step-by-step instructions to install MariaDB MaxScale on major Linux
4+
distributions. This guide covers repository configuration and package
5+
installation.
36
---
47

58
# MariaDB MaxScale Installation Guide
@@ -10,7 +13,7 @@ MariaDB MaxScale is an advanced, open-source database proxy that provides intell
1013

1114
{% stepper %}
1215
{% step %}
13-
#### Key concepts
16+
**Key concepts**
1417

1518
To understand MaxScale, familiarize yourself with these core components:
1619

@@ -23,7 +26,7 @@ To understand MaxScale, familiarize yourself with these core components:
2326
{% endstep %}
2427

2528
{% step %}
26-
#### Installation
29+
**Installation**
2730

2831
MariaDB MaxScale is typically installed from the official MariaDB repositories.
2932

@@ -49,7 +52,7 @@ sudo dnf install -y maxscale
4952
{% endstep %}
5053

5154
{% step %}
52-
#### Basic configuration
55+
**Basic configuration**
5356

5457
MaxScale's configuration is primarily done in its main configuration file in `/etc/maxscale.cnf`.
5558

@@ -152,7 +155,7 @@ threads=auto
152155
{% endstep %}
153156

154157
{% step %}
155-
#### Complete configuration
158+
**Complete configuration**
156159

157160
Your `/etc/maxscale.cnf` should now look like this:
158161

@@ -192,7 +195,7 @@ port=3306
192195
{% endstep %}
193196

194197
{% step %}
195-
#### Start and enable MaxScale
198+
**Start and enable MaxScale**
196199

197200
After configuring `maxscale.cnf`, start and enable the MaxScale service.
198201

@@ -204,7 +207,7 @@ sudo systemctl status maxscale # Check status
204207
{% endstep %}
205208

206209
{% step %}
207-
#### Basic usage and verification
210+
**Basic usage and verification**
208211

209212
Once MaxScale is running, configure your applications to connect to MaxScale's listener port instead of directly to a MariaDB server.
210213

maxscale/maxscale-quickstart-guides/mariadb-maxscale-limitations-guide.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
---
2-
description: MariaDB MaxScale limitations quickstart guide
2+
description: >-
3+
Review known limitations and constraints of MariaDB MaxScale. Understand
4+
supported features, configuration boundaries, and protocol specifics to plan
5+
your deployment effectively.
36
---
47

58
# MariaDB MaxScale Limitations Guide
Lines changed: 43 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,47 @@
1-
# Beginner's Guide
1+
---
2+
description: >-
3+
Start your journey with MariaDB MaxScale. This guide introduces the database
4+
proxy's architecture, key components, and basic setup steps for first-time
5+
users.
6+
---
7+
8+
# MariaDB MaxScale Beginner's Guide
29

310
## Introduction
411

5-
After MaxScale has been installed, test that MaxScale starts by executing
6-
`sudo systemctl start maxscale`, followed by `sudo systemctl status maxscale`.
12+
After MaxScale has been installed, test that MaxScale starts by executing `sudo systemctl start maxscale`, followed by `sudo systemctl status maxscale`.
713

814
```
915
● maxscale.service - MariaDB MaxScale Database Proxy
1016
Loaded: loaded (/usr/lib/systemd/system/maxscale.service; enabled; vendor preset: disabled)
1117
Active: active (running) since Mon 2024-09-23 08:57:14 CEST; 6s ago
1218
```
1319

14-
Stop MaxScale with `sudo systemctl stop maxscale`. The log file is
15-
written at `/var/log/maxscale/maxscale.log`. If the startup failed, the log
16-
should explain why. With the default configuration file, MaxScale does not yet
17-
do anything interesting.
20+
Stop MaxScale with `sudo systemctl stop maxscale`. The log file is written at `/var/log/maxscale/maxscale.log`. If the startup failed, the log should explain why. With the default configuration file, MaxScale does not yet do anything interesting.
1821

19-
A functional configuration of MaxScale should include a listener, a service, a
20-
monitor and one or more servers. An incoming client connects to a listener
21-
port. Once the connection is established, the listener passes the client to a
22-
service. The service then handles all client traffic, from authentication to
23-
disconnection. Client queries are routed to servers and query results from
24-
servers back to the client. A monitor regularly checks the status of the
25-
servers.
22+
A functional configuration of MaxScale should include a listener, a service, a monitor and one or more servers. An incoming client connects to a listener port. Once the connection is established, the listener passes the client to a service. The service then handles all client traffic, from authentication to disconnection. Client queries are routed to servers and query results from servers back to the client. A monitor regularly checks the status of the servers.
2623

27-
![](<../.gitbook/assets/service_example.png)
24+
!\[]\(<../.gitbook/assets/service\_example.png)
2825

29-
MaxScale configuration files use the common
30-
[INI](https://en.wikipedia.org/wiki/INI_file) file format. The files contain
31-
sections and each section can contain multiple key-value pairs. The MaxScale
32-
installer creates an example configuration file to `/etc/maxscale.cnf`.
26+
MaxScale configuration files use the common [INI](https://en.wikipedia.org/wiki/INI_file) file format. The files contain sections and each section can contain multiple key-value pairs. The MaxScale installer creates an example configuration file to `/etc/maxscale.cnf`.
3327

3428
## Configure a Read-Write Service
3529

36-
Let's modify the example configuration file to include a service that routes all
37-
queries to one server. For this, you will need to have a running MariaDB Server
38-
accessible in the network. One option is to run a MariaDB Server
39-
[Docker image](https://hub.docker.com/_/mariadb/). Once the server is running,
40-
log in to it with an administrative account and create a user account for
41-
MaxScale itself to use when monitoring the server and fetching user
42-
accounts. The following example creates user *maxscale* with all privileges.
30+
Let's modify the example configuration file to include a service that routes all queries to one server. For this, you will need to have a running MariaDB Server accessible in the network. One option is to run a MariaDB Server [Docker image](https://hub.docker.com/_/mariadb/). Once the server is running, log in to it with an administrative account and create a user account for MaxScale itself to use when monitoring the server and fetching user accounts. The following example creates user _maxscale_ with all privileges.
31+
4332
```
4433
CREATE USER 'maxscale' IDENTIFIED BY 'maxscale_passwd';
4534
GRANT ALL PRIVILEGES ON *.* to 'maxscale';
4635
```
4736

4837
Next, edit `/etc/maxscale.cnf`. Perform the following modifications:
4938

50-
1. In the section `[server1]`, set correct *address* and *port*. These should match the running MariaDB Server.
51-
2. In the section `[MariaDB-Monitor]`, set *user* to `maxscale` and *password* to `maxscale_passwd`
52-
(or whatever user/password was created earlier).
53-
3. In the section `[Read-Write-Service]`, set *user* to `maxscale` and *password* to `maxscale_passwd`
54-
(or whatever user/password was created earlier).
39+
1. In the section `[server1]`, set correct _address_ and _port_. These should match the running MariaDB Server.
40+
2. In the section `[MariaDB-Monitor]`, set _user_ to `maxscale` and _password_ to `maxscale_passwd` (or whatever user/password was created earlier).
41+
3. In the section `[Read-Write-Service]`, set _user_ to `maxscale` and _password_ to `maxscale_passwd` (or whatever user/password was created earlier).
5542

5643
The configuration file should now have the following effective contents.
44+
5745
```
5846
[maxscale]
5947
threads=auto
@@ -84,9 +72,8 @@ user=maxscale
8472
password=maxscale_passwd
8573
```
8674

87-
Then, start MaxScale. If MaxScale started successfully, run
88-
`maxctrl list servers` in the terminal. If MaxScale can successfully connect to
89-
the server, the output should be approximately:
75+
Then, start MaxScale. If MaxScale started successfully, run `maxctrl list servers` in the terminal. If MaxScale can successfully connect to the server, the output should be approximately:
76+
9077
```
9178
┌─────────┬───────────┬───────┬─────────────┬─────────────────┬─────────┬─────────────────┐
9279
│ Server │ Address │ Port │ Connections │ State │ GTID │ Monitor │
@@ -95,18 +82,16 @@ the server, the output should be approximately:
9582
└─────────┴───────────┴───────┴─────────────┴─────────────────┴─────────┴─────────────────┘
9683
```
9784

98-
Next, check the log file at `/var/log/maxscale/maxscale.log`. It should have a
99-
message like:
85+
Next, check the log file at `/var/log/maxscale/maxscale.log`. It should have a message like:
86+
10087
```
10188
2024-09-17 17:55:55 notice : Read 16 user@host entries from 'server1' for service 'Read-Write-Service'.
10289
```
10390

104-
If the monitor cannot connect to the server, the *State* is *Down*. In this
105-
case, check the log for error messages. Similarly, if the service cannot load
106-
user account information, an error is logged.
91+
If the monitor cannot connect to the server, the _State_ is _Down_. In this case, check the log for error messages. Similarly, if the service cannot load user account information, an error is logged.
92+
93+
If everything is working properly, connect as client to the MaxScale listener port, configured to 4006.
10794

108-
If everything is working properly, connect as client to the MaxScale listener
109-
port, configured to 4006.
11095
```
11196
mariadb -h127.0.0.1 -P4006 -umaxscale -pmaxscale_passwd
11297
Welcome to the MariaDB monitor. Commands end with ; or \g.
@@ -125,22 +110,15 @@ MariaDB [(none)]> select 1;
125110
+---+
126111
1 row in set (0,001 sec)
127112
```
128-
Other user accounts on the server should work as well if their host patterns
129-
allow connections from MaxScale's IP address.
113+
114+
Other user accounts on the server should work as well if their host patterns allow connections from MaxScale's IP address.
130115

131116
## Extend Read-Write Service
132117

133-
The Read-Write Service configured above only uses one server. To enable
134-
read-write splitting, a replication cluster with a primary server and one or
135-
more replicas is required. Setting up such a cluster is outside the scope of
136-
this document, see
137-
[here](../../server/ha-and-performance/standard-replication/setting-up-replication.md)
138-
for more information.
118+
The Read-Write Service configured above only uses one server. To enable read-write splitting, a replication cluster with a primary server and one or more replicas is required. Setting up such a cluster is outside the scope of this document, see [here](../../server/ha-and-performance/standard-replication/setting-up-replication.md) for more information.
119+
120+
Once the replicas are set up, add them to the MaxScale configuration file as separate sections: `[server2]`, `[server3]` etc., similar to `[server1]`. Remember to set the addresses and ports. Then, add the server names to the _servers_-settings of the monitor:
139121

140-
Once the replicas are set up, add them to the MaxScale configuration file as
141-
separate sections: `[server2]`, `[server3]` etc., similar to `[server1]`.
142-
Remember to set the addresses and ports. Then, add the server names to the
143-
*servers*-settings of the monitor:
144122
```
145123
[MariaDB-Monitor]
146124
type=monitor
@@ -151,10 +129,8 @@ password=maxscale_passwd
151129
monitor_interval=2s
152130
```
153131

154-
Then, restart MaxScale to take the configuration into use and run
155-
`maxctrl list servers` once more. If replication is working and MaxScale can
156-
connect to all the servers, the output should be as below. If this is not the
157-
case, check the log again for error messages.
132+
Then, restart MaxScale to take the configuration into use and run `maxctrl list servers` once more. If replication is working and MaxScale can connect to all the servers, the output should be as below. If this is not the case, check the log again for error messages.
133+
158134
```
159135
┌─────────┬───────────┬───────┬─────────────┬─────────────────┬─────────┬─────────────────┐
160136
│ Server │ Address │ Port │ Connections │ State │ GTID │ Monitor │
@@ -166,24 +142,15 @@ case, check the log again for error messages.
166142
│ server3 │ 127.0.0.1 │ 3308 │ 0 │ Slave, Running │ 1-100-3 │ MariaDB-Monitor │
167143
└─────────┴───────────┴───────┴─────────────┴─────────────────┴─────────┴─────────────────┘
168144
```
169-
Run `maxctrl show servers` to get more detailed information about the servers
170-
such as connection and query counts, and `maxctrl show monitors` to see
171-
monitor-related information such as replication status.
172145

173-
Connect to the listener port again with
174-
`mariadb -h127.0.0.1 -P4006 -umaxscale -pmaxscale_passwd` and run the
175-
query `select @@server_id;` a few times. It should give the
176-
server id of a replica, alternating if multiple are available. This
177-
demonstrates that read queries are sent to the replicas. Writes and other
178-
queries that depend on the primary are sent to the primary only, e.g.
179-
`select @@last_insert_id,@@server_id;`. Reads inside transactions are also
180-
ran on the primary to maintain transaction consistency.
146+
Run `maxctrl show servers` to get more detailed information about the servers such as connection and query counts, and `maxctrl show monitors` to see monitor-related information such as replication status.
147+
148+
Connect to the listener port again with `mariadb -h127.0.0.1 -P4006 -umaxscale -pmaxscale_passwd` and run the query `select @@server_id;` a few times. It should give the server id of a replica, alternating if multiple are available. This demonstrates that read queries are sent to the replicas. Writes and other queries that depend on the primary are sent to the primary only, e.g. `select @@last_insert_id,@@server_id;`. Reads inside transactions are also ran on the primary to maintain transaction consistency.
181149

182150
## Add a filter
183151

184-
Filters are components added to the query processing chain that can act on the
185-
query. A typical use-case is logging. To add a log filter, add the following to
186-
the configuration file:
152+
Filters are components added to the query processing chain that can act on the query. A typical use-case is logging. To add a log filter, add the following to the configuration file:
153+
187154
```
188155
[MyLogFilter]
189156
type=filter
@@ -194,6 +161,7 @@ flush=true
194161
```
195162

196163
Then, add the filter to the service:
164+
197165
```
198166
[Read-Write-Service]
199167
type=service
@@ -203,27 +171,13 @@ cluster=MariaDB-Monitor
203171
user=maxscale
204172
password=maxscale_passwd
205173
```
206-
Again, restart MaxScale to take the configuration into use. MaxScale will now
207-
log any client queries passing through MaxScale to
208-
`/var/log/maxscale/query_log.unified`.
174+
175+
Again, restart MaxScale to take the configuration into use. MaxScale will now log any client queries passing through MaxScale to `/var/log/maxscale/query_log.unified`.
209176

210177
## Test the GUI
211178

212-
Add `admin_secure_gui=false` to the `[maxscale]`-section of the configuration
213-
file and restart MaxScale. This allows access to the GUI without configuring
214-
SSL certificates. Then, open a web browser and navigate to
215-
`http://127.0.0.1:8989`. A login screen should open, use username `admin` and
216-
password `mariadb` to access the GUI. The GUI can show MaxScale and server
217-
status, show and modify MaxScale configuration, perform SQL queries and much
218-
more. See [here](../maxscale-management/maxgui/) for more information on the GUI.
179+
Add `admin_secure_gui=false` to the `[maxscale]`-section of the configuration file and restart MaxScale. This allows access to the GUI without configuring SSL certificates. Then, open a web browser and navigate to `http://127.0.0.1:8989`. A login screen should open, use username `admin` and password `mariadb` to access the GUI. The GUI can show MaxScale and server status, show and modify MaxScale configuration, perform SQL queries and much more. See [here](../maxscale-management/maxgui/) for more information on the GUI.
219180

220181
## Further reading
221182

222-
The
223-
[Configuration Guide](../maxscale-management/deployment/maxscale-configuration-guide.md)
224-
lists all global configuration parameters. The
225-
[ReadWriteSplit documentation](../reference/maxscale-routers/maxscale-readwritesplit.md)
226-
explains the ReadWriteSplit-router and its features, such as transaction replay
227-
and causal reads. The
228-
[MariaDB Monitor documentation](../reference/maxscale-monitors/mariadb-monitor.md)
229-
explains monitor features such as failover and switchover.
183+
The [Configuration Guide](../maxscale-management/deployment/maxscale-configuration-guide.md) lists all global configuration parameters. The [ReadWriteSplit documentation](../reference/maxscale-routers/maxscale-readwritesplit.md) explains the ReadWriteSplit-router and its features, such as transaction replay and causal reads. The [MariaDB Monitor documentation](../reference/maxscale-monitors/mariadb-monitor.md) explains monitor features such as failover and switchover.

0 commit comments

Comments
 (0)