tripleo-image-elements/elements/mysql
Kiall Mac Innes 60eba01502 Improve percona cluster initialization
* Switch from /etc/init.d/mysql bootstrap-pxc to
  /etc/init.d/mysql restart-bootstrap when bootstrapping
  a new cluster. This ensures that, even when Percona starts
  at boot, that new config is loaded and the cluster is
  bootstrapped.

* If percona fails to bootstrap or restart, ensure we do not
  touch the initialized file, allowing os-refresh-config to
  try again on the next iteration.

Co-Authored-By: Gregory Haynes <greg@greghaynes.net>
Change-Id: Ia720e40329a1d39db2e25fc917fbf5b5ea85dedc
2014-08-18 13:33:06 +01:00
..
environment.d add some missing “set -ue” declarations 2014-05-20 09:39:55 +02:00
install.d Merge "Fix mysql element on centos7" 2014-08-12 13:38:33 +00:00
os-refresh-config Improve percona cluster initialization 2014-08-18 13:33:06 +01:00
README.md Document the required mysql config values 2014-04-10 11:12:26 -07:00
element-deps Depend on use-ephemeral 2014-08-15 14:59:54 +01:00
source-repository-mysql Use version dir, not LATEST for Percona d/l path 2014-05-08 13:12:02 -07:00

README.md

Installs Percona Xtradb Cluster which is Mysql+HA solution

Mysql and mariadb elements are very similar so both depend on mysql-common element which contains shared logic. See mysql-common for more details about mysql setup.

Heat

A list of IP addresses for nodes in the cluster, the host's IP adddress, and a cluster name must be defined in the heat metadata:

Metadata:
  mysql:
    cluster-name: 'my_cluster'
    host: 192.0.2.3
    nodes: 192.0.2.3,192.0.2.4