Skip to content

Commit 5dc60b0

Browse files
authored
DOCSP-6113: Ensure that all Atlas data import prerequisites are in sync (#136)
1 parent 74b6875 commit 5dc60b0

File tree

4 files changed

+89
-45
lines changed

4 files changed

+89
-45
lines changed

source/cloud/migrate-from-compose.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
time: 20
1414
prerequisites:
15-
.. include:: /includes/steps/migrate-compose-pr.rst
15+
.. include:: /includes/migration-pr-compose.rst
1616

1717
check_your_environment:
1818

@@ -25,4 +25,4 @@
2525
You created an Atlas cluster, migrated data from your old Compose cluster, and
2626
updated your applications to use the new Atlas Cluster. Congratulations and
2727
welcome to MongoDB Atlas!
28-
whats_next:
28+
whats_next:
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
* Your data is currently in a MongoDB database.
2+
3+
This guide focuses on migrating to Atlas from an existing MongoDB deployment
4+
on Compose.
5+
6+
* Your current MongoDB database is running MongoDB 2.6 or higher.
7+
8+
Atlas supports the latest versions of MongoDB: 3.4, 3.6, and 4.0.
9+
If you're running MongoDB version 2.6 or greater, the Atlas Live Migration
10+
Service can move your data directly into a newer database version.
11+
Update your `MongoDB drivers <https://docs.mongodb.com/ecosystem/drivers>`_
12+
and make any necessary code changes at the application level to ensure
13+
compatibility. If you're running a version older than 2.6, see
14+
`Upgrade MongoDB to 2.6 <https://docs.mongodb.com/v2.6/release-notes/2.6-upgrade/index.html>`_
15+
for upgrade instructions.
16+
17+
* Your current deployment is a MongoDB replica set or sharded cluster.
18+
19+
If your deployment is currently a standalone instance, you must first
20+
:manual:`convert it to a replica set </tutorial/convert-standalone-to-replica-set>`.
21+
Live migration of data from sharded clusters is not supported.
22+
23+
* (Optional) Enabled authentication on your source deployment.
24+
25+
The migration process requires that authentication is enabled on your
26+
source cluster. See :manual:`Enable Auth </tutorial/enable-authentication>`
27+
for instructions on enabling authentication.
28+
You can verify that authentication is enabled on your source cluster
29+
using the :manual:`mongo </reference/program/mongo/>` command:
30+
31+
.. code-block:: sh
32+
33+
mongo <mongodb-connection-string> -u <mongodb-username> -p --authenticationDatabase admin
34+
35+
* The database user from your source cluster that you will use to perform the migration has the required MongoDB roles.
36+
37+
The user must have the :authrole:`clusterMonitor` and :authrole:`backup` roles. To verify
38+
that the database user that you intend to use for migration has the appropriate
39+
roles, run the :manual:`db.getUser() </reference/method/db.getUser>` command against the admin database.
40+
41+
.. code-block:: javascript
42+
43+
use admin
44+
db.getUser("admin")
45+
{
46+
"_id" : "admin.admin",
47+
"user" : "admin",
48+
"db" : "admin",
49+
"roles" : [
50+
{
51+
"role" : "backup",
52+
"db" : "admin"
53+
},
54+
{
55+
"role" : "clusterMonitor",
56+
"db" : "admin"
57+
}
58+
]
59+
} ...

source/includes/migration_pr.rst

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
* **Your data is currently in a MongoDB database.**
1+
* Your data is currently in a MongoDB database.
22

33
This guide focuses on migrating to Atlas from an existing MongoDB deployment
44
on AWS. If you have data in other database systems, such as MySQL, PostgreSQL, or
55
DynamoDB, please `contact us <https://mongodbcom-node-staging-2.corp.mongodb.com/contact>`_
66
for help with your migration.
77

8-
* **Your current MongoDB database is running MongoDB 2.6 or higher.**
8+
* Your current MongoDB database is running MongoDB 2.6 or higher.
99

1010
Atlas supports the latest versions of MongoDB: 3.4, 3.6, and 4.0.
1111
If you're running MongoDB version 2.6 or greater, the Atlas Live Migration
@@ -16,13 +16,13 @@
1616
`Upgrade MongoDB to 2.6 <https://docs.mongodb.com/v2.6/release-notes/2.6-upgrade/index.html>`_
1717
for upgrade instructions.
1818

19-
* **Your current deployment is a MongoDB replica set or sharded cluster.**
19+
* Your current deployment is a MongoDB replica set or sharded cluster.
2020

2121
If your deployment is currently a standalone instance, you must first
2222
:manual:`convert it to a replica set </tutorial/convert-standalone-to-replica-set>`.
2323
Live migration of data from sharded clusters is not supported.
2424

25-
* **(Optional) Enabled authentication on your source deployment.**
25+
* (Optional) Enabled authentication on your source deployment.
2626

2727
The migration process requires that authentication is enabled on your
2828
source cluster in AWS. See :manual:`Enable Auth </tutorial/enable-authentication>`
@@ -34,28 +34,28 @@
3434
3535
mongo <mongodb-connection-string> -u <mongodb-username> -p --authenticationDatabase admin
3636
37-
* **The database user from your source cluster on AWS that you will use to perform the migration has the required MongoDB roles.**
37+
* The database user from your source cluster on AWS that you will use to perform the migration has the required MongoDB roles.
3838

39-
The user must have the :authrole:`clusterMonitor` and :authrole:`backup` roles. To verify
40-
that the database user that you intend to use for migration has the appropriate
41-
roles, run the :manual:`db.getUser() </reference/method/db.getUser>` command against the admin database.
42-
43-
.. code-block:: javascript
44-
45-
use admin
46-
db.getUser("admin")
47-
{
48-
"_id" : "admin.admin",
49-
"user" : "admin",
50-
"db" : "admin",
51-
"roles" : [
52-
{
53-
"role" : "backup",
54-
"db" : "admin"
55-
},
56-
{
57-
"role" : "clusterMonitor",
58-
"db" : "admin"
59-
}
60-
]
61-
} ...
39+
The user must have the :authrole:`clusterMonitor` and :authrole:`backup` roles. To verify
40+
that the database user that you intend to use for migration has the appropriate
41+
roles, run the :manual:`db.getUser() </reference/method/db.getUser>` command against the admin database.
42+
43+
.. code-block:: javascript
44+
45+
use admin
46+
db.getUser("admin")
47+
{
48+
"_id" : "admin.admin",
49+
"user" : "admin",
50+
"db" : "admin",
51+
"roles" : [
52+
{
53+
"role" : "backup",
54+
"db" : "admin"
55+
},
56+
{
57+
"role" : "clusterMonitor",
58+
"db" : "admin"
59+
}
60+
]
61+
} ...

source/includes/steps-migrate-compose-pr.yaml

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)