Upgrade MongoDB preparation 1. Connect the 2.62.16shell to the secondary Member of the replica set 2.4, and execute db. upgradeCheckAllDBs () in the admin database (). 2. Evaluate the application upgraded to 2.6
Upgrade MongoDB to prepare 1. Connect the 2.6 mongo shell to the secondary Member of the 2.4 replica set, and execute db. upgradeCheckAllDBs () in the admin database (). 2. Evaluate the application upgraded to 2.6
Prepare for MongoDB upgrade
1. Connect the 2.6 mongo shell to the secondary Member of the 2.4 replica set and execute db. upgradeCheckAllDBs () in the admin database ().
2. Evaluate the compatibility of applications updated to 2.6. For details, refer:
Single Instance upgrade
1. Disable the mongod instance, replace it with the 2.6 mongod binary file, and restart the instance.
Replica set upgrade
1. Upgrade secondary members of the replica set.
Upgrade each secondary member in turn.
Disable the mongod instance, replace the 2.6 binary file with the 2.4 mongod binary file, and then restart the instance.
Use rs. status () to check the member status. Wait until the instance status returns to the SECONDARY status, and then upgrade the next SECONDARY member.
2. downgrade the primary Member of the replica set.
Use rs. stepDown () to force master database failover.
3. Upgrade the primary member.
Confirm that the rs. status () master database is in the degraded status and that the master database has been upgraded to a Member.
Shut down the original master member instance, replace it with the 2.6 mongod binary file, and restart the instance.
Driver Upgrade
C #/. NET driver version must be upgraded to 1.9 or above.
Refer:
MongoDB 3.0 official version released and downloaded
CentOS compilation and installation of MongoDB
CentOS compilation and installation of php extensions for MongoDB and mongoDB
CentOS 6 install MongoDB and server configuration using yum
Install MongoDB2.4.3 in Ubuntu 13.04
MongoDB beginners must read (both concepts and practices)
MongoDB Installation Guide for Ubunu 14.04
MongoDB authoritative Guide (The Definitive Guide) in English [PDF]
Nagios monitoring MongoDB sharded cluster service practice
Build MongoDB Service Based on CentOS 6.5 Operating System
MongoDB details: click here
MongoDB: click here
This article permanently updates the link address: