mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-06 05:52:00 +02:00
lower CPU request and update docs
This commit is contained in:
@@ -385,8 +385,8 @@ present.
|
||||
Which docker image to use for connection pool deployment.
|
||||
|
||||
* **maxDBConnections**
|
||||
How many connections the pooler can max hold. This value is divided by the
|
||||
number of pooler pods.
|
||||
How many connections the pooler can max hold. This value is divided among the
|
||||
pooler pods.
|
||||
|
||||
* **mode**
|
||||
In which mode to run connection pool, transaction or session.
|
||||
|
||||
@@ -619,9 +619,9 @@ operator being able to provide some reasonable defaults.
|
||||
Default: "registry.opensource.zalan.do/acid/pgbouncer"
|
||||
|
||||
* **connection_pool_max_db_connections**
|
||||
How many connections the pooler can max hold. This value is divided by the
|
||||
number of pooler pods. Default is 60 which will make up 30 connections per
|
||||
pod for the default setup with two instances.
|
||||
How many connections the pooler can max hold. This value is divided among the
|
||||
pooler pods. Default is 60 which will make up 30 connections per pod for the
|
||||
default setup with two instances.
|
||||
|
||||
* **connection_pool_mode**
|
||||
Default pool mode, `session` or `transaction`. Default is `transaction`.
|
||||
@@ -631,4 +631,4 @@ operator being able to provide some reasonable defaults.
|
||||
**connection_pool_default_cpu_limit**
|
||||
**connection_pool_default_memory_limit**
|
||||
Default resource configuration for connection pool deployment. The internal
|
||||
default for memory limit and request is `100Mi`, for CPU it is `1`.
|
||||
default for memory request and limit is `100Mi`, for CPU it is `500m` and `1`.
|
||||
|
||||
+5
-5
@@ -535,7 +535,7 @@ To configure a new connection pool, specify:
|
||||
spec:
|
||||
connectionPool:
|
||||
# how many instances of connection pool to create
|
||||
number_of_instances: 1
|
||||
number_of_instances: 2
|
||||
|
||||
# in which mode to run, session or transaction
|
||||
mode: "transaction"
|
||||
@@ -550,11 +550,11 @@ spec:
|
||||
# resources for each instance
|
||||
resources:
|
||||
requests:
|
||||
cpu: "100m"
|
||||
memory: "100Mi"
|
||||
cpu: 500m
|
||||
memory: 100Mi
|
||||
limits:
|
||||
cpu: "100m"
|
||||
memory: "100Mi"
|
||||
cpu: "1"
|
||||
memory: 100Mi
|
||||
```
|
||||
|
||||
By default `pgbouncer` is used to create a connection pool. To find out about
|
||||
|
||||
Reference in New Issue
Block a user