Skip to content

Commit 7fb0314

Browse files
author
Sandeep Nair
committed
ADS- DMA
1 parent 34599c8 commit 7fb0314

File tree

2 files changed

+19
-42
lines changed

2 files changed

+19
-42
lines changed

articles/cosmos-db/mongodb/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,8 @@
415415
href: ../free-tier.md
416416
- name: Premigration guide
417417
href: pre-migration-steps.md
418+
- name: Programmatic Database Migration Assistant (legacy)
419+
href: programmatic-database-migration-assistant-legacy.md
418420
- name: MongoDB native tools (offline)
419421
href: tutorial-mongotools-cosmos-db.md
420422
- name: Database Migration Service (online)

articles/cosmos-db/mongodb/pre-migration-steps.md

Lines changed: 17 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ ms.service: cosmos-db
88
ms.subservice: mongodb
99
ms.custom: ignite-2022
1010
ms.topic: conceptual
11-
ms.date: 02/27/2023
11+
ms.date: 04/20/2023
1212
---
1313

14-
# Pre-migration steps for data migrations from MongoDB to Azure Cosmos DB for MongoDB
14+
# Premigration steps for data migrations from MongoDB to Azure Cosmos DB for MongoDB
1515

1616
[!INCLUDE[MongoDB](../includes/appliesto-mongodb.md)]
1717

@@ -47,8 +47,6 @@ All of the above steps are critical for ensuring a successful migration.
4747

4848
When you plan a migration, we recommend that whenever possible you plan at the per-resource level.
4949

