Skip to content

Commit 4aac777

Browse files
Merge pull request #217139 from sr-msft/fspg-logical
FSPG: Minor edits to logical replication
2 parents 3482d65 + d6574dc commit 4aac777

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

articles/postgresql/flexible-server/concepts-high-availability.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: sr-msft
66
ms.service: postgresql
77
ms.subservice: flexible-server
88
ms.topic: conceptual
9-
ms.date: 08/03/2022
9+
ms.date: 11/05/2022
1010
---
1111

1212
# High availability concepts in Azure Database for PostgreSQL - Flexible Server
@@ -116,7 +116,7 @@ Unplanned outages include software bugs or infrastructure component failures tha
116116
>[!NOTE]
117117
> Flexible servers configured with zone-redundant high availability provide a recovery point objective (RPO) of **Zero** (no data loss). The recovery time objective (RTO) is expected to be **less than 120s** in typical cases. However, depending on the activity in the primary database server at the time of the failover, the failover may take longer.
118118
119-
After the failover, while a new standby server is being provisioned, applications can still connect to the primary server and proceed with their read/write operations. Once the standby server is established, it will start recovering the logs that were generated after the failover.
119+
After the failover, while a new standby server is being provisioned (which usually takes 5-10 minutes), applications can still connect to the primary server and proceed with their read/write operations. Once the standby server is established, it will start recovering the logs that were generated after the failover.
120120

121121
:::image type="content" source="./media/business-continuity/concepts-high-availability-failover-state.png" alt-text="high availability - failover":::
122122

articles/postgresql/flexible-server/concepts-limits.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: sunilagarwal
66
ms.service: postgresql
77
ms.subservice: flexible-server
88
ms.topic: conceptual
9-
ms.date: 11/30/2021
9+
ms.date: 11/05/2022
1010
---
1111

1212
# Limits in Azure Database for PostgreSQL - Flexible Server
@@ -68,6 +68,8 @@ A PostgreSQL connection, even idle, can occupy about 10 MB of memory. Also, crea
6868
- Currently, storage auto-grow feature isn't available. You can monitor the usage and increase the storage to a higher size.
6969
- When the storage usage reaches 95% or if the available capacity is less than 5 GiB, the server is automatically switched to **read-only mode** to avoid errors associated with disk-full situations.
7070
- We recommend to set alert rules for `storage used` or `storage percent` when they exceed certain thresholds so that you can proactively take action such as increasing the storage size. For example, you can set an alert if the storage percent exceeds 80% usage.
71+
- If you are using logical replication, then you must drop the logical replication slot in the primary server if the corresponding subscriber no longer exists. Otherwise the WAL files start to get accumulated in the primary filling up the storage. If the storage threshold exceeds certain threshold and if the logical replication slot is not in use (due to non-available subscriber), Flexible server automatically drops that unused logical replication slot. That action releases accumulated WAL files and avoids your server becoming unavailable due to storage getting filled situation.
72+
7173

7274
### Networking
7375

@@ -82,7 +84,7 @@ A PostgreSQL connection, even idle, can occupy about 10 MB of memory. Also, crea
8284

8385
### Availability zones
8486

85-
- Manually moving servers to a different availability zone is currently not supported.
87+
- Manually moving servers to a different availability zone is currently not supported. However, you can enable HA using the preferred AZ as the standby zone. Once established, you can failover to the standby and subsequently disable HA.
8688

8789
### Postgres engine, extensions, and PgBouncer
8890

articles/postgresql/flexible-server/concepts-logical.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.date: 11/30/2021
1111

1212
# Logical replication and logical decoding in Azure Database for PostgreSQL - Flexible Server
1313

14-
[! INCLUDE [!INCLUDE [applies-to-postgresql-flexible-server](../includes/applies-to-postgresql-flexible-server.md)]
14+
[!INCLUDE [applies-to-postgresql-flexible-server](../includes/applies-to-postgresql-flexible-server.md)]
1515

1616
Azure Database for PostgreSQL - Flexible Server supports the following logical data extraction and replication methodologies:
1717
1. **Logical replication**
@@ -35,8 +35,6 @@ Logical replication:
3535
Logical decoding:
3636
* Extracts changes across all tables in a database.
3737

38-
>[!NOTE]
39-
> As at this time, Flexible server does not support cross-region read replicas. Depending on the type of workload, you may choose to use logical replication feature for cross-region disaster recovery (DR) purpose.
4038

4139
## Pre-requisites for logical replication and logical decoding
4240

@@ -105,7 +103,6 @@ Visit the PostgreSQL documentation to understand more about [logical replication
105103

106104
Here is an example of configuring pglogical at the provider database server and the subscriber. Refer to [pglogical extension documentation](https://github.com/2ndQuadrant/pglogical#usage) for more details. Also make sure you have performed pre-requisite tasks listed above.
107105

108-
109106
1. Install pglogical extension in the database in both the provider and the subscriber database servers.
110107
```SQL
111108
\C myDB
@@ -241,9 +238,11 @@ SELECT * FROM pg_replication_slots;
241238

242239
## Limitations
243240
* **Logical replication** limitations apply as documented [here](https://www.postgresql.org/docs/12/logical-replication-restrictions.html).
244-
* **Read replicas** - Azure Database for PostgreSQL read replicas are not currently supported with flexible servers.
245241
* **Slots and HA failover** - Logical replication slots on the primary server are not available on the standby server in your secondary AZ. This situation applies to you if your server uses the zone-redundant high availability option. In the event of a failover to the standby server, logical replication slots will not be available on the standby.
246242

243+
>[!IMPORTANT]
244+
> You must drop the logical replication slot in the primary server if the corresponding subscriber no longer exists. Otherwise the WAL files start to get accumulated in the primary filling up the storage. If the storage threshold exceeds certain threshold and if the logical replication slot is not in use (due to non-available subscriber), Flexible server automatically drops that unused logical replication slot. That action releases accumulated WAL files and avoids your server becoming unavailable due to storage getting filled situation.
245+
247246
## Next steps
248247
* Learn more about [networking options](concepts-networking.md)
249248
* Learn about [extensions](concepts-extensions.md) available in flexible server

0 commit comments

Comments
 (0)