Ask Your Question
0

setup centos7 controller standby in openstack mitaka

asked 2016-08-03 08:06:41 -0600

murugesan gravatar image

updated 2016-08-03 23:36:33 -0600

After installation of two separate controller nodes, how to setup those as standby

I try to setup controller standby using http://docs.openstack.org/ha-guide/shared-database-manage.html (openstack ha document).

I'm using centos7 controllers mariadb version 10.1.16 galera 25.3.5

But in the phase of db cluster, after db cluster service started the cluster size remains 0 in database.

After i changed configuration of my.cnf file as below, db cluster is ready to sync

For controller1

[mysqld]
query_cache_size=0
binlog_format=ROW
default-storage-engine=innodb
innodb_autoinc_lock_mode=2
query_cache_type=0
bind-address=10.10.100.240

# Galera Provider Configuration
wsrep_provider=/usr/lib64/galera/libgalera_smm.so
#wsrep_provider_options="gcache.size=32G"

# Galera Cluster Configuration
wsrep_cluster_name="cluster1"
wsrep_cluster_address="gcomm://"

# Galera Synchronization Congifuration
wsrep_sst_method=rsync


# Galera Node Configuration
wsrep_node_address="10.10.100.240"
wsrep_node_name="node1"
wsrep_on=ON

For controller2

[mysqld]
query_cache_size=0
binlog_format=ROW
default-storage-engine=innodb
innodb_autoinc_lock_mode=2
query_cache_type=0
bind-address=10.10.100.241

# Galera Provider Configuration
wsrep_provider=/usr/lib64/galera/libgalera_smm.so
#wsrep_provider_options="gcache.size=32G"

# Galera Cluster Configuration
wsrep_cluster_name="cluster1"
wsrep_cluster_address="gcomm://10.10.100.240,10.10.100.241"

# Galera Synchronization Congifuration
wsrep_sst_method=rsync
#wsrep_sst_auth=user:pass

# Galera Node Configuration
wsrep_node_address="10.10.100.241"
wsrep_node_name="node2"
wsrep_on=ON

But controller1 db is replicated to controller2, both db has same identical db of controller1 only.

controller1 working fine after db replication but controller2 not due to no db availed.

whats wrong in my setup, is there any other way to setup ha standby controller.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-10-26 06:43:31 -0600

james123007 gravatar image

similar to what I'm looking for: https://ask.openstack.org/en/question/98349/mitaka-multi-controller-node-cluster/ (https://ask.openstack.org/en/question...)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2016-08-03 08:06:41 -0600

Seen: 117 times

Last updated: Aug 03 '16