Skip to content

Commit

Permalink
Merge pull request #828 from Icinga/set-ha-conn-limit
Browse files Browse the repository at this point in the history
HA: Limit max open database connections to `1`
  • Loading branch information
lippserd authored Dec 17, 2024
2 parents e9fefa2 + ce3309f commit cff2ba3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/icingadb/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit cff2ba3

Please sign in to comment.