mirror of
https://github.com/Icinga/icingadb.git
synced 2026-06-08 16:34:29 -04:00
Merge pull request #828 from Icinga/set-ha-conn-limit
HA: Limit max open database connections to `1`
This commit is contained in:
commit
cff2ba343a
1 changed files with 1 additions and 0 deletions
|
|
@ -114,6 +114,7 @@ func run() int {
|
|||
logger.Fatalf("%+v", errors.Wrap(err, "can't create database connection pool from config"))
|
||||
}
|
||||
defer func() { _ = db.Close() }()
|
||||
db.SetMaxOpenConns(1)
|
||||
ha = icingadb.NewHA(ctx, db, heartbeat, logs.GetChildLogger("high-availability"))
|
||||
|
||||
telemetryLogger := logs.GetChildLogger("telemetry")
|
||||
|
|
|
|||
Loading…
Reference in a new issue