Просмотр исходного кода

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
tags/3.12.0
Clark Boylan 2 месяцев назад
Родитель
Сommit
30418a8f98
1 измененных файлов: 2 добавлений и 0 удалений
  1. +2
    -0
      doc/source/admin/examples/docker-compose.yaml

+ 2
- 0
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

Загрузка…
Отмена
Сохранить