Skip to content

Commit 49d86ef

Browse files
authored
Merge pull request #1943 from EnterpriseDB/release/2021-10-15
2 parents 826e242 + 3d7a439 commit 49d86ef

File tree

12 files changed

+181
-171
lines changed

12 files changed

+181
-171
lines changed

advocacy_docs/kubernetes/cloud_native_postgresql/api_reference.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,8 @@ Name | Description
341341
`certificates ` | The configuration for the CA and related certificates, initialized with defaults. | [CertificatesStatus](#CertificatesStatus)
342342
`firstRecoverabilityPoint ` | The first recoverability point, stored as a date in RFC3339 format | string
343343
`cloudNativePostgresqlCommitHash` | The commit hash number of which this operator running | string
344+
`currentPrimaryTimestamp ` | The timestamp when the last actual promotion to primary has occurred | string
345+
`targetPrimaryTimestamp ` | The timestamp when the last request for a new primary has occurred | string
344346

345347
<a id='ConfigMapKeySelector'></a>
346348

advocacy_docs/kubernetes/cloud_native_postgresql/backup_recovery.mdx

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,8 @@ You can also schedule your backups periodically by creating a
401401
resource named `ScheduledBackup`. The latter is similar to a
402402
`Backup` but with an added field, called `schedule`.
403403

404-
This field is a [Cron](https://en.wikipedia.org/wiki/Cron) schedule
405-
specification with a prepended field for seconds. This schedule format
406-
is the same used in Kubernetes CronJobs.
404+
This field is a *cron schedule* specification, which follows the same
405+
[format used in Kubernetes CronJobs](https://pkg.go.dev/github.com/robfig/cron#hdr-CRON_Expression_Format).
407406

408407
This is an example of a scheduled backup:
409408

@@ -418,7 +417,20 @@ spec:
418417
name: pg-backup
419418
```
420419

421-
The proposed specification will schedule a backup every day at midnight.
420+
The above example will schedule a backup every day at midnight.
421+
422+
!!! Hint
423+
Backup frequency might impact your recovery time object (RTO) after a
424+
disaster which requires a full or Point-In-Time recovery operation. Our
425+
advice is that you regularly test your backups by recovering them, and then
426+
measuring the time it takes to recover from scratch so that you can refine
427+
your RTO predictability. Recovery time is influenced by the size of the
428+
base backup and the amount of WAL files that need to fetched from the archive
429+
and replayed during recovery (remember that WAL archiving is what enables
430+
continuous backup in PostgreSQL!).
431+
Based on our experience, a weekly base backup is more than enough for most
432+
cases - while it is extremely rare to schedule backups more frequently than once
433+
a day.
422434

423435
ScheduledBackups can be suspended if needed by setting `.spec.suspend: true`,
424436
this will stop any new backup to be scheduled as long as the option is set to false.

advocacy_docs/kubernetes/cloud_native_postgresql/cloud_setup.mdx

Lines changed: 0 additions & 114 deletions
This file was deleted.

advocacy_docs/kubernetes/cloud_native_postgresql/index.mdx

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,23 @@ Please refer to the
9494
["Platform Compatibility"](https://www.enterprisedb.com/product-compatibility#cnp)
9595
page from the EDB website for a list of the currently supported Kubernetes distributions.
9696

97-
## Supported PostgreSQL versions
97+
### Multiple architectures
9898

99-
PostgreSQL and EDB Postgres Advanced 13, 12, 11 and 10 are currently supported.
99+
The Cloud Native PostgreSQL Operator container images support the multi-arch
100+
format for the following platforms: `linux/amd64`, `linux/arm64`,
101+
`linux/ppc64le`, `linux/s390x`.
102+
103+
!!! Warning
104+
Cloud Native PostgreSQL requires that all nodes in a Kubernetes cluster have the
105+
same CPU architecture, thus a hybrid CPU architecture Kubernetes cluster is not
106+
supported.
107+
108+
## Supported Postgres versions
109+
110+
The following versions of Postgres are currently supported:
111+
112+
- PostgreSQL 13, 12, 11 and 10 (`linux/amd64`)
113+
- EDB Postgres Advanced 13, 12, 11 and 10 (`linux/amd64`, `linux/ppc64le`, `linux/s390x`)
100114

101115
## Main features
102116

@@ -125,6 +139,7 @@ PostgreSQL and EDB Postgres Advanced 13, 12, 11 and 10 are currently supported.
125139
* Standard output logging of PostgreSQL error messages in JSON format
126140
* Support for the `restricted` security context constraint (SCC) in Red Hat OpenShift
127141
* `cnp` plugin for `kubectl`
142+
* Multi-arch format container images
128143

129144
## About this guide
130145

advocacy_docs/kubernetes/cloud_native_postgresql/installation_upgrade.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ product: 'Cloud Native Operator'
1111
The operator can be installed like any other resource in Kubernetes,
1212
through a YAML manifest applied via `kubectl`.
1313

14-
You can install the [latest operator manifest](https://get.enterprisedb.io/cnp/postgresql-operator-1.9.1.yaml)
14+
You can install the [latest operator manifest](https://get.enterprisedb.io/cnp/postgresql-operator-1.9.2.yaml)
1515
as follows:
1616

1717
```sh
1818
kubectl apply -f \
19-
https://get.enterprisedb.io/cnp/postgresql-operator-1.9.1.yaml
19+
https://get.enterprisedb.io/cnp/postgresql-operator-1.9.2.yaml
2020
```
2121

2222
Once you have run the `kubectl` command, Cloud Native PostgreSQL will be installed in your Kubernetes cluster.

advocacy_docs/kubernetes/cloud_native_postgresql/logging.mdx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -258,16 +258,18 @@ All logs that are produced by the operator and its instances are in JSON
258258
format, with `logger` set accordingly to the process that produced them.
259259
Therefore, all the possible `logger` values are the following ones:
260260

261-
- `barman-cloud-wal-archive`
262-
- `barman-cloud-wal-restore`
263-
- `edb_audit`
264-
- `initdb`
265-
- `pg_basebackup`
266-
- `pg_controldata`
267-
- `pg_ctl`
268-
- `pg_rewind`
269-
- `pgaudit`
270-
- `postgres`
261+
- `barman-cloud-wal-archive`: from `barman-cloud-wal-archive` directly
262+
- `barman-cloud-wal-restore`: from `barman-cloud-wal-restore` directly
263+
- `edb_audit`: from the EDB Audit extension
264+
- `initdb`: from running `initdb`
265+
- `pg_basebackup`: from running `pg_basebackup`
266+
- `pg_controldata`: from running `pg_controldata`
267+
- `pg_ctl`: from running any `pg_ctl` subcommand
268+
- `pg_rewind`: from running `pg_rewind`
269+
- `pgaudit`: from PGAudit extension
270+
- `postgres`: from the `postgres` instance (having `msg` different than `record`)
271+
- `wal-archive`: from the `wal-archive` subcommand of the instance manager
272+
- `wal-restore`: from the `wal-restore` subcommand of the instance manager
271273

272274
Except for `postgres` and `edb_audit` that have the aforementioned structures,
273275
all other possible values just have `msg` set to the escaped message that is

advocacy_docs/kubernetes/cloud_native_postgresql/release_notes.mdx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,23 @@ product: 'Cloud Native Operator'
66

77
History of user-visible changes for Cloud Native PostgreSQL.
88

9+
## Version 1.9.2
10+
11+
**Release date:** 15 October 2021
12+
13+
Features:
14+
15+
- Enhance JSON log with two new loggers: `wal-archive` for PostgreSQL's
16+
`archive_command`, and `wal-restore` for `restore_command` in a standby
17+
18+
Fixes:
19+
20+
- Enable WAL archiving during the standby promotion (prevented `.history` files
21+
from being archived)
22+
- Pass the `--cloud-provider` option to Barman Cloud tools only when using
23+
Barman 2.13 or higher to avoid errors with older operands
24+
- Wait for the pod of the primary to be ready before triggering a backup
25+
926
## Version 1.9.1
1027

1128
**Release date:** 30 September 2021

0 commit comments

Comments
 (0)