Skip to content

Conversation

@josielsouzanordcloud
Copy link
Contributor

@josielsouzanordcloud josielsouzanordcloud commented Nov 17, 2025

Description

Updates the PostgreSQL Flexible Server Terraform module to support high availability configuration. This change adds a new variable postgres_enable_high_availability that allows consumers of the module to enable zone-redundant high availability for their PostgreSQL deployments.

Changes made:

  • Added postgres_enable_high_availability variable to the module
    • Type: bool
    • Nullable: false
    • Default: false
    • Enables zone-redundant high availability when set to true

This is a module template change that enables high availability support across all PostgreSQL Flexible Server deployments that use this module.

Context

High availability is a critical requirement for production database workloads. This module enhancement enables teams to easily configure zone-redundant PostgreSQL deployments, providing:

  • Automatic failover: Synchronous replication to standby server in different availability zone
  • Business continuity: Protection against zone-level failures
  • Data protection: Zero data loss during failover events
  • Production readiness: Meets enterprise SLA requirements

By making this a configurable module parameter with a safe default (false), teams can:

  • Opt-in to high availability for production environments
  • Keep costs lower for non-production environments (dev, review and preprod)
  • Maintain consistent infrastructure-as-code patterns across environments

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

@josielsouzanordcloud josielsouzanordcloud force-pushed the DTOSS-11566-upgrade-postgress-sku branch from 82c27bc to 916a029 Compare November 17, 2025 14:08
@saliceti
Copy link
Contributor

Can you please update the terraform doc?

@josielsouzanordcloud josielsouzanordcloud force-pushed the DTOSS-11566-upgrade-postgress-sku branch from f06dde2 to 665bf34 Compare November 17, 2025 14:17
@josielsouzanordcloud josielsouzanordcloud force-pushed the DTOSS-11566-upgrade-postgress-sku branch from cb0a567 to 4d744d6 Compare November 17, 2025 14:37
Copy link
Contributor

@mrlockstar mrlockstar left a comment

Choose a reason for hiding this comment

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

LGTM

@josielsouzanordcloud josielsouzanordcloud changed the title [DTOSS-11566] - feat: Enable high postgres high availability [DTOSS-11566] - feat: Enable postgres high availability Nov 17, 2025
@josielsouzanordcloud josielsouzanordcloud added this pull request to the merge queue Nov 17, 2025
Merged via the queue into main with commit 57340c6 Nov 17, 2025
13 checks passed
@josielsouzanordcloud josielsouzanordcloud deleted the DTOSS-11566-upgrade-postgress-sku branch November 17, 2025 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants