소스 검색

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 달 전
부모
커밋
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

Loading…
취소
저장