Skip to content

Commit da273e9

Browse files
author
Sam Kleinman
committed
DOCS-290 upgrade procedure for 2.2
1 parent fec084e commit da273e9

File tree

1 file changed

+61
-23
lines changed

1 file changed

+61
-23
lines changed

source/release-notes/2.2.txt

Lines changed: 61 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,48 +8,86 @@ Release Notes for MongoDB Version 2.2
88
:backlinks: none
99
:local:
1010

11-
MongoDB 2.0 is a standard, incremental production release and works as a drop-in replacement for MongoDB.
11+
Upgrading
12+
---------
1213

13-
Before Upgrading
14-
----------------
15-
16-
If using authentificaton, upgrade drivers before upgrading mongod. See <appropriate topic>
14+
MongoDB 2.2 is a standard, incremental production release and works as
15+
a drop-in replacement for MongoDB 2.0.
1716

18-
Read through these release notes for specific issues you might need to address before upgrading. For example, you might need to change database names, as described in ?????
17+
Preparation
18+
~~~~~~~~~~~
1919

20-
Upgrading
21-
---------
22-
23-
2.0 processes can talk to 1.8 processes and vice versa, so you can upgrade
24-
various parts of a cluster in any order.
20+
If your MongoDB deployment uses authentication, upgrade your drivers
21+
(i.e. client libraries) before upgrading your :program:`mongod`
22+
instances.
2523

26-
Upgrading a Standalone Server
27-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24+
.. TODO insert the following line if we eventually have a section on
25+
this change. See the :ref:`driver changes <2.2-driver-changes>`
26+
section for more information.
27+
28+
Read through all release notes before upgrading, and ensure that no
29+
changes will affect your deployment.
2830

29-
#. Download the v2.0 binaries from the MongoDB Download Page.
31+
2.2 processes can inter-operate with 2.0 and 1.8 tools and processes
32+
in replica sets and shard clusters, if you are not running with
33+
authentication. As a result, you can safely upgrade the
34+
:program:`mongod` and :program:`mongos` components of your deployment
35+
in any order.
3036

31-
#. Shutdown the old mongod and then restart with the new mongod binary.
37+
.. _2.2-upgrade-standalone:
38+
39+
Upgrading a Standalone ``mongod``
40+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
41+
42+
#. Download the v2.2 binaries from the `MongoDB Download Page`_.
43+
44+
#. Shutdown your :program:`mongod` instance, replace the existing
45+
binary with the 2.2 :program:`mongod` binary and restart MongoDB.
46+
47+
.. _`MongoDB Download Page`: http://downloads.mongodb.org/
48+
49+
.. _2.2-upgrade-replica-set:
3250

3351
Upgrading a Replica Set
3452
~~~~~~~~~~~~~~~~~~~~~~~
3553

36-
This procedure performs the upgrade in the most efficent way possible, while minimizing
37-
the amount of downtime.
54+
While you may upgrade your replica set in any order, to minimize
55+
downtime, use the following procedure:
56+
57+
#. Upgrade the :term:`secondary` members of the set one at a time by
58+
shutting down the :program:`mongod` and replacing the binary with
59+
the 2.2 binary.
3860

39-
#. Upgrade the secondaries one at a time.
61+
#. Use the :func:`rs.stepDown()` to step down the primary to allow
62+
normal :ref:`failover <replica-set-failover>` procedure.
4063

41-
#. StepDown the primary and upgrade the primary. Using the stepDown command is better than simply shutting it down since the failover will happen quicker.
64+
:func:`rs.stepDown()` and :dbcommand:`replSetStepDown` provide for
65+
shorter and more consistent failover procedures than simply
66+
shutting down the primary directly.
4267

43-
Note, after upgrading to 2.0 you can use the shutdown command to shutdown the primary without losing any updates.
68+
When the primary has stepped down, shut the instance down and
69+
upgrade by replacing the :program:`mongod` binary with the 2.2
70+
binary.
4471

4572
Upgrading a Shard Cluster
4673
~~~~~~~~~~~~~~~~~~~~~~~~~
4774

48-
If using authentificaton:
75+
If your cluster uses authentication, use the following upgrade
76+
procedure:
77+
78+
- Upgrade all :program:`mongos` instances first, in any order.
4979

50-
- Upgrade drivers before upgrading mongod. See ???
80+
- Upgrade all other cluster components. Use the :ref:`upgrade
81+
procedure for replica sets <2.2-upgrade-replica-set>` for each of
82+
the shards and the :ref:`stand alone <2.2-upgrade-standalone>`
83+
procedure for each of the config servers. You may upgrade the
84+
components of your cluster in any order.
5185

52-
- If using authentication, you *must* upgrade the ``mongos`` first and then upgrade ``mongod``.
86+
If your cluster *does not* use authentication, you may upgrade the
87+
components of the cluster in any order, using the :ref:`upgrade
88+
procedure for replica sets <2.2-upgrade-replica-set>` for each of the
89+
shards and the :ref:`stand alone <2.2-upgrade-standalone>` procedure
90+
for each of the config servers.
5391

5492
Changes
5593
-------

0 commit comments

Comments
 (0)