Increate try_sleep to 10 for Galera wait-initial-sync

Deployment can fail under high load due to slow MySQL start.

Change-Id: I491f4eed6c12b960f34f1b0ce45d72c62f48ab60
Closes-Bug: 1522350
This commit is contained in:
Bartłomiej Piotrowski 2015-12-03 11:37:34 +01:00
parent da0a273875
commit 7f8d0047e0

View File

@ -288,7 +288,7 @@ class galera (
$user_password_string="-u${mysql_user} -p${mysql_password}"
exec { 'wait-initial-sync':
command => "/usr/bin/mysql ${user_password_string} -Nbe \"show status like 'wsrep_local_state_comment'\" | /bin/grep -q -e Synced -e Initialized && sleep 10",
try_sleep => 5,
try_sleep => 10,
tries => 60,
refreshonly => true,
}