You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/release-notes/2.2.txt
+61-23Lines changed: 61 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -8,48 +8,86 @@ Release Notes for MongoDB Version 2.2
8
8
:backlinks: none
9
9
:local:
10
10
11
-
MongoDB 2.0 is a standard, incremental production release and works as a drop-in replacement for MongoDB.
11
+
Upgrading
12
+
---------
12
13
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.
17
16
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
+
~~~~~~~~~~~
19
19
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.
25
23
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.
28
30
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.
30
36
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.
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.
38
60
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.
40
63
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.
42
67
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.
44
71
45
72
Upgrading a Shard Cluster
46
73
~~~~~~~~~~~~~~~~~~~~~~~~~
47
74
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.
49
79
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.
51
85
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
0 commit comments