The change updates mariadb to use version 10. * The percona-xtrabackup repository was added * the custom mysql init script was removed in favor of allowing the packages to resolve its own init script * the install process was modified such that its faster while preserving the variable functionality already implemented. * The Galera cluster.cnf was modified to allow the user to define the wsrep method and a section for xtrabackup was added. * The galera_max_connections option will now appropriately set the max connection value such that any value used will be picked up by the running process. These changes enable us to leverage all of the new features and stability found within the updated version of MariaDB+Galera. DocImpact UpgradeImpact Implements: blueprint upgrade-mariadb-v10 Change-Id: I2d773e569667e07106862507b881e3f0aca85591
16 lines
659 B
Django/Jinja
16 lines
659 B
Django/Jinja
# {{ ansible_managed }}
|
|
|
|
{%- set all_calculated_max_connections = [] %}
|
|
{%- for galera_node in groups['galera_all'] %}
|
|
{%- set _ = all_calculated_max_connections.append(hostvars[galera_node]['ansible_processor_vcpus'] * 100) %}
|
|
{%- endfor %}
|
|
{%- set calculated_min_connections = all_calculated_max_connections | min %}
|
|
{%- set calculated_max_connections = galera_max_connections | default(calculated_min_connections) %}
|
|
|
|
# How long to wait for successfull mysql startup
|
|
# Startup can take a while if it requires a galera state transfer.
|
|
MYSQLD_STARTUP_TIMEOUT=1800
|
|
|
|
ulimit -n {{ calculated_max_connections }}
|
|
ulimit -Hn {{ calculated_max_connections }}
|