From 8f690158382f1652be488e834bc2ccce1d087f15 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Fri, 31 Jul 2020 14:21:50 -0700 Subject: [PATCH] Increase gitea indexer startup timeout The default indexer timeout is 30 seconds. During a recent gitea restart gitea01 hit this timeout five times: 150 seconds. Increase the timeout to double that value: 300 seconds. This is important to ensure that our graceful restarts are in fact graceful. We don't want the sshd container running while web is being restarted multiple times. Doing so can lead to lost replication events from gerrit. Change-Id: I1f9253ccd6fbb055f848e186f478651454fee7e0 --- playbooks/roles/gitea/templates/app.ini.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/playbooks/roles/gitea/templates/app.ini.j2 b/playbooks/roles/gitea/templates/app.ini.j2 index 4a4bb59f54..72d605f63e 100644 --- a/playbooks/roles/gitea/templates/app.ini.j2 +++ b/playbooks/roles/gitea/templates/app.ini.j2 @@ -35,6 +35,7 @@ ROOT = /data/git/repositories [indexer] ISSUE_INDEXER_PATH = /data/gitea/indexers/issues.bleve REPO_INDEXER_ENABLED = true +STARTUP_TIMEOUT = 300 [session] PROVIDER_CONFIG = /data/gitea/sessions