Merge bfe9224f44 into 1af4c50ed0
This commit is contained in:
commit
3c712dacb2
|
|
@ -216,7 +216,11 @@ func (c *Cluster) getConnectionPoolerEnvVars() []v1.EnvVar {
|
||||||
|
|
||||||
maxDBConn := *effectiveMaxDBConn / *numberOfInstances
|
maxDBConn := *effectiveMaxDBConn / *numberOfInstances
|
||||||
|
|
||||||
defaultSize := maxDBConn / 2
|
// Following pooler parameters are per pool, which means they have to be
|
||||||
|
// calculated from the global max db connections adjusted by the number of
|
||||||
|
// pairs (database, user).
|
||||||
|
numberOfPools := int32(len(spec.Users) * len(spec.Databases))
|
||||||
|
defaultSize := (maxDBConn / numberOfPools) / 2
|
||||||
minSize := defaultSize / 2
|
minSize := defaultSize / 2
|
||||||
reserveSize := minSize
|
reserveSize := minSize
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue