🚀 raise gitea DB MAX_IDLE_CONNS from 2 to 10 🚀

- Increase MAX_IDLE_CONNS in the app.ini template to keep more idle database connections pooled
- Reduces connection churn, since CONN_MAX_LIFETIME is only 3s and MAX_OPEN_CONNS is 100

rootfs/tmp/etc/gitea/app.ini
This commit is contained in:
casjay committed 2026-10-16 10:18:22 -04:00
1 parent 314d5e58bb
commit 5602cfe9bd
1 file changed
+1 -1
+1 -1
View File
@@ -157,7 +157,7 @@ SQLITE_JOURNAL_MODE = WAL
SSL_MODE = disable SSL_MODE = disable
CHARSET = utf8 CHARSET = utf8
PATH = REPLACE_DATABASE_DIR/gitea.db PATH = REPLACE_DATABASE_DIR/gitea.db
MAX_IDLE_CONNS = 2 MAX_IDLE_CONNS = 10
MAX_OPEN_CONNS = 100 MAX_OPEN_CONNS = 100
CONN_MAX_LIFETIME = 3s CONN_MAX_LIFETIME = 3s
SQLITE_TIMEOUT = 5000 SQLITE_TIMEOUT = 5000