diff options
author | Paul Brackin <pbrackin@users.noreply.github.com> | 2019-01-19 13:17:08 -0800 |
---|---|---|
committer | techknowlogick <hello@techknowlogick.com> | 2019-01-19 16:17:08 -0500 |
commit | 1bb22b2b4777b47b05bf023d7737c03dc9560b09 (patch) | |
tree | 37373f5a1f9d13c66bdee8579f4455a3b316cfb6 /custom | |
parent | f54e0d2f16b7e29b01d5745d94915e5ef52a9455 (diff) | |
download | gitea-1bb22b2b4777b47b05bf023d7737c03dc9560b09.tar.gz gitea-1bb22b2b4777b47b05bf023d7737c03dc9560b09.zip |
Make db connect more robust (#5738)
Diffstat (limited to 'custom')
-rw-r--r-- | custom/conf/app.ini.sample | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/custom/conf/app.ini.sample b/custom/conf/app.ini.sample index 20de7236bc..6fe3e984de 100644 --- a/custom/conf/app.ini.sample +++ b/custom/conf/app.ini.sample @@ -242,6 +242,11 @@ SQLITE_TIMEOUT = 500 ITERATE_BUFFER_SIZE = 50 ; Show the database generated SQL LOG_SQL = true +; Maximum number of DB Connect retries +DB_RETRIES = 10 +; Backoff time per DB retry (time.Duration) +DB_RETRY_BACKOFF = 3s + [indexer] ISSUE_INDEXER_PATH = indexers/issues.bleve |