Wait for MariaDB to be accessible via HAProxy

Explicitly wait for the database to be accessible via the load balancer.
Sometimes it can reject connections even when all database services are up,
possibly due to the health check polling in HAProxy.

Closes-Bug: #1840145
Change-Id: I7601bb710097a78f6b29bc4018c71f2c6283eef2
This commit is contained in:
Scott Solkhon
2019-08-13 15:27:50 +00:00
parent 41e634e204
commit 03cd7eb356
3 changed files with 20 additions and 0 deletions

View File

@@ -13,6 +13,8 @@
priv: "*.*:USAGE"
run_once: True
- import_tasks: wait_for_loadbalancer.yml
- name: Creating the Percona XtraBackup database
kolla_toolbox:
module_name: mysql_db