Browse Source

Fixing galera cluster size = 1 restart issue.

Galera should start normaly after reboot

Change-Id: I4f1bfb0f0ba8ef4f18bc89e8cf2bc6870a2278a2
master
Dzmitry Stremkouski 6 years ago
parent
commit
fd31960684
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      galera/files/my.cnf

+ 4
- 0
galera/files/my.cnf View File

@@ -61,7 +61,11 @@ innodb_flush_method=O_DIRECT
innodb_doublewrite=0
innodb_autoinc_lock_mode=2
innodb_locks_unsafe_for_binlog=1
{%- if service.members|length > 1 %}
wsrep_cluster_address="gcomm://{% for member in service.members %}{{ member.host}}:4567{% if not loop.last %},{% endif %}{% endfor %}/?pc.wait_prim=no"
{%- else %}
wsrep_cluster_address="gcomm://"
{%- endif %}
wsrep_provider={{ service.wsrep_provider }}
wsrep_cluster_name="openstack"


Loading…
Cancel
Save