postgres: add connection limit

This commit is contained in:
Joost Jager
2021-11-17 09:45:45 +01:00
parent b0fa19e8b0
commit 274faff980
8 changed files with 130 additions and 7 deletions

View File

@@ -1177,6 +1177,11 @@ litecoin.node=ltcd
; disable.
; db.postgres.timeout=
; Postgres maximum number of connections. Set to zero for unlimited. It is
; recommended to set a limit that is below the server connection limit.
; Otherwise errors may occur in lnd under high-load conditions.
; db.postgres.maxconnections=
[bolt]
; If true, prevents the database from syncing its freelist to disk.