diff --git a/charts/postgres-operator/values-crd.yaml b/charts/postgres-operator/values-crd.yaml index 903520fad..0c21ccade 100644 --- a/charts/postgres-operator/values-crd.yaml +++ b/charts/postgres-operator/values-crd.yaml @@ -281,7 +281,7 @@ configConnectionPool: # default pooling mode connection_pool_mode: "transaction" # number of pooler instances - connection_pool_number_of_instances: 1 + connection_pool_number_of_instances: 2 # default resources connection_pool_default_cpu_request: "1" connection_pool_default_memory_request: "100Mi" diff --git a/manifests/postgresql-operator-default-configuration.yaml b/manifests/postgresql-operator-default-configuration.yaml index be7643892..83f5692de 100644 --- a/manifests/postgresql-operator-default-configuration.yaml +++ b/manifests/postgresql-operator-default-configuration.yaml @@ -129,6 +129,6 @@ configuration: connection_pool_image: "registry.opensource.zalan.do/acid/pgbouncer:master-5" # connection_pool_max_db_connections: 60 connection_pool_mode: "transaction" - connection_pool_number_of_instances: 1 + connection_pool_number_of_instances: 2 # connection_pool_schema: "pooler" # connection_pool_user: "pooler" diff --git a/pkg/util/config/config.go b/pkg/util/config/config.go index 31abdb13e..3f8b5b9d5 100644 --- a/pkg/util/config/config.go +++ b/pkg/util/config/config.go @@ -86,7 +86,7 @@ type LogicalBackup struct { // Operator options for connection pooler type ConnectionPool struct { - NumberOfInstances *int32 `name:"connection_pool_number_of_instances" default:"1"` + NumberOfInstances *int32 `name:"connection_pool_number_of_instances" default:"2"` Schema string `name:"connection_pool_schema" default:"pooler"` User string `name:"connection_pool_user" default:"pooler"` Image string `name:"connection_pool_image" default:"registry.opensource.zalan.do/acid/pgbouncer:master-5"`