-
Notifications
You must be signed in to change notification settings - Fork 35
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
Plan & test MongoDB database migration from 2.x to 3.x #1388
Comments
Mongodump & restore with Docker, https://blog.studiointeract.com/mongodump-and-mongorestore-for-mongodb-in-a-docker-container-8ad0eb747c62#.vtvgxojzb |
Successful procedure on my local virtualbox production environment. |
Verify engine in mongo shell:
|
nightly.apinf.io upgraded to 3.2.6 and using wiredTiger |
Reopened for need to test also deployments with new docker-compose based setup |
@bajiat @jykae I already tested migrate on version 3.2.9, but not tested migrate on wiredTiger engine https://github.com/apinf/api-umbrella-dashboard/compare/update-mongo-version?expand=1 |
I suspect for migrate existing data on wiredTiger, we need do dump data and after upgrade import that dump - need free time for check it. |
@shaliko yep, right. Meteor bundles MongoDB 3.2.6 for development, would it be good to keep it same as on dev? |
@jykae I used 3.2.9 because official docker images dose not have 3.2.6 https://hub.docker.com/r/library/mongo/tags/ |
@shaliko ok, that's patch level version so that might be ok. I wonder how I then was able to pull with tag 3.2.6 for nightly ?
|
I am closing this. |
That is funny, missed on Docker hub, but I reproduced that we can download that image
|
Meteor upgrade brought upgrade to MongoDB for new database engine. See MongoDB documentation for migration steps.
"Your development database is using mmapv1, the old, pre-MongoDB 3.0 database engine. You should consider upgrading to Wired Tiger, the new engine. The easiest way to do so in
development is to run meteor reset. If you'd like to migrate your database, please consult https://docs.mongodb.org/v3.0/release-notes/3.0-upgrade/"
In DEVELOPMENT, use meteor reset to switch to WiredTiger based
In PRODUCTION, follow the procedure by MongoDB docs.
GENERAL PROCEDURE https://docs.mongodb.com/v3.0/release-notes/3.0-upgrade/#general-action-procedure
IMPORTANT:
"To change storage engine to WiredTiger, you will need to manually export and upload the data using mongodump and mongorestore"
https://docs.mongodb.com/v3.0/release-notes/3.0-upgrade/#change-storage-engine-to-wiredtiger
=> Old DB engine cannot read Wired Tiger data format.
Test procedure on staging/test server first.
The text was updated successfully, but these errors were encountered: