MySQL database cluster project combat (master-slave architecture, mycat, haproxy load balancing, PXC cluster)

table of Contents


Architecture 

PXC cluster deployment

Deployment of master-slave replication cluster

master

slave

Deployment mycat

A node

sever.xml

schema.xml

rule.xml

Set the port and start

test

Two nodes

Deployment HAProxy

Modify the configuration file

Start docker container


 

Architecture 

PXC cluster deployment

Deployment of master-slave replication cluster

master

slave

Test: Create a table in the library and the master node, and then see whether synchronized from the node.

Deployment mycat

A node

sever.xml

schema.xml

rule.xml

Set the port and start

test

Insert test data:

Test Results:

Two nodes

Deployment HAProxy

Modify the configuration file

Start docker container

Published 824 original articles · won praise 369 · views 790 000 +

Guess you like

Origin blog.csdn.net/a772304419/article/details/104037208