openstack controller节点高可用

基本环境配置

修改hosts文件

#cat /etc/hosts

# controller

10.0.0.11      controller # virtual IP

10.0.0.12      controller1

10.0.0.13      controller2

10.0.0.14      controller3

memcache相关配置,例如keystone配置

Memcached_servers=controller1:11211,controller2:11211,controller3:11211

配置共享服务

数据库配置

[mysqld]

datadir=/var/lib/mysql

socket=/var/lib/mysql/mysql.sock

user=mysql

binlog_format=ROW

bind-address=10.0.0.12

# InnoDB Configuration

default_storage_engine=innodb

innodb_autoinc_lock_mode=2

innodb_flush_log_at_trx_commit=0

innodb_buffer_pool_size=122M

# Galera Cluster Configuration

wsrep_provider=/usr/lib/libgalera_smm.so

wsrep_provider_options="pc.recovery=TRUE;gcache.size=300M"

wsrep_cluster_name="my_example_cluster"

wsrep_cluster_address="gcomm://GALERA1-IP,GALERA2-IP,GALERA3-IP"

wsrep_sst_method=rsync

可能需要添加

wsrep_node_address="192.168.1.1"

wsrep_node_name="Galera1"

你可能感兴趣的:(openstack controller节点高可用)