Update MongoDB to 2.6

Source: Internet
Author: User
Tags install mongodb mongo shell
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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.