mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 17:27:31 +00:00
fix: language.Tag marshalling (#1110)
* fix(searchlimit): increase to 1000 * rafactor: remove unused return * fix(user): marshalling of language tag * fix(spooler): shuffle handlers on start * fix(sql): reduce max open conns from 200 to 25 per pod * chore(deps): google.golang.org/grpc and github.com/lib/pq * chore(deps): update github.com/cockroachdb/cockroach-go/v2
This commit is contained in:
@@ -62,6 +62,10 @@ func (s *SQL) Start() (*sql.DB, error) {
|
||||
if err != nil {
|
||||
return nil, errors.ThrowPreconditionFailed(err, "TYPES-9qBtr", "unable to open database connection")
|
||||
}
|
||||
// as we open many sql clients we set the max
|
||||
// open cons deep. now 3(maxconn) * 8(clients) = max 24 conns per pod
|
||||
client.SetMaxOpenConns(3)
|
||||
client.SetMaxIdleConns(3)
|
||||
return client, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user