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
{{ message }}
This repository was archived by the owner on May 28, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: docs/user/router.md
+18-83Lines changed: 18 additions & 83 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,14 @@
1
1
# Using the MySQL Router
2
2
3
-
When connecting your applications to MySQL clusters created by the MySQL Operator, we recommend that you use the [MySQL Router][1].
3
+
When connecting your applications to MySQL clusters created by the MySQL
4
+
Operator, we recommend that you use the [MySQL Router][1].
4
5
5
-
> The MySQL Router is part of InnoDB cluster, and is lightweight middleware that provides transparent routing between your application and back-end MySQL Servers. It can be used for a wide variety of use cases, such as providing high availability and scalability by effectively routing database traffic to appropriate back-end MySQL Servers. The pluggable architecture also enables developers to extend MySQL Router for custom use cases.
6
+
> The MySQL Router is part of InnoDB cluster, and is lightweight middleware that
7
+
> provides transparent routing between your application and back-end MySQL
8
+
> Servers. It can be used for a wide variety of use cases, such as providing
9
+
> high availability and scalability by effectively routing database traffic to
10
+
> appropriate back-end MySQL Servers. The pluggable architecture also enables
11
+
> developers to extend MySQL Router for custom use cases.
6
12
7
13
## Configuration
8
14
@@ -14,103 +20,32 @@ Typically the MySQL Router is deployed [alongside your application][2].
14
20
15
21
### Create a MySQL Cluster
16
22
17
-
We'll use WordPress as an example of how you might setup the MySQL Router for a a real application. The first thing we want to do is create our MySQL Cluster using the operator.
18
-
19
-
```yaml
20
-
apiVersion: "mysql.oracle.com/v1alpa1"
21
-
kind: Cluster
22
-
metadata:
23
-
name: mysql-wordpress
24
-
spec:
25
-
members: 3
26
-
secretRef:
27
-
name: wordpress-mysql-root-password
28
-
```
23
+
We'll use WordPress as an example of how you might setup the MySQL Router for a
24
+
real application. The first thing we want to do is create our MySQL Cluster
We'll create a standard WordPress application but connect directly to the MySQL Router which runs as a sidecar container alongside inside your Wordpress pod.
If you used a LoadBalancer service to expose your WordPress deployment, you can visit the load balancer IP address and verify your deployment successfully connects to your MySQL cluster.
46
+
If you used a Service type=LoadBalancer to expose your WordPress deployment,
47
+
you can visit the load balancer IP address and verify your deployment
0 commit comments