diff options
author | zeripath <art27@cantab.net> | 2019-10-21 22:20:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-21 22:20:47 +0100 |
commit | d8161ee3fd5d2991f70523b03421af4e6cf5b513 (patch) | |
tree | a8b50be951b69c6d2a10ebaf514ed2bede7f750b /custom | |
parent | 73f8069249f2b88bbe42a8fc3db06f0e91719200 (diff) | |
download | gitea-d8161ee3fd5d2991f70523b03421af4e6cf5b513.tar.gz gitea-d8161ee3fd5d2991f70523b03421af4e6cf5b513.zip |
Expose db.SetMaxOpenConns and allow non MySQL dbs to set conn pool params (#8528)
* Expose db.SetMaxOpenConns and allow other dbs to set their connection params
* Add note about port exhaustion
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Diffstat (limited to 'custom')
-rw-r--r-- | custom/conf/app.ini.sample | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/custom/conf/app.ini.sample b/custom/conf/app.ini.sample index c08dd62e7d..3376760164 100644 --- a/custom/conf/app.ini.sample +++ b/custom/conf/app.ini.sample @@ -317,10 +317,12 @@ LOG_SQL = true DB_RETRIES = 10 ; Backoff time per DB retry (time.Duration) DB_RETRY_BACKOFF = 3s -; Max idle database connections on connnection pool, default is 0 -MAX_IDLE_CONNS = 0 -; Database connection max life time, default is 3s +; Max idle database connections on connnection pool, default is 2 +MAX_IDLE_CONNS = 2 +; Database connection max life time, default is 0 or 3s mysql (See #6804 & #7071 for reasoning) CONN_MAX_LIFETIME = 3s +; Database maximum number of open connections, default is 0 meaning no maximum +MAX_OPEN_CONNS = 0 [indexer] ; Issue indexer type, currently support: bleve or db, default is bleve @@ -870,6 +872,6 @@ TOKEN = QUEUE_TYPE = channel ; Task queue length, available only when `QUEUE_TYPE` is `channel`. QUEUE_LENGTH = 1000 -; Task queue connction string, available only when `QUEUE_TYPE` is `redis`. +; Task queue connection string, available only when `QUEUE_TYPE` is `redis`. ; If there is a password of redis, use `addrs=127.0.0.1:6379 password=123 db=0`. QUEUE_CONN_STR = "addrs=127.0.0.1:6379 db=0" |