Skip to content

Commit 634e405

Browse files
Merge pull request #268229 from AlicjaKucharczyk/main
polishing
2 parents 28a10b9 + d76b5b4 commit 634e405

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

articles/postgresql/flexible-server/concepts-read-replicas.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: This article describes the read replica feature in Azure Database f
44
author: AlicjaKucharczyk
55
ms.author: alkuchar
66
ms.reviewer: maghan
7-
ms.date: 01/16/2024
7+
ms.date: 03/06/2024
88
ms.service: postgresql
99
ms.subservice: flexible-server
1010
ms.custom:
@@ -214,6 +214,9 @@ Virtual Endpoints offer two distinct types of connection points:
214214

215215
**Read-Only Endpoint**: This endpoint can be configured by users to point either to a read replica or the primary server. However, it can only target one server at a time. Load balancing between multiple servers isn't supported. You can adjust the target server for this endpoint anytime, whether before or after promotion.
216216

217+
> [!NOTE]
218+
> You can create only one writer and one read-only endpoint per primary and one of its replica.
219+
217220
### Virtual Endpoints and Promote Behavior
218221

219222
In the event of a promote action, the behavior of these endpoints remains predictable.
@@ -248,7 +251,7 @@ Learn how to [create virtual endpoints](how-to-read-replicas-portal.md#create-vi
248251
Read replica feature in Azure Database for PostgreSQL flexible server relies on replication slots mechanism. The main advantage of replication slots is the ability to adjust the number of transaction logs automatically (WAL segments) needed by all replica servers and, therefore, avoid situations when one or more replicas go out of sync because WAL segments that weren't yet sent to the replicas are being removed on the primary. The disadvantage of the approach is the risk of going out of space on the primary in case the replication slot remains inactive for an extended time. In such situations, primary accumulates WAL files causing incremental growth of the storage usage. 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.
249252
Therefore, monitoring the replication lag and replication slots status is crucial for read replicas.
250253

251-
We recommend setting alert rules for storage used or storage percentage, and for replication lags, when they exceed certain thresholds so that you can proactively act, increase the storage size, and delete lagging read replicas. For example, you can set an alert if the storage percentage exceeds 80% usage, and if the replica lag is higher than 1 h. The [Transaction Log Storage Used](concepts-monitoring.md#default-metrics) metric shows you if the WAL files accumulation is the main reason of the excessive storage usage.
254+
We recommend setting alert rules for storage used or storage percentage, and for replication lags, when they exceed certain thresholds so that you can proactively act, increase the storage size, and delete lagging read replicas. For example, you can set an alert if the storage percentage exceeds 80% usage, and if the replica lag is higher than 5 minutes. The [Transaction Log Storage Used](concepts-monitoring.md#default-metrics) metric shows you if the WAL files accumulation is the main reason of the excessive storage usage.
252255

253256
Azure Database for PostgreSQL flexible server provides [two metrics](concepts-monitoring.md#replication) for monitoring replication. The two metrics are **Max Physical Replication Lag** and **Read Replica Lag**. To learn how to view these metrics, see the **Monitor a replica** section of the [read replica how-to article](how-to-read-replicas-portal.md#monitor-a-replica).
254257

@@ -328,7 +331,7 @@ A read replica is created as a new Azure Database for PostgreSQL flexible server
328331

329332
### Resource move
330333

331-
Users can create read replicas in a different resource group than the primary. However, moving read replicas to another resource group after their creation is unsupported. Additionally, moving replica(s) to a different subscription, and moving the primary that has read replica(s) to another resource group or subscription, needs to be supported.
334+
Users can create read replicas in a different resource group than the primary. However, moving read replicas to another resource group after their creation is unsupported. Additionally, moving replica(s) to a different subscription, and moving the primary that has read replica(s) to another resource group or subscription, it's not supported.
332335

333336
### Promote
334337

0 commit comments

Comments
 (0)