Skip to content

Commit 0fcaeaf

Browse files
authored
Merge pull request #259326 from AlicjaKucharczyk/20231122-readreplicarestapi
tabular
2 parents ccd8e1d + 7ddf74e commit 0fcaeaf

File tree

8 files changed

+416
-130
lines changed

8 files changed

+416
-130
lines changed

articles/postgresql/.openpublishing.redirection.postgresql.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,6 +1484,11 @@
14841484
"source_path_from_root": "/articles/postgresql/flexible-server/concepts-networking.md",
14851485
"redirect_url": "/azure/postgresql/flexible-server/concepts-networking-private",
14861486
"redirect_document_id": true
1487+
},
1488+
{
1489+
"source_path_from_root": "/articles/postgresql/flexible-server/how-to-read-replicas-rest-api.md",
1490+
"redirect_url": "/azure/postgresql/flexible-server/how-to-read-replicas-portal",
1491+
"redirect_document_id": true
14871492
}
14881493
]
14891494
}

articles/postgresql/TOC.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -391,12 +391,9 @@
391391
href: flexible-server/how-to-enable-intelligent-performance-cli.md
392392
- name: Replication
393393
items:
394-
- name: Azure portal
394+
- name: Azure portal, REST API
395395
href: flexible-server/how-to-read-replicas-portal.md
396396
displayName: replica
397-
- name: Azure REST API
398-
href: flexible-server/how-to-read-replicas-rest-api.md
399-
displayName: replica rest api
400397
- name: Extensions
401398
items:
402399
- name: Overview

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Because replicas are read-only, they don't directly reduce write-capacity burden
3838

3939
### Considerations
4040

41-
The feature is meant for scenarios where the lag is acceptable and meant for offloading queries. It isn't meant for synchronous replication scenarios where the replica data is expected to be up-to-date. There will be a measurable delay between the primary and the replica. This delay can be in minutes or even hours, depending on the workload and the latency between the primary and the replica. Typically, read replicas in the same region as the primary has less lag than geo-replicas, as the latter often deals with geographical distance-induced latency. For more insights into the performance implications of geo-replication, refer to [Geo-replication](#geo-replication) section. The data on the replica eventually becomes consistent with the data on the primary. Use this feature for workloads that can accommodate this delay.
41+
Read replicas are primarily designed for scenarios where offloading queries is beneficial, and a slight lag is manageable. They are optimized to provide near realtime updates from the primary for most workloads, making them an excellent solution for read-heavy scenarios. However, it's important to note that they are not intended for synchronous replication scenarios requiring up-to-the-minute data accuracy. While the data on the replica eventually becomes consistent with the primary, there may be a delay, which typically ranges from a few seconds to minutes, and in some heavy workload or high-latency scenarios, this could extend to hours. Typically, read replicas in the same region as the primary has less lag than geo-replicas, as the latter often deals with geographical distance-induced latency. For more insights into the performance implications of geo-replication, refer to [Geo-replication](#geo-replication) section. The data on the replica eventually becomes consistent with the data on the primary. Use this feature for workloads that can accommodate this delay.
4242

4343
> [!NOTE]
4444
> For most workloads, read replicas offer near-real-time updates from the primary. However, with persistent heavy write-intensive primary workloads, the replication lag could continue to grow and might only be able to catch up with the primary. This might also increase storage usage at the primary as the WAL files are only deleted once received at the replica. If this situation persists, deleting and recreating the read replica after the write-intensive workloads are completed, you can bring the replica back to a good state for lag.

articles/postgresql/flexible-server/how-to-read-replicas-portal.md

Lines changed: 397 additions & 31 deletions
Large diffs are not rendered by default.

articles/postgresql/flexible-server/how-to-read-replicas-rest-api.md

Lines changed: 0 additions & 83 deletions
This file was deleted.

articles/postgresql/flexible-server/how-to-stop-start-server-cli.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ description: This article describes how to stop/start operations in Azure Databa
44
ms.service: postgresql
55
ms.subservice: flexible-server
66
ms.custom: devx-track-azurecli
7-
ms.author: sunila
8-
author: sunilagarwal
7+
author: AlicjaKucharczyk
8+
ms.author: alkuchar
99
ms.reviewer: ""
1010
ms.topic: how-to
1111
ms.date: 11/30/2021
@@ -21,7 +21,7 @@ This article shows you how to perform restart, start and stop flexible server us
2121

2222
- If you don't have an Azure subscription, create a [free](https://azure.microsoft.com/free/) account before you begin.
2323
- Install or upgrade Azure CLI to the latest version. See [Install Azure CLI](/cli/azure/install-azure-cli).
24-
- Login to Azure account using [az login](/cli/azure/reference-index#az-login) command. Note the **id** property, which refers to **Subscription ID** for your Azure account.
24+
- Log in to Azure account using [az login](/cli/azure/reference-index#az-login) command. Note the **id** property, which refers to **Subscription ID** for your Azure account.
2525

2626
```azurecli-interactive
2727
az login
@@ -33,14 +33,14 @@ This article shows you how to perform restart, start and stop flexible server us
3333
az account set --subscription <subscription id>
3434
```
3535
36-
- Create a PostgreSQL Flexible Server if you have not already created one using the ```az postgres flexible-server create``` command.
36+
- Create a PostgreSQL Flexible Server if you haven't already created one using the ```az postgres flexible-server create``` command.
3737
3838
```azurecli
3939
az postgres flexible-server create --resource-group myresourcegroup --name myservername
4040
```
4141
4242
## Stop a running server
43-
To stop a server, run ```az postgres flexible-server stop``` command. If you are using [local context](/cli/azure/config/param-persist), you don't need to provide any arguments.
43+
To stop a server, run ```az postgres flexible-server stop``` command. If you're using [local context](/cli/azure/config/param-persist), you don't need to provide any arguments.
4444
4545
**Usage:**
4646
```azurecli
@@ -60,7 +60,7 @@ az postgres flexible-server stop
6060
```
6161

6262
## Start a stopped server
63-
To start a server, run ```az postgres flexible-server start``` command. If you are using [local context](/cli/azure/config/param-persist), you don't need to provide any arguments.
63+
To start a server, run ```az postgres flexible-server start``` command. If you're using [local context](/cli/azure/config/param-persist), you don't need to provide any arguments.
6464

6565
**Usage:**
6666
```azurecli
103 KB
Loading

articles/postgresql/flexible-server/quickstart-create-server-python-sdk.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: 'Quickstart: Create an Azure Database for PostgreSQL Flexible Server - Azure libraries (SDK) for Python'
33
description: In this Quickstart, learn how to create an Azure Database for PostgreSQL Flexible server using Azure libraries (SDK) for Python.
4-
author: AwdotiaRomanowna
4+
author: AlicjaKucharczyk
55
ms.service: postgresql
66
ms.subservice: flexible-server
77
ms.custom: devx-track-python-sdk
@@ -61,11 +61,12 @@ def create_postgres_flexible_server(subscription_id, resource_group, server_name
6161

6262
# Create PostgreSQL Flexible Server
6363
server_params = Server(
64+
location='<location>',
6465
sku=Sku(name='Standard_D4s_v3', tier='GeneralPurpose'),
6566
administrator_login='pgadmin',
6667
administrator_login_password='<mySecurePassword>',
6768
storage=Storage(storage_size_gb=32),
68-
version="14",
69+
version="16",
6970
create_mode="Create"
7071
)
7172

@@ -82,7 +83,6 @@ if __name__ == '__main__':
8283
subscription_id = '<subscription_id>'
8384
resource_group = '<resource_group>'
8485
server_name = '<servername>'
85-
location = 'eastus'
8686

8787
create_postgres_flexible_server(subscription_id, resource_group, server_name, location)
8888

@@ -92,11 +92,12 @@ Replace the following parameters with your data:
9292

9393
- **subscription_id**: Your own [subscription ID](../../azure-portal/get-subscription-tenant-id.md#find-your-azure-subscription).
9494
- **resource_group**: The name of the resource group you want to use. The script will create a new resource group if it doesn't exist.
95-
- **server_name**: A unique name that identifies your Azure Database for PostgreSQL server. The domain name `postgres.database.azure.com` is appended to the server name you provide. The server name must be at least 3 characters and at most 63 characters, and can only contain lowercase letters, numbers, and hyphens.
95+
- **server_name**: A unique name that identifies your Azure Database for PostgreSQL - Flexible Server. The domain name `postgres.database.azure.com` is appended to the server name you provide. The server name must be at least 3 characters and at most 63 characters, and can only contain lowercase letters, numbers, and hyphens.
96+
- **location**: The Azure region where you want to create your Azure Database for PostgreSQL - Flexible Server. It defines the geographical location where your server and its data reside. Choose a region close to your users for reduced latency. The location should be specified in the format of Azure region short names, like `westus2`, `eastus`, or `northeurope`.
9697
- **administrator_login**: The primary administrator username for the server. You can create additional users after the server has been created.
9798
- **administrator_login_password**: A password for the primary administrator for the server. It must contain between 8 and 128 characters. Your password must contain characters from three of the following categories: English uppercase letters, English lowercase letters, numbers (0 through 9), and non-alphanumeric characters (!, $, #, %, etc.).
9899

99-
You can also customize other parameters like location, storage size, engine version, etc.
100+
You can also customize other parameters like storage size, engine version, etc.
100101

101102

102103
> [!NOTE]

0 commit comments

Comments
 (0)