-
-
Notifications
You must be signed in to change notification settings - Fork 434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provision of resources in a popular cloud providers for PostgreSQL cluster deployment #464
Conversation
Test: AWS
Result:
passed |
Test: GCP
Result:
passed |
Test: DigitalOcean
Result:
passed |
Test: Hetzner
Result:
passed |
Test: Azure
Result:
passed |
Note: Applicable only for "aws", "gcp", "azure", because: - "digitalocean" - requires the Spaces access keys "AWS_ACCESS_KEY_ID" and "AWS_SECRET_ACCESS_KEY" - "hetzner" - currently, Hetzner Cloud does not provide S3 storage
Tests have shown that distributions such as Rocky Linux, AlmaLinux, Oracle Linux, and CentOS Stream are not yet supported.
Test: Azure Load Balancer
result:
Check Primary
Check Replica
Test switchover/failover
check:
passed Note: Azure load balancer doesn’t support the scenario of accessing the frontend of internal load balancer from the participating backend pool virtual machine. Please refer this document for detailed information. |
Issue: #458
Provision of cloud resources (virtual machine + disk) to a popular cloud providers for PostgreSQL cluster deployment:
Create a Cloud Load Balancer - entry point for connecting to a database in a cluster (if 'cloud_load_balancer' is 'true', default: true)
Create a Bucket in the cloud and configure backups to this bucket (if 'pgbackrest_install' or 'wal_g_instal' is 'true'). Enabled by default (pgbackrest) for AWS, GCP, and Azure. Add the
pgbackrest_auto_conf=false
variable if you want to manage the backup configuration yourself.Role:
cloud-resources
Examples:
AWS
Note: "ami-05fb0b8c1424f266b" is Ubuntu 22.04 LTS (from 2023-12-07)
GCP
Azure
Note: instead of 'server_image', use variables:
azure_vm_image_offer
,azure_vm_image_publisher
,azure_vm_image_sku
,azure_vm_image_version
. Default: '0001-com-ubuntu-server-jammy', 'Canonical', '22_04-lts-gen2', 'latest'.DigitalOcean
Hetzner Cloud
Additionally:
vitabaks/postgresql_cluster
'authorized-keys
ssh_public_keys
(optional, default '')mount
/etc/fstab
and mount the file systemmount
(optional, default '')pg_data_mount_path
(default '/pgdata')pg_data_mount_fstype
(default 'ext4')zfs
' specified in themount.fstype
variable.patroni_superuser_password
,patroni_replication_password
,patroni_restapi_password
,pgbouncer_auth_password
(if not defined)mask_password
' is 'true
' (default 'false'), do not print the superuser password in connection infoperf
,FlameGraph
and postgres dbgsym/debuginfo packagesinstall_perf
, default 'false'enable_<extension_name>=true
variable.pre_deploy_command
,post_deploy_command
Consider sponsoring the project via GitHub or Patreon