diff --git a/cmd/icingadb/main.go b/cmd/icingadb/main.go index bd94686d7..cf511f65a 100644 --- a/cmd/icingadb/main.go +++ b/cmd/icingadb/main.go @@ -113,6 +113,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")