Skip to content

Commit e71c005

Browse files
authored
Added explanation for the max_wal_senders and max_replication_slot parameter
1 parent 90bd2de commit e71c005

File tree

1 file changed

+10
-16
lines changed

1 file changed

+10
-16
lines changed

articles/reliability/reliability-postgresql-flexible-server.md

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,30 +34,22 @@ Azure Database for PostgreSQL - Flexible Server supports both [zone-redundant an
3434
You can choose the region and the availability zones for both primary and standby servers. The standby replica server is provisioned in the chosen availability zone in the same region with a similar compute, storage, and network configuration as the primary server. Data files and transaction log files (write-ahead logs, a.k.a WAL) are stored on locally redundant storage (LRS) within each availability zone, automatically storing **three** data copies. A zone-redundant configuration provides physical isolation of the entire stack between primary and standby servers.
3535

3636
:::image type="content" source="~/reusable-content/ce-skilling/azure/media/postgresql/concepts-zone-redundant-high-availability-architecture.png" alt-text="Pictures illustrating redundant high availability architecture." lightbox="~/reusable-content/ce-skilling/azure/media/postgresql/concepts-zone-redundant-high-availability-architecture.png":::
37+
38+
The **zone-redundant** option is only available in [regions that have support for availability zones](/azure/postgresql/flexible-server/overview#azure-regions).
39+
40+
Zone-redundant is **not** supported for:
41+
1. Burstable compute tier.
42+
2. Regions with single-zone availability.
3743

3844
- **Zonal**. Choose a zonal deployment when you want to achieve the highest level of availability within a single availability zone, but with the lowest network latency. You can choose the region and the availability zone to deploy both your primary database server. A standby replica server is *automatically* provisioned and managed in the *same* availability zone - with similar compute, storage, and network configuration - as the primary server. A zonal configuration protects your databases from node-level failures and also helps with reducing application downtime during planned and unplanned downtime events. Data from the primary server is replicated to the standby replica in synchronous mode. In the event of any disruption to the primary server, the server is automatically failed over to the standby replica.
3945

4046
:::image type="content" source="./media/postgresql/concepts-same-zone-high-availability-architecture.png" alt-text="Pictures illustrating zonal high availability architecture." lightbox="./media/postgresql/concepts-same-zone-high-availability-architecture.png":::
4147

48+
The **zonal** deployment option is available in all [Azure regions](/azure/postgresql/flexible-server/overview#azure-regions) where you can deploy Flexible Server.
49+
4250
> [!NOTE]
4351
> Both zonal and zone-redundant deployment models architecturally behave the same. Various discussions in the following sections apply to both unless called out otherwise.
4452
45-
### Prerequisites
46-
47-
**Zone redundancy:**
48-
49-
- The **zone-redundancy** option is only available in [regions that support availability zones](/azure/postgresql/flexible-server/overview#azure-regions).
50-
51-
- Zone-redundancy is **not** supported for:
52-
53-
- Azure Database for PostgreSQL – Single Server SKU.
54-
- Burstable compute tier.
55-
- Regions with single-zone availability.
56-
57-
**Zonal:**
58-
59-
- The **zonal** deployment option is available in all [Azure regions](/azure/postgresql/flexible-server/overview#azure-regions) where you can deploy Flexible Server.
60-
6153
### High availability features
6254

6355
- A standby replica is deployed in the same VM configuration - including vCores, storage, network settings - as the primary server.
@@ -80,6 +72,8 @@ Azure Database for PostgreSQL - Flexible Server supports both [zone-redundant an
8072

8173
- Periodic maintenance activities such as minor version upgrades happen at the standby first and, to reduce downtime, the standby is promoted to primary so that workloads can keep on, while the maintenance tasks are applied on the remaining node.
8274

75+
> [!NOTE]
76+
> To ensure High-Availability (HA) functions properly, you should configure the `max_replication_slots` and `max_wal_senders` server parameters. HA requires 4 of each to handle failovers and seamless upgrades. For HA with 5 read replicas and 12 logical replication slots, set both parameters to 21, as each read replica and logical replication slot requires 1 of each, plus the 4 needed for HA.
8377
8478
### Monitor High-Availability Health
8579

0 commit comments

Comments
 (0)