From 6b308a727709f13aef8865bb2559ce1c864047f4 Mon Sep 17 00:00:00 2001 From: dakshina99 Date: Sat, 3 May 2025 13:27:44 +0530 Subject: [PATCH 1/2] Refine multi DC scripts for postgreSQL --- ...nfiguring-multi-dc-deployment-pattern-1.md | 33 +++++++++++-------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/en/docs/install-and-setup/setup/multi-dc-deployment/configuring-multi-dc-deployment-pattern-1.md b/en/docs/install-and-setup/setup/multi-dc-deployment/configuring-multi-dc-deployment-pattern-1.md index c115023986..0193bb4782 100644 --- a/en/docs/install-and-setup/setup/multi-dc-deployment/configuring-multi-dc-deployment-pattern-1.md +++ b/en/docs/install-and-setup/setup/multi-dc-deployment/configuring-multi-dc-deployment-pattern-1.md @@ -6,30 +6,35 @@ All the regions are identical in this pattern. therefore, the documentation will ## Step 1: Configure the Database with replication -!!! Note - WSO2 API Manager has support for DB replication with only MSSQL and Oracle DBs. - Our customers have used and tested these two DBs and the necessary primary and secondary keys are available. - -WSO2 API Manager comes with the multi-dc database scripts for MSSQL and Oracle. When setting up the database with replication for the multi-dc deployment, it is recommended to use the provided script. The file structure is as follows. +WSO2 API Manager comes with the multi-dc database scripts for MSSQL, Oracle and PostgreSQL. When setting up the database with replication for the multi-dc deployment, it is recommended to use the provided script. The file structure is as follows. ```bash └── dbscripts └── multi-dc ├── OGG - │   └── oracle - │   ├── Readme.txt - │   ├── apimgt - │   │   ├── sequences.sql ----> AM_DB - │   │   └── tables.sql -------> AM_DB - │   ├── sequence.sql ---------> SHARED_DB - │   └── tables.sql -----------> SHARED_DB + │ └── oracle + │ ├── Readme.txt + │ ├── apimgt + │ │ ├── sequences.sql + │ │ ├── sequences_23c.sql + │ │ ├── tables.sql + │ │ └── tables_23c.sql + │ ├── sequence.sql + │ ├── sequences_23c.sql + │ ├── tables.sql + │ └── tables_23c.sql + ├── Postgresql + │ ├── ReadMe.txt + │ ├── apimgt + │ │ └── tables.sql + │ └── tables.sql └── SQLServer └── mssql ├── ReadMe.txt ├── apimgt - │   └── tables.sql -------> AM_DB - └── tables.sql -----------> SHARED_DB + │ └── tables.sql + └── tables.sql ``` You should consult your database administrator on replication related configurations. From 8f2cf958a80e22ef70781b6e2c435bf699c3aeb4 Mon Sep 17 00:00:00 2001 From: dakshina99 Date: Sat, 3 May 2025 13:20:59 +0530 Subject: [PATCH 2/2] Add testing details to the Multi DC docs --- .../configuring-multi-dc-deployment-pattern-1.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/en/docs/install-and-setup/setup/multi-dc-deployment/configuring-multi-dc-deployment-pattern-1.md b/en/docs/install-and-setup/setup/multi-dc-deployment/configuring-multi-dc-deployment-pattern-1.md index 0193bb4782..28744c70f1 100644 --- a/en/docs/install-and-setup/setup/multi-dc-deployment/configuring-multi-dc-deployment-pattern-1.md +++ b/en/docs/install-and-setup/setup/multi-dc-deployment/configuring-multi-dc-deployment-pattern-1.md @@ -39,6 +39,9 @@ WSO2 API Manager comes with the multi-dc database scripts for MSSQL, Oracle and You should consult your database administrator on replication related configurations. +!!! Note + For testing the Multi-DC database scripts and evaluating the behavior of bi-directional replication, we used virtual machines to host the database instances across regions. This setup was used for all supported database types to ensure consistent testing conditions. If you plan to use managed database services offered by cloud providers, please contact the respective vendors to confirm support for database-level bi-directional replication support through the cluod services. + ## Step 2: Configure the API Manager Nodes {!includes/deploy/steps-to-deploy-apim-in-a-distributed-setup-with-tm-separation.md!}