openstack mysql ha_Openstack的HA解决方案【mysql集群配置】

使用mysql的galera做多主集群配置,galera的集群优势网络上面有对比,这里不在叙述。

1. 新建3台虚拟机(centos6.5)

node1:172.17.44.163

node2:172.17.44.164

node3:172.17.44.165

他们没有主从关系,所有配置都应该一样。

2. 建立软件源

我们有一个内部的软件yum 源,至于怎么建立源服务器,可参考网络上的介绍,我们的源文件的nailgun.repo

[nailgun]

name=Nailgun

baseurl=http://172.17.44.2:8080/centos/fuelweb/x86_64/

gpgcheck=0

将这个文件放在/etc/yum.repo.d/目录下

3. 搜索和mysql galera有关的软件安装包 执行结果:

[root@ha1 yum.repos.d]# yum search wsrep

Loaded plugins: fastestmirror

Repository base is listed more than once in the configuration

Repository updates is listed more than once in the configuration

Repository extras is listed more than once in the configuration

Repository centosplus is listed more than once in the configuration

Repository contrib is listed more than once in the configuration

Loading mirror speeds from cached hostfile

* base: centos.ustc.edu.cn

* epel: mirrors.ustc.edu.cn

* extras: centos.ustc.edu.cn

* updates: centos.ustc.edu.cn

===================================================================================== N/S Matched: wsrep =======================================

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值