From 30418a8f98a8b35a137d9dd1332200bda8cc1302 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Fri, 22 Nov 2019 09:26:59 -0800 Subject: [PATCH] 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 --- doc/source/admin/examples/docker-compose.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/source/admin/examples/docker-compose.yaml b/doc/source/admin/examples/docker-compose.yaml index 785cfdfe71..2e042f35c7 100644 --- a/doc/source/admin/examples/docker-compose.yaml +++ b/doc/source/admin/examples/docker-compose.yaml @@ -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