Skip to content

Add Testing Details for Multi DC Related Docs #9219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,42 @@ 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
<APIM-Home>
└── 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.

!!! 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!}
Expand Down