• Jérome Perrin's avatar
    generic_mysql: shorter delays before retries · 2de4c80f
    Jérome Perrin authored
    This mysql_update service retries every 30 seconds, but what usually
    happens is that it starts at same time as mariadb, make a first attempt
    at connect which fails because mariadb is not ready, sleep for 30
    seconds, reties and succeed. Which is not efficient because we don't
    need to wait for so long.
    Instead of sleeping for 30 seconds between each retries, start with a
    short delay and increase each time, but not more than 30 seconds.
    2de4c80f
mysql.py 2.02 KB