Skip to content

Commit

Permalink
Merge pull request #5011 from EnterpriseDB/release/2023-11-15
Browse files Browse the repository at this point in the history
Release: 2023-11-15
  • Loading branch information
nidhibhammar authored Nov 15, 2023
2 parents 34b2542 + 0c469eb commit 36d1bcd
Show file tree
Hide file tree
Showing 37 changed files with 411 additions and 107 deletions.
34 changes: 17 additions & 17 deletions install_template/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,55 +162,55 @@ products:
platforms:
- name: CentOS 7
arch: x86_64
supported versions: [13]
supported versions: [13, 16]
- name: RHEL 8
arch: ppc64le
supported versions: [13]
supported versions: [13, 16]
- name: RHEL 9
arch: ppc64le
supported versions: [13]
supported versions: [13, 16]
- name: AlmaLinux 8 or Rocky Linux 8
arch: x86_64
supported versions: [13]
supported versions: [13, 16]
- name: AlmaLinux 9 or Rocky Linux 9
arch: x86_64
supported versions: [13]
supported versions: [13, 16]
- name: RHEL 7 or OL 7
arch: x86_64
supported versions: [13]
supported versions: [13, 16]
- name: RHEL 8 or OL 8
arch: x86_64
supported versions: [13]
supported versions: [13, 16]
- name: RHEL 9 or OL 9
arch: x86_64
supported versions: [13]
supported versions: [13, 16]
- name: Debian 10
arch: x86_64
supported versions: [13]
supported versions: [13, 16]
- name: Debian 11
arch: x86_64
supported versions: [13]
supported versions: [13, 16]
- name: Ubuntu 18.04
arch: x86_64
supported versions: [13]
supported versions: [13, 16]
- name: Ubuntu 20.04
arch: x86_64
supported versions: [13]
supported versions: [13, 16]
- name: Ubuntu 22.04
arch: x86_64
supported versions: [13]
supported versions: [13, 16]
- name: SLES 12
arch: x86_64
supported versions: [13]
supported versions: [13, 16]
- name: SLES 12
arch: ppc64le
supported versions: [13]
supported versions: [13, 16]
- name: SLES 15
arch: x86_64
supported versions: [13]
supported versions: [13, 16]
- name: SLES 15
arch: ppc64le
supported versions: [13]
supported versions: [13, 16]
- name: EDB pgBouncer
platforms:
- name: CentOS 7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ navTitle: Managing clusters
deepToC: true
---

These examples show Azure as the cloud provider unless indicated otherwise. The functionality is the same when using AWS or Google Cloud.
These examples show Azure as the cloud provider unless indicated otherwise.

Although the functionality is the same when using AWS or Google Cloud, there may be additional input flags based on the cloud provider type. Use the `-h` or `--help` flags for more information on the CLI commands.

## Managing single-node and primary/standby high-availability clusters

Expand All @@ -27,6 +29,8 @@ Cluster architecture: Primary/Standby High Availability
Number of standby replicas: 2 Replicas
Enable read-only workloads: No
Provider: Azure
Cloud Provider Subscription ID: "111,222"
Service Account IDs, (leave empty to stop adding): "[email protected]"
Cluster Name: my-biganimal-cluster
Password: ****************
PostgreSQL type: EDB Postgres Advanced Server
Expand Down Expand Up @@ -77,34 +81,41 @@ You can use the `create --config-file` command to create one or more clusters wi
Here's a sample configuration file in YAML format with Azure specified as the provider:

