mirror of
https://github.com/casjaysdevdocker/gitea
synced 2026-10-16 16:44:23 -04:00
🚀 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:
1 file changed
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user