Skip to content

tarople/mysqlrep-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-compose haproxy、mycat、mysql主从集群

包含容器

  • cluster1和cluster2中分别包含3个mysql容器,一个master和两个slave
  • mycat1和mycat2
  • haproxy

下载

git clone https://github.com/tarople/mysqlrep-cluster.git

说明

1、mysql

如需要做多个mysql主从,可复制cluster1,并修改docker-compose.yml的相关配置

2、mycat

如需要做多个mycat,可复制mycat1,并修改docker-compose.yml的相关配置

启动容器

1、进入子目录 2、启动顺序为cluster1cluster2 -> mycat1mycat2 -> haproxy

About

harpoxy mycat mysql主从集群

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published