Disable Mariadb TZINFO table generation

We have noticed that some quickstart jobs fail due to timeouts waiting
to connect to mariadb. On further investigation I've found that this
slowness is related to bootstrapping of TZINFO tables on initial startup
[0][1].

The workaround for this problem that I've chosen is to disable this
TZINFO generation on startup. Other options include using mariadb 10.4.7
(10.4.8 introduced the issue upstream), switching to mysql or percona,
or increasing out timeout to cover the longer startup time (probably
want to set the timeout around 5 minutes).

[0] https://github.com/docker-library/mariadb/issues/261
[1] https://github.com/docker-library/mariadb/issues/262

Change-Id: Ib27681c1e5ac25a0a5f75a6b1bfb24029d0be3c8
This commit is contained in:
Clark Boylan 2019-11-22 09:26:59 -08:00
parent 03290d8b2a
commit 30418a8f98
1 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,8 @@ services:
MYSQL_DATABASE: zuul
MYSQL_USER: zuul
MYSQL_PASSWORD: secret
# Work around slow db startup when writing TZINFO data.
MYSQL_INITDB_SKIP_TZINFO: 1
scheduler:
depends_on:
- gerritconfig