暂无图片
orchestrator高可用环境搭建
最近更新:2022-07-27 14:50:19

适用范围

mysql多实例搭建高可用环境

方案概述

该方案为数据治理平台搭建的MySQL数据库环境,最终架构采用基于MySQL复制架构,主 备 + 高可用自动切换Orchestrator。前端通过VIP访问数据库,后端通过Orchestrator软件来复制整个MySQL主备环境的高可用实现。

架构图: image.png

生产硬件环境要求(参考): image.png

实施步骤

1. 部署6台mysql实例(其中三台规划为mysql一主两从环境,另外三台规划为orchestrator集群环境)。

2. mysql主从环境搭建

2.1 在mysql主库上创建复制用户

mysql > create user repl@'%' identified by 'password80'; mysql > grant replication slave, replication client on . to repl@'%'; mysql > flush privileges;

2.2 在mysql从库上建立复制关系

mysql > CHANGE MASTER TO MASTER_HOST='10.0.0.51', MASTER_USER='repl', MASTER_PASSWORD='password80', MASTER_PORT=3309, MASTER_AUTO_POSITION = 1; mysql > start slave; set global slave_net_timeout=8; set global read_only=1;

......