From b4f76373bbc7780eeda0fdec1491e4151d9ac012 Mon Sep 17 00:00:00 2001 From: mr-forust Date: Mon, 28 Sep 2026 17:01:36 +0200 Subject: [PATCH] fix(gitea): serve issue search from postgres instead of reindexing on boot cron.rebuild_issue_indexer runs at start, so every gitea pod restart reindexed the whole issue index and read ~7MB/s off the rotational disk for an hour. --- gitea/k8s/config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gitea/k8s/config.yaml b/gitea/k8s/config.yaml index 9eb7297..7e08d7b 100644 --- a/gitea/k8s/config.yaml +++ b/gitea/k8s/config.yaml @@ -17,6 +17,12 @@ data: GITEA__mailer__ENABLED: "false" + # No code/issue search needed: bleve reindexes the whole issue index on + # every pod restart (cron.rebuild_issue_indexer RUN_AT_START) and hammers + # the rotational disk for an hour. "db" serves issue search from postgres. + GITEA__indexer__ISSUE_INDEXER_TYPE: "db" + GITEA__indexer__REPO_INDEXER_ENABLED: "false" + GITEA__log__logger.access.MODE: "console, file" USER_UID: "1000" USER_GID: "1000"