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/migration-service/includes/prerequisites/prerequisites-migration-service-postgresql-online-single-server.md
+19-22Lines changed: 19 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
---
2
2
title: "Prerequisites for the migration service in Azure Database for PostgreSQL (online)"
3
3
description: Providing the prerequisites of the migration service in Azure Database for PostgreSQL
4
-
author: apduvuri
5
-
ms.author: adityaduvuri
4
+
author: hariramt
5
+
ms.author: hariramt
6
6
ms.reviewer: maghan
7
7
ms.date: 03/19/2024
8
8
ms.service: postgresql
@@ -17,6 +17,19 @@ Before you start your migration with migration service in Azure Database for Pos
17
17
18
18
Source PostgreSQL version should be `>= 9.5`. If the source PostgreSQL version is less than `9.5`, upgrade the source PostgreSQL version to `9.5` or higher before migration.
19
19
20
+
### Set up Online migration parameters
21
+
22
+
For Online migration, the replication support should be set to Logical under replication settings of the source PostgreSQL server. In addition, the server parameters `max_wal_senders` and `max_replication_slots` values should be more than the number of Databases that need to be migrated. The parameters can be set in the Azure portal under **Settings->Server Parameters** or configured in the command line using the following commands:
23
+
24
+
- ALTER SYSTEM SET wal_level = logical;
25
+
- ALTER SYSTEM SET max_wal_senders = `number of databases to migrate` + 1;
26
+
- ALTER SYSTEM SET max_replication_slots = `number of databases to migrate` + 1;
27
+
28
+
Ensure that there are no **long running transactions**. Long running transactions don't allow creation of replication slots. The creation of a replication slot will succeed if all long running transactions are committed or rolled-back. You'll need to restart the source PostgreSQL server after completing all the Online migration prerequisites.
29
+
30
+
> [!NOTE]
31
+
> For online migration with Azure Database for PostgreSQL single server, the Azure replication support is set to logical under the replication settings of the single server page in the Azure portal.
32
+
20
33
### Target setup
21
34
22
35
- Azure Database for PostgreSQL must be set up in Azure before migration.
@@ -25,18 +38,9 @@ Source PostgreSQL version should be `>= 9.5`. If the source PostgreSQL version i
25
38
26
39
- For detailed instructions on creating a new Azure Database for PostgreSQL, refer to the following link: [Quickstart: Create server](/azure/postgresql/flexible-server/).
27
40
28
-
### Set up Online migration parameters
29
-
30
-
For Online migration, the replication support should be set to Logical under replication settings of the source PostgreSQL server. In addition, the server parameters `max_wal_senders` and `max_replication_slots` values should be equal to the number of Databases that need to be migrated. They can also be configured in the command line using the following commands:
31
-
32
-
- ALTER SYSTEM SET wal_level = logical;
33
-
- ALTER SYSTEM SET max_wal_senders = `number of databases to migrate`;
34
-
- ALTER SYSTEM SET max_replication_slots = `number of databases to migrate`;
41
+
- The server parameter `max_replication_slots` should be more than the number of Databases that need to be migrated. It can be set in the Azure portal under **Settings->Server Parameters** or configured in the command line using the following command:
35
42
36
-
You'll need to restart the source PostgreSQL server after completing all the Online migration prerequisites.
37
-
38
-
> [!NOTE]
39
-
> For online migration with Azure Database for PostgreSQL single server, the Azure replication support is set to logical under the replication settings of the single server page in the Azure portal.
43
+
- ALTER SYSTEM SET max_replication_slots = `number of databases to migrate` + 1;
40
44
41
45
### Network setup
42
46
@@ -54,19 +58,12 @@ The following table can help set up the network between the source and target.
54
58
55
59
| Source | Target | Connectivity Tips |
56
60
| --- | --- | --- |
57
-
| Public | Public | No other action is required if the source is whitelisted in the target's firewall rules. |
61
+
| Public | Public | No other action is required if the source is allow-listed in the target's firewall rules. |
58
62
| Private | Public | This configuration isn't supported; use pg_dump/pg_restore for data transfer. |
59
-
| Public | Private | No other action is required if the source is whitelisted in the target's firewall rules. |
63
+
| Public | Private | No other action is required if the source is allow-listed in the target's firewall rules. |
60
64
| Private | Private | Establish an ExpressRoute, IPsec VPN, VPN Tunneling, or virtual network Peering between the source and target. |
- pg_hba.conf Configuration: To facilitate connectivity between the source and target PostgreSQL instances, it's essential to verify and potentially modify the pg_hba.conf file. This file includes client authentication and must be configured to allow the target PostgreSQL to connect to the source. Changes to the pg_hba.conf file typically require a restart of the source PostgreSQL instance to take effect.
66
-
67
-
> [!NOTE]
68
-
> The pg_hba.conf file is located in the data directory of the PostgreSQL installation. This file should be checked and configured if the source database is an on-premises PostgreSQL server or a PostgreSQL server hosted on an Azure VM. For PostgreSQL instances on AWS RDS or similar managed services, the pg_hba.conf file is not directly accessible or applicable. Instead, access is controlled through the service's provided security and network access configurations.
69
-
70
67
For more information about network setup, visit [Network guide for migration service in Azure Database for PostgreSQL - Flexible Server](../../how-to-network-setup-migration-service.md).
Copy file name to clipboardExpand all lines: articles/postgresql/migrate/migration-service/includes/prerequisites/prerequisites-migration-service-postgresql-online.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,13 +19,13 @@ Source PostgreSQL version should be `>= 9.5`. If the source PostgreSQL version i
19
19
20
20
### Set up Online migration parameters
21
21
22
-
For Online migration, the replication support should be set to Logical under replication settings of the source PostgreSQL server. In addition, the server parameters `max_wal_senders` and `max_replication_slots` values should be equal to the number of Databases that need to be migrated. They can also be configured in the command line using the following commands:
22
+
For Online migration, the replication support should be set to Logical under replication settings of the source PostgreSQL server. In addition, the server parameters `max_wal_senders` and `max_replication_slots` values should be more than the number of Databases that need to be migrated. The parameters can be set in the Azure portal under **Settings->Server Parameters** or configured in the command line using the following commands:
23
23
24
24
- ALTER SYSTEM SET wal_level = logical;
25
-
- ALTER SYSTEM SET max_wal_senders = `number of databases to migrate`;
26
-
- ALTER SYSTEM SET max_replication_slots = `number of databases to migrate`;
25
+
- ALTER SYSTEM SET max_wal_senders = `number of databases to migrate` + 1;
26
+
- ALTER SYSTEM SET max_replication_slots = `number of databases to migrate` + 1;
27
27
28
-
Ensure that there are no long running transactions. Long running transactions don't allow creation of replication slots. The creation of a replication slot will succeed if all long running transactions are committed or rolled-back. You'll need to restart the source PostgreSQL server after completing all the Online migration prerequisites.
28
+
Ensure that there are no **long running transactions**. Long running transactions don't allow creation of replication slots. The creation of a replication slot will succeed if all long running transactions are committed or rolled-back. You'll need to restart the source PostgreSQL server after completing all the Online migration prerequisites.
29
29
30
30
> [!NOTE]
31
31
> For online migration with Azure Database for PostgreSQL single server, the Azure replication support is set to logical under the replication settings of the single server page in the Azure portal.
@@ -38,7 +38,9 @@ Ensure that there are no long running transactions. Long running transactions do
38
38
39
39
- For detailed instructions on creating a new Azure Database for PostgreSQL, refer to the following link: [Quickstart: Create server](/azure/postgresql/flexible-server/).
40
40
41
-
- The `pg_replication_origin` parameter on the target should be at least (1 + `number of databases to migrate`) onto the target.
41
+
- The server parameter `max_replication_slots` should be more than the number of Databases that need to be migrated. It can be set in the Azure portal under **Settings->Server Parameters** or configured in the command line using the following command:
42
+
43
+
- ALTER SYSTEM SET max_replication_slots = `number of databases to migrate` + 1;
42
44
43
45
### Network setup
44
46
@@ -56,9 +58,9 @@ The following table can help set up the network between the source and target.
56
58
57
59
| Source | Target | Connectivity Tips |
58
60
| --- | --- | --- |
59
-
| Public | Public | No other action is required if the source is whitelisted in the target's firewall rules. |
61
+
| Public | Public | No other action is required if the source is allow-listed in the target's firewall rules. |
60
62
| Private | Public | This configuration isn't supported; use pg_dump/pg_restore for data transfer. |
61
-
| Public | Private | No other action is required if the source is whitelisted in the target's firewall rules. |
63
+
| Public | Private | No other action is required if the source is allow-listed in the target's firewall rules. |
62
64
| Private | Private | Establish an ExpressRoute, IPsec VPN, VPN Tunneling, or virtual network Peering between the source and target. |
0 commit comments