You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/postgresql/migrate/auto-migration-single-to-flexible-postgresql.md
+13-17Lines changed: 13 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Auto-migration
3
3
description: This tutorial describes how to configure notifications, review migration details and FAQs for an Azure Database for PostgreSQL Single Server instance schedule for auto-migration to Flexible Server.
4
4
author: hariramt
5
5
ms.author: hariramt
6
-
ms.reviewer: maghan
6
+
ms.reviewer: shriramm
7
7
ms.date: 06/04/2024
8
8
ms.service: postgresql
9
9
ms.subservice: flexible-server
@@ -21,13 +21,17 @@ ms.custom:
21
21
22
22
The auto-migration provides a highly resilient and self-healing offline migration experience during a planned migration window, with about **10 mins** of downtime. The migration service is a hosted solution using the [pgcopydb](https://github.com/dimitri/pgcopydb) binary and provides a fast and efficient way of copying databases from the source PostgreSQL instance to the target. This migration removes the overhead to manually migrate your server. Post migration, you can take advantage of the benefits of Flexible Server, including better price & performance, granular control over database configuration, and custom maintenance windows. Following described are the key phases of the migration:
23
23
24
-
-**Target Flexible Server is deployed** matches your Single server SKU in terms of performance and cost, inheriting all firewall rules from source Single Server.
24
+
-**Target Flexible Server is deployed**and matches your Single server SKU in terms of performance and cost, inheriting all firewall rules from source Single Server.
25
25
26
26
-**Date is migrated** during the migration window chosen by the service or elected by you. If the window is chosen by the service, it is typically outside business hours of the specific region the server is hosted in.Source Single Server is set to read-only and the data & schema is migrated from the source Single Server to the target Flexible Server. User roles, privileges and ownership of all database objects are also migrated to the flexible server.
27
27
28
28
-**DNS switch and cutover** are performed within the planned migration window with minimal downtime, allowing usage of the same connection string post-migration. Client applications seamlessly connect to the target flexible server without any user driven manual updates or changes. In addition to both connection string formats (Single and Flexible Server) being supported on migrated Flexible Server, both username formats – username@server_name and username are also supported on the migrated Flexible Server.
29
29
30
-
- The **migrated Flexible Server is online** and can now be managed via Azure portal/CLI. The legacy Single Server is deleted seven days after the migration.
30
+
- The **migrated Flexible Server is online** and can now be managed via Azure portal/CLI.
31
+
32
+
- The **updated connection strings** to connect to your old single server are shared with you by email. This can be used to login to the Single server if you want to copy any settings to your new Flexible server.
33
+
34
+
- The **legacy Single Server** is deleted **seven days** after the migration.
31
35
32
36
## Nomination Eligibility
33
37
@@ -41,7 +45,7 @@ Following described are the ways to check and configure auto-migration notificat
41
45
42
46
- Subscription owners for Single Servers scheduled for auto-migration receive an email notification.
43
47
- Configure **service health alerts** to receive auto-migration schedule and progress notifications via email/SMS by following steps [here](../single-server/concepts-planned-maintenance-notification.md#to-receive-planned-maintenance-notification).
44
-
- Check the auto-migration **notification on the Azure portal** by following steps [here](../../single-server/concepts-planned-maintenance-notification.md#check-planned-maintenance-notification-from-azure-portal).
48
+
- Check the auto-migration **notification on the Azure portal** by following steps [here](../single-server/concepts-planned-maintenance-notification.md#check-planned-maintenance-notification-from-azure-portal).
45
49
46
50
Following described are the ways to review your migration schedule once you receive the auto-migration notification:
47
51
@@ -93,17 +97,9 @@ The compute tier and SKU for the target flexible server is provisioned based on
93
97
94
98
Here's the info you need to know post auto-migration:
95
99
96
-
- Copy the following properties from the source Single Server to target Flexible Server post auto-migration operation is completed successfully:
97
-
- Monitoring page settings (Alerts, Metrics, and Diagnostic settings)
98
-
- Any Terraform/CLI scripts you host to manage your Single Server instance should be updated with Flexible Server references.
99
-
- For Single Server instance with Query store enabled, the server parameter 'slow_query_log' on target instance is set to ON to ensure feature parity when migrating to Flexible Server. Note, for certain workloads this could affect performance and if you observe any performance degradation, set this server parameter to 'OFF' on the Flexible Server instance.
100
-
- For Single Server instance with Microsoft Defender for Cloud enabled, the enablement state is migrated. To achieve parity in Flexible Server post auto-migration for properties you can configure in Single Server, consider the details in the following table:
101
-
102
-
| Property | Configuration |
103
-
| --- | --- |
104
-
| properties.disabledAlerts | You can disable specific alert types by using the Microsoft Defender for Cloud platform. For more information, see the article [Suppress alerts from Microsoft Defender for Cloud guide](../../defender-for-cloud/alerts-suppression-rules.md). |
105
-
| properties.emailAccountAdmins, properties.emailAddresses | You can centrally define email notification for Microsoft Defender for Cloud Alerts for all resources in a subscription. For more information, see the article [Configure email notifications for security alerts](../../defender-for-cloud/configure-email-notifications.md). |
106
-
| properties.retentionDays, properties.storageAccountAccessKey, properties.storageEndpoint | The Microsoft Defender for Cloud platform exposes alerts through Azure Resource Graph. You can export alerts to a different store and manage retention separately. For more about continuous export, see the article [Set up continuous export in the Azure portal - Microsoft Defender for Cloud](../../defender-for-cloud/continuous-export.md?tabs=azure-portal). |
100
+
1) The server parameters in Flexible server are tuned to the community standards. If you would like to retain the same server parameter values as your Single server, you can login via Powershell and run this [script](https://github.com/hariramt/auto-migration/blob/main/copy-server-parameters.ps1) to copy all the parameters that have been changed.
101
+
2) To enable [query perf insights](https://learn.microsoft.com/azure/postgresql/flexible-server/concepts-query-performance-insight), you need to enable query store on the Flexible server which is not enabled by default
102
+
3) If [High Availability](https://learn.microsoft.com/azure/reliability/reliability-postgresql-flexible-server) is needed, you can enable it with zero downtime.
107
103
108
104
## Frequently Asked Questions (FAQs)
109
105
@@ -119,7 +115,7 @@ Here's the info you need to know post auto-migration:
119
115
120
116
**A.** Following are the ways you can set up alerts:
121
117
122
-
- Configure service health alerts to receive auto-migration schedule and progress notifications via email/SMS by following steps [here](../../single-server/concepts-planned-maintenance-notification.md#to-receive-planned-maintenance-notification).
118
+
- Configure service health alerts to receive auto-migration schedule and progress notifications via email/SMS by following steps [here](../single-server/concepts-planned-maintenance-notification.md#to-receive-planned-maintenance-notification).
123
119
- Check the auto-migration notification on the Azure portal by following steps [here](../single-server/concepts-planned-maintenance-notification.md#check-planned-maintenance-notification-from-azure-portal).
124
120
125
121
**Q. How can I defer the scheduled migration?**
@@ -136,4 +132,4 @@ Here's the info you need to know post auto-migration:
136
132
137
133
## Related content
138
134
139
-
-[Manage an Azure Database for postgresql - Flexible Server using the Azure portal.](../../flexible-server/how-to-manage-server-portal.md)
135
+
-[Manage an Azure Database for postgresql - Flexible Server using the Azure portal.](../flexible-server/how-to-manage-server-portal.md)
0 commit comments