50-
The [Database Migration Assistant](https://github.com/AzureCosmosDB/Cosmos-DB-Migration-Assistant-for-API-for-MongoDB)(DMA) assists you with the [Discovery](#programmatic-discovery-using-the-database-migration-assistant) and [Assessment](#programmatic-assessment-using-the-database-migration-assistant) stages of the planning.
51-
5250
## Pre-migration discovery
5351

5452
The first pre-migration step is resource discovery. In this step, you need to create a **data estate migration spreadsheet**.
@@ -57,34 +55,24 @@ The first pre-migration step is resource discovery. In this step, you need to cr
5755
* The purpose of this spreadsheet is to enhance your productivity and help you to plan migration from end-to-end.
5856
* You're recommended to extend this document and use it as a tracking document throughout the migration process.
5957

60-
### Programmatic discovery using the Database Migration Assistant
58+
## Pre-migration assessment
6159

62-
You may use the [Database Migration Assistant](https://github.com/AzureCosmosDB/Cosmos-DB-Migration-Assistant-for-API-for-MongoDB) (DMA) to assist you with the discovery stage and create the data estate migration sheet programmatically.
60+
Second, as a prelude to planning your migration, assess the readiness of resources in your data estate for migration.
6361

64-
It's easy to [setup and run DMA](https://github.com/AzureCosmosDB/Cosmos-DB-Migration-Assistant-for-API-for-MongoDB#how-to-run-the-dma) through an Azure Data Studio client. It can be run from any machine connected to your source MongoDB environment.
62+
Assessment involves finding out whether you're using the [features and syntax that are supported](./feature-support-42.md). It also includes making sure you're adhering to the [limits and quotas](../concepts-limits.md#per-account-limits). The aim of this stage is to create a list of incompatibilities and warnings, if any. After you have the assessment results, you can try to address the findings during rest of the migration planning.
6563

66-
You can use either one of the following DMA output files as the data estate migration spreadsheet:
64+
## Azure Cosmos DB Migration for MongoDB extension
6765

68-
* `workload_database_details.csv` - Gives a database-level view of the source workload. Columns in file are: Database Name, Collection count, Document Count, Average Document Size, Data Size, Index Count and Index Size.
69-
* `workload_collection_details.csv` - Gives a collection-level view of the source workload. Columns in file are: Database Name, Collection Name, Doc Count, Average Document Size, Data size, Index Count, Index Size and Index definitions.
66+
The [Azure Cosmos DB Migration for MongoDB extension](/sql/azure-data-studio/extensions/database-migration-for-mongo-extension) in Azure Data Studio helps you assess a MongoDB workload for migrating to Azure Cosmos DB for MongoDB. You can use this extension to run an end-to-end assessment on your workload and find out the actions that you may need to take to seamlessly migrate your workloads on Azure Cosmos DB. During the assessment of a MongoDB endpoint, the extension reports all the discovered resources.
7067

71-
Here's a sample database-level migration spreadsheet created by DMA:
68+
The Azure Cosmos DB Migration for MongoDB extension tool does both the pre-migration steps.
69+
* [Pre-migration discovery](#pre-migration-discovery)
70+
* [Pre-migration assessment](#pre-migration-assessment)
7271

73-
| DB Name | Collection Count | Doc Count | Avg Doc Size | Data Size | Index Count | Index Size |
74-
| --- | --- | --- | --- | --- | --- | --- |
75-
| `bookstoretest` | 2 | 192200 | 4144 | 796572532 | 7 | 260636672 |
76-
| `cosmosbookstore` | 1 | 96604 | 4145 | 400497620 | 1 | 1814528 |
77-
| `geo` | 2 | 25554 | 252 | 6446542 | 2 | 266240 |
78-
| `kagglemeta` | 2 | 87934912 | 190 | 16725184704 | 2 | 891363328 |
79-
| `pe_orig` | 2 | 57703820 | 668 | 38561434711 | 2 | 861605888 |
80-
| `portugeseelection` | 2 | 30230038 | 687 | 20782985862 | 1 | 450932736 |
81-
| `sample_mflix` | 5 | 75583 | 691 | 52300763 | 5 | 798720 |
82-
| `test` | 1 | 22 | 545 | 12003 | 0 | 0 |
83-
| `testcol` | 26 | 46 | 88 | 4082 | 32 | 589824 |
84-
| `testhav` | 3 | 2 | 528 | 1057 | 3 | 36864 |
85-
| **TOTAL:** | **46** | **176258781** | | **72.01 GB** | | **2.3 GB** |
72+
> [!NOTE]
73+
> Azure Cosmos DB Migration for MongoDB extension does not perform an end-to-end assessment. We recommend you to go through [the supported features and syntax](./feature-support-42.md), [Azure Cosmos DB limits and quotas](../concepts-limits.md#per-account-limits) in detail, as well as perform a proof-of-concept prior to the actual migration.
8674
87-
### Manual discovery
75+
## Manual discovery
8876

8977
Alternately, you may refer to the sample spreadsheet in this guide and create a similar document yourself.
9078

@@ -98,25 +86,12 @@ Here are some tools you can use for discovering resources:
9886
* [MongoDB Shell](https://www.mongodb.com/try/download/shell)
9987
* [MongoDB Compass](https://www.mongodb.com/try/download/compass)
10088

101-
## Pre-migration assessment
102-
103-
Second, as a prelude to planning your migration, assess the readiness of resources in your data estate for migration.
104-
105-
Assessment involves finding out whether you're using the [features and syntax that are supported](./feature-support-42.md). It also includes making sure you're adhering to the [limits and quotas](../concepts-limits.md#per-account-limits). The aim of this stage is to create a list of incompatibilities and warnings, if any. After you have the assessment results, you can try to address the findings during rest of the migration planning.
106-
107-
### Programmatic assessment using the Database Migration Assistant
108-
109-
[Database Migration Assistant](https://github.com/AzureCosmosDB/Cosmos-DB-Migration-Assistant-for-API-for-MongoDB) (DMA) also assists you with the assessment stage of pre-migration planning.
110-
111-
Refer to the section [Programmatic discovery using the Database Migration Assistant](#programmatic-discovery-using-the-database-migration-assistant) to know how to setup and run DMA.
112-
113-
The DMA notebook runs a few assessment rules against the resource list it gathers from source MongoDB. The assessment result lists the required and recommended changes needed to proceed with the migration.
114-
115-
The results are printed as an output in the DMA notebook and saved to a CSV file - `assessment_result.csv`.
89+
## Database Migration Assistant utility (legacy)
11690

11791
> [!NOTE]
118-
> Database Migration Assistant is a preliminary utility meant to assist you with the pre-migration steps. It does not perform an end-to-end assessment.
119-
> In addition to running the DMA, we also recommend you to go through [the supported features and syntax](./feature-support-42.md), [Azure Cosmos DB limits and quotas](../concepts-limits.md#per-account-limits) in detail, as well as perform a proof-of-concept prior to the actual migration.
92+
> Database Migration Assistant is a legacy utility meant to assist you with the pre-migration steps. Microsoft recommends you to use the [Azure Cosmos DB Migration for MongoDB extension](#azure-cosmos-db-migration-for-mongodb-extension) for all pre-migration steps.
93+
94+
You may use the [Database Migration Assistant](programmatic-database-migration-assistant-legacy.md) (DMA) utility to assist you with the discovery stage and create the data estate migration sheet programmatically.
12095

12196
## Pre-migration mapping
12297

0 commit comments

Comments
 (0)