Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Upgrade MongoDB to 2.6

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Upgrade MongoDB to 2.6

Upgrade preparation

1. Connect 2. 6 mongo shell to 2. 4 replica set auxiliary members, and execute db.upgradeCheckAllDBs () in the admin library.

two。 To evaluate application compatibility issues upgraded to 2.6, refer to: http://docs.mongodb.org/manual/release-notes/2.6-compatibility/

Single instance upgrade

1. Close the mongod instance, replace it with the 2.6 mongod binaries, and restart the instance.

Replica set upgrade

1. Promote secondary members of the replica set.

Upgrade each auxiliary member in turn.

Restart the instance by shutting down the mongod instance and replacing the 2.4 binary with the 2.6mongod binary.

Check the member status through rs.status () and wait for the instance state to return to the SECONDARY state before upgrading the next secondary member.

two。 Demote the replica set master member.

Use rs.stepDown () to force the main library to fail over.

3. Upgrade the master member.

Confirm that the state of the rs.status () master library is degraded and that some members are promoted to be primary members.

Close the original master member instance, replace it with 2.6 mongod binaries, and restart the instance.

Driver upgrade

The C#/.NET driver version needs to be upgraded to 1.9 or above.

Reference:

Http://docs.mongodb.org/manual/release-notes/2.6-upgrade/

Http://docs.mongodb.org/manual/reference/method/db.upgradeCheckAllDBs/#db.upgradeCheckAllDBs

Http://docs.mongodb.org/manual/release-notes/2.6-compatibility/

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report