```yaml
# config_file.yaml
---
clusterArchitecture: ha # <string: cluster architecture, valid values ["single" | "ha" | "eha"]>
haStandbyReplicas: 2 # <number: Number of standby replicas. Field must be specified if user has selected primary/standby high availability cluster type. Default value is 2, valid values [1, 2].>
provider: azure # <string: cloud provider id>
clusterName: my-biganimal-cluster # <string: cluster name>
password: ************ # <string: cluster password (must be at least 12 characters)>
iamAuthentication: false # <bool: Identity and Access Management, enabling IAM authentication will allow database users to authenticate to Postgres using your cloud provider's IAM(currently supported only for AWS). You can set up IAM authentication after your cluster is provisioned.>
postgresType: epas # <string: postgresType id, valid values ["postgres" | "epas" | "pgextended"]>
postgresVersion: "14" # <string: postgres version>
region: eastus # <string: provider region id>
instanceType: azure:Standard_E2s_v3 # <string: instance type id>
volumeType: azurepremiumstorage # <string: volume type id>
volumeProperties: P1 # <string: Applicable to Azure only, volume properties id>
volumePropertySize: "4Gi" # <string: Applicable to AWS gp3 only and Azure Ultradisk, volume size in Byte, you may append unit suffix 'Gi' or 'G'.>
volumePropertyIOPS: 3000 # <number>: Applicable to AWS gp3 and Azure Ultradisk, volume Input/Output Operations Per Second>
networking: public # <string: input "private" or "public" network>
allowIpRangeMap: # <list: IP Range to allow network traffic to your cluster from the public Internet>
- cidr: 9.9.9.9/28 # <string: CIDR of allowed source IP range>
description: Allow traffic from App A # <string: The description of this allowed ip range>
- cidr: 10.10.10.10/27 # <string: CIDR of allowed source IP range>
description: Allow traffic from App B # <string: The description of this allowed ip range>
pgConfigMap: # <Object: Postgres configuration>
application_name: test_app # <string: set the database "application_name" property to "test_app">
array_nulls: true # <bool: set the database "array_nulls" property to True>
backupRetentionPeriod: 30d # <string: Use strings like β€œ7dβ€œ or β€œ2wβ€œ or β€œ3m” to specify days (1-180), weeks (1-25) or months (1-6) to set retention period>
readOnlyWorkloads: # <bool: Set True to enable read-only connection and route all read-only queries to standby replicas and reduce the workload on primary>
---
# config_file.yaml
---
clusterArchitecture: ha # <string: cluster architecture, valid values ["single" | "ha" ]>
haStandbyReplicas: 2 # <number: Number of standby replicas. Field must be specified if user has selected Primary/Standby High Availability cluster type. Default value is 2, valid values [1, 2].>
provider: azure # <string: cloud provider id, valid values ["azure", "aws", "gcp"]>
cspSubscriptionIDs: # <list: cloud provider subscription/account ID, required when cluster is BigAnimal hosted>
- 123123123 # <string>
- 456456456 # <string>
serviceAccountIds: # <list: A Google Cloud Service Account is used for logs. If you leave this blank, then you will be unable to access log details for this cluster. Required when cluster is BigAnimal hosted>
- service-account-1234567b@development-data-123456.iam.gserviceaccount.com# <string>
- service-account-1234567b@development-data-123456.iam.gserviceaccount.com# <string>
clusterName: biganimal_cluster # <string: cluster name>
password: ************ # <string: cluster password (must be at least 12 characters)>
# refer following link for steps to setup IAM: https://www.enterprisedb.com/docs/biganimal/latest/using_cluster/01_postgres_access/iam-authentication-for-postgres
iamAuthentication: true # <bool: Identity and Access Management, enabling IAM authentication will allow database users to authenticate to Postgres using your cloud provider's IAM(currently supported only for AWS). You can set up IAM authentication after your cluster is provisioned.>
postgresType: epas # <string: postgresType id, valid values ["postgres" | "epas" | "pgextended"]>
postgresVersion: 14 # <string: postgres version>
region: eastus # <string: provider region id>
instanceType: azure:Standard_E2s_v3 # <string: instance type id>
volumeType: azurepremiumstorage # <string: volume type id>
volumeProperties: P1 # <string: Applicable to Azure Premium Storage only, volume properties id>
volumePropertySize: 4Gi # <string: Not Applicable to Azure Premium Storage, volume size in Gibibytes or Tebibytes, you may append unit suffix Ti,Gi(the default unit).>
volumePropertyIOPS: 1000 # <number>: Not Applicable to Azure Premium Storage and GCP:[pd-ssd], volume Input/Output Operations Per Second>
networking: public # <string: input "private" or "public" network>
allowIpRangeMap: # <list: IP Range to allow network traffic to your cluster from the public Internet>
- cidr: 9.9.9.9/28 # <string: CIDR of allowed source IP range>
description: Allow traffic from App A # <string: The description of this allowed ip range>
- cidr: 10.10.10.10/27 # <string: CIDR of allowed source IP range>
description: Allow traffic from App B # <string: The description of this allowed ip range>
readOnlyWorkloads: true # <bool: Set True to enable read-only connection and route all read-only queries to standby replicas and reduce the workload on primary>
pgConfigMap: # <Object: Postgres configuration>
application_name: test_app # <string: set the database "application_name" property to "test_app">
array_nulls: true # <bool: set the database "array_nulls" property to True>
backupRetentionPeriod: 30d # <string: Retention period must be between 1-180 days or 1-25 weeks or 1-6 months. Using strings like "7d" or "2w" or "3m" to specify days, weeks and months respectively.>
---
```

!!! Note
Expand All @@ -126,15 +137,15 @@ To enable you to view valid values to use in the configuration file for BigAnima
```shell
biganimal cluster show-architectures
__OUTPUT__
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Architecture β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ ID β”‚ Name β”‚ Status β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ ha β”‚ Primary/Standby High Availability β”‚ enabled β”‚
β”‚ pgd β”‚ Extreme High Availability β”‚ disabled β”‚
β”‚ single β”‚ Single Node β”‚ enabled β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Architecture β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ ID β”‚ Name β”‚ Status β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ ha β”‚ Primary/Standby High Availability β”‚ enabled β”‚
β”‚ pgd β”‚ Extreme High Availability β”‚ disabled β”‚
β”‚ single β”‚ Single Node β”‚ enabled β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
```

!!!Tip
Expand All @@ -151,12 +162,14 @@ biganimal cluster show-connection \
--provider "azure" \
--region "eastus"
__OUTPUT__
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Access Type β”‚ Connection String β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ read-write β”‚ postgresql://[email protected]:5432/edb_admin β”‚
β”‚ read-only β”‚ Disabled β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€-----------──┬──────────────────────────────────────────────────────────────────────────────────────────┐
β”‚ Name β”‚ Details β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€-----------─┼───────────────────────────────────────────────────────────────────────────────────────────
β”‚ read-write-connection β”‚ postgresql://[email protected]:5432/edb_admin β”‚
β”‚ rw-service-name β”‚ postgresql://[email protected]:5432/edb_admin β”‚
β”‚ read-only-connection β”‚ Disabled β”‚
β”‚ ro-service-name β”‚ Disabled β”‚
└─────────────────-----------β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
```

!!!tip
Expand Down Expand Up @@ -188,6 +201,8 @@ After the cluster is created, you can update attributes of the cluster, includin
- Retention period
- Read-only workloads
- IAM authentication
- Cloud service provider subscription IDs
- Service account IDs

For example, to set the public allowed IP range list, use the `--cidr-blocks` flag:

Expand Down Expand Up @@ -264,6 +279,10 @@ biganimal cluster restore\
--restore-point "2022-01-26T15:04:05+0800" \
--backup-retention-period "2w" \
--read-only-workloads: "true"
--csp-subscription-ids "123123123,456456456"
--service-account-ids "service-account-1234567b@development-data-123456.iam.gserviceaccount.com,
service-account-1234567b@development-data-123456.iam.gserviceaccount.com"
--credential "my_credential"
```

The password for the restored cluster is mandatory. The other parameters, if not specified, inherit the source database's settings.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ __OUTPUT__
? Volume type: Azure Premium Storage
? Volume properties: P1 (4 Gi, 120 Provisioned IOPS, 25 Provisioned MB/s)
? Networking: Public
? Cloud Provider Subscription ID: "111,222"
? Service Account IDs, (leave empty to stop adding): "[email protected]"
? By default your cluster allows all inbound communications, add IP allowed list to restrict the access: No
? Add database config in the format "application_name=sample_app&array_nulls=true", Leave empty for default configuration:
? Backup Retention Period, note backups will incur storage charges from the cloud provider directly. e.g. "7d", "2w" or "3m": 3m
Expand Down Expand Up @@ -70,6 +72,8 @@ __OUTPUT__
? Volume properties: P1 (4 Gi, 120 Provisioned IOPS, 25 Provisioned MB/s)
? Networking: Public
? By default your cluster allows all inbound communications, add IP allowed list to restrict the access: No
? Cloud Provider Subscription ID: "111,222"
? Service Account IDs, (leave empty to stop adding): "[email protected]"
? Add database config in format "application_name=sample_app&array_nulls=true": autovacuum_max_workers=5&autovacuum_vacuum_cost_limit=3000&checkpoint_completion_target=0.9&checkpoint_timeout=15min&cpu_tuple_cost=0.03&effective_cache_size=0.75 * ram&maintenance_work_mem=(0.15 * (ram - shared_buffers) / autovacuum_max_workers) > 1GB ? 1GB : (0.15 * (ram - shared_buffers) / autovacuum_max_workers)&random_page_cost=1.1&shared_buffers=((0.25 * ram) > 80GB) ? 80GB : (0.25 * ram)&tcp_keepalives_idle=120&tcp_keepalives_interval=30&wal_buffers=64MB&wal_compression=on
? Backup Retention Period, use strings like '7d' or '2w' or '3m' to specify days, weeks and months respectively.: 3m
```
Expand Down Expand Up @@ -120,4 +124,4 @@ biganimal cluster [set|get]-maintenance-window
{--enable} [--start-day --start-time]
```

For more information on maintenance windows, see [Periodic maintenance](/biganimal/release/overview/updates).
For more information on maintenance windows, see [Periodic maintenance](/biganimal/release/overview/updates).
Loading

2 comments on commit 36d1bcd

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸŽ‰ Published on https://edb-docs.netlify.app as production
πŸš€ Deployed on https://6554bc5abf0c4608bf50a7c7--edb-docs.netlify.app

Please sign in to comment.