You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow CPU/Memory resources to be set one-off for pgBackRest repositories
There are cases where it may be helpful to control the container
resource utilization for the pgBackRest repository Deployment that comes
with every PostgreSQL cluster that is managed by the PostgreSQL Operato
.
This modifies the pgcluster CRD to store the resource values pertaining
to the pgBackRest repository. This also adds new flags to the PostgreSQL
Operator client to manage the CPU / memory resources, including:
- `pgo create cluster --pgbackrest-cpu`
- `pgo create cluster --pgbackrest-memory`
- `pgo update cluster --pgbackrest-cpu`
- `pgo update cluster --pgbackrest-memory`
This also fixes a bug with rotating the pgbouncer system account
password, where all pgBouncer Pods would be checked for propagation
vs. just the pgBouncer Pods for the specific cluster. Also there are
some general code cleanups.
Copy file name to clipboardExpand all lines: docs/content/pgo-client/reference/pgo_create_cluster.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,8 @@ pgo create cluster [flags]
33
33
--password-length int If no password is supplied, sets the length of the automatically generated password. Defaults to the value set on the server.
34
34
--password-replication string The password to use for the PostgreSQL replication user.
35
35
--password-superuser string The password to use for the PostgreSQL superuser.
36
+
--pgbackrest-cpu string Set the number of millicores to request for CPU for the pgBackRest repository. Defaults to being unset.
37
+
--pgbackrest-memory string Set the amount of Memory to request for the pgBackRest repository. Defaults to server value (48Mi).
36
38
--pgbackrest-pvc-size string The size of the PVC capacity for the pgBackRest repository. Overrides the value set in the storage class. This is ignored if the storage type of "local" is not used. Must follow the standard Kubernetes format, e.g. "10.1Gi"
37
39
--pgbackrest-repo-path string The pgBackRest repository path that should be utilized instead of the default. Required for standby
38
40
clusters to define the location of an existing pgBackRest repository.
Copy file name to clipboardExpand all lines: docs/content/pgo-client/reference/pgo_update_cluster.md
+24-22Lines changed: 24 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,27 +21,29 @@ pgo update cluster [flags]
21
21
### Options
22
22
23
23
```
24
-
--all all resources.
25
-
--cpu string Set the number of millicores to request for the CPU, e.g. "100m" or "0.1". Overrides the value in "resources-config"
26
-
--disable-autofail Disables autofail capabitilies in the cluster.
27
-
--disable-standby Disables standby mode if enabled in the cluster(s) specified.
28
-
--enable-autofail Enables autofail capabitilies in the cluster.
29
-
-h, --help help for cluster
30
-
--memory string Set the amount of RAM to request, e.g. 1GiB. Overrides the value in "resources-config"
31
-
--no-prompt No command line confirmation.
32
-
--promote-standby Enables standby mode in the cluster(s) specified.
33
-
-s, --selector string The selector to use for cluster filtering.
34
-
--shutdown Shutdown the database cluster if it is currently running.
35
-
--startup Restart the database cluster if it is currently shutdown.
36
-
--tablespace strings Add a PostgreSQL tablespace on the cluster, e.g. "name=ts1:storageconfig=nfsstorage". The format is a key/value map that is delimited by "=" and separated by ":". The following parameters are available:
37
-
38
-
- name (required): the name of the PostgreSQL tablespace
39
-
- storageconfig (required): the storage configuration to use, as specified in the list available in the "pgo-config" ConfigMap (aka "pgo.yaml")
40
-
- pvcsize: the size of the PVC capacity, which overrides the value set in the specified storageconfig. Follows the Kubernetes quantity format.
41
-
42
-
For example, to create a tablespace with the NFS storage configuration with a PVC of size 10GiB:
--cpu string Set the number of millicores to request for the CPU, e.g. "100m" or "0.1". Overrides the value in "resources-config"
26
+
--disable-autofail Disables autofail capabitilies in the cluster.
27
+
--disable-standby Disables standby mode if enabled in the cluster(s) specified.
28
+
--enable-autofail Enables autofail capabitilies in the cluster.
29
+
-h, --help help for cluster
30
+
--memory string Set the amount of RAM to request, e.g. 1GiB. Overrides the value in "resources-config"
31
+
--no-prompt No command line confirmation.
32
+
--pgbackrest-cpu string Set the number of millicores to request for CPU for the pgBackRest repository.
33
+
--pgbackrest-memory string Set the amount of Memory to request for the pgBackRest repository.
34
+
--promote-standby Enables standby mode in the cluster(s) specified.
35
+
-s, --selector string The selector to use for cluster filtering.
36
+
--shutdown Shutdown the database cluster if it is currently running.
37
+
--startup Restart the database cluster if it is currently shutdown.
38
+
--tablespace strings Add a PostgreSQL tablespace on the cluster, e.g. "name=ts1:storageconfig=nfsstorage". The format is a key/value map that is delimited by "=" and separated by ":". The following parameters are available:
39
+
40
+
- name (required): the name of the PostgreSQL tablespace
41
+
- storageconfig (required): the storage configuration to use, as specified in the list available in the "pgo-config" ConfigMap (aka "pgo.yaml")
42
+
- pvcsize: the size of the PVC capacity, which overrides the value set in the specified storageconfig. Follows the Kubernetes quantity format.
43
+
44
+
For example, to create a tablespace with the NFS storage configuration with a PVC of size 10GiB:
0 commit comments