@@ -27,9 +27,10 @@ version.
27
27
Read through all release notes before upgrading, and ensure that no
28
28
changes will affect your deployment.
29
29
30
+ If you are not running with
31
+ authentication,
30
32
2.2 processes can inter-operate with 2.0 and 1.8 tools and processes
31
- in replica sets and shard clusters, if you are not running with
32
- authentication. As a result, you can safely upgrade the
33
+ in replica sets and shard clusters. As a result, you can safely upgrade the
33
34
:program:`mongod` and :program:`mongos` components of your deployment
34
35
in any order.
35
36
@@ -40,7 +41,7 @@ Upgrading a Standalone ``mongod``
40
41
41
42
#. Download the v2.2 binaries from the `MongoDB Download Page`_.
42
43
43
- #. Shutdown your :program:`mongod` instance, replace the existing
44
+ #. Shutdown your :program:`mongod` instance. Replace the existing
44
45
binary with the 2.2 :program:`mongod` binary and restart MongoDB.
45
46
46
47
.. _`MongoDB Download Page`: http://downloads.mongodb.org/
@@ -58,13 +59,13 @@ downtime, use the following procedure:
58
59
the 2.2 binary.
59
60
60
61
#. Use the :method:`rs.stepDown()` to step down the primary to allow
61
- normal :ref:`failover <replica-set-failover>` procedure.
62
+ the normal :ref:`failover <replica-set-failover>` procedure.
62
63
63
64
:method:`rs.stepDown()` and :dbcommand:`replSetStepDown` provide for
64
65
shorter and more consistent failover procedures than simply
65
66
shutting down the primary directly.
66
67
67
- When the primary has stepped down, shut the instance down and
68
+ When the primary has stepped down, shut down its instance and
68
69
upgrade by replacing the :program:`mongod` binary with the 2.2
69
70
binary.
70
71
@@ -79,7 +80,7 @@ procedure:
79
80
- Upgrade all :program:`mongos` instances *first*, in any order.
80
81
81
82
- Upgrade all of the :program:`mongod` config server instances *one at
82
- a time*. When you have *less * than *three* config servers active,
83
+ a time*. When you have *fewer * than *three* config servers active,
83
84
the cluster metadata will be read-only which will prevent (and abort)
84
85
all chunk migrations and chunk splits.
85
86
@@ -123,29 +124,29 @@ TTL Collections
123
124
TTL collections remove expired data from a collection, using a special
124
125
index and a background thread that deletes expired documents every
125
126
minute. These collections are useful as an alternative to
126
- :term:`capped collections <capped collection>` in some cases, for data
127
- warehousing and caching cases including: machine generated event data,
128
- logs, and session information that only need to persist in a database
129
- for a limited period of time.
127
+ :term:`capped collections <capped collection>` in some cases, such as for data
128
+ warehousing and caching cases, including: machine generated event data,
129
+ logs, and session information that needs to persist in a database
130
+ for only a limited period of time.
130
131
131
132
For more information, see the :doc:`/tutorial/expire-data` tutorial.
132
133
133
134
Concurrency Improvements
134
135
````````````````````````
135
136
136
- In 2.2 MongoDB increases the server's capacity for concurrent
137
+ In 2.2, MongoDB increases the server's capacity for concurrent
137
138
operations with the following improvements:
138
139
139
140
#. :issue:`DB Level Locking <SERVER-4328>`
140
141
#. :issue:`Improved Yielding on Page Faults <SERVER-3357>`
141
142
#. :issue:`Improved Page Fault Detection on Windows <SERVER-4538>`
142
143
143
144
To reflect these changes, MongoDB now provides changed and improved
144
- reporting for concurrency and use, see the :ref:`locks` and
145
+ reporting for concurrency and use, see :ref:`locks` and
145
146
:ref:`server-status-record-stats` in :doc:`server status
146
- </reference/server-status>` and in the :doc:`current operation output
147
- </reference/current-op>` ( :method:`db.currentOp()`) as well as
148
- :doc:`mongotop </reference/mongotop>` and :doc:`mongostat
147
+ </reference/server-status>` and see :doc:`current operation output
148
+ </reference/current-op>`, :method:`db.currentOp()`,
149
+ :doc:`mongotop </reference/mongotop>`, and :doc:`mongostat
149
150
</reference/mongostat>`.
150
151
151
152
.. TODO add links to current op output documentation when it happens.
@@ -160,13 +161,13 @@ sharded database system is always closest to the application servers
160
161
that use that data most frequently.
161
162
162
163
Shard tagging controls data location, and is complementary but
163
- separate from replica set tagging which controls data access. For
164
+ separate from replica set tagging, which controls data access. For
164
165
example, shard tagging can pin all "USA" data to one or more logical
165
166
shards, while replica set tagging can control which :program:`mongod`
166
167
instances (e.g. "``production``" or "``reporting``") the application
167
168
uses to service requests.
168
169
169
- See the documentation of the following helpers in the :program:`mongo`
170
+ See the documentation for the following helpers in the :program:`mongo`
170
171
shell that support tagged sharding configuration:
171
172
172
173
- :method:`sh.addShardTag()`
@@ -180,12 +181,12 @@ Fully Supported Read Preference Semantics
180
181
`````````````````````````````````````````
181
182
182
183
All MongoDB clients and drivers now support full :ref:`read
183
- preferences <replica-set-read-preference>` including consistent
184
+ preferences <replica-set-read-preference>`, including consistent
184
185
support for a full range of :ref:`read preference modes
185
186
<replica-set-read-preference-modes>` and :ref:`tag sets
186
187
<replica-set-read-preference-tag-sets>`. This support extends to the
187
- :program:`mongos` and applies identically to single replica sets, and
188
- the replica sets for each shard in a :term:`shard cluster`.
188
+ :program:`mongos` and applies identically to single replica sets and
189
+ to the replica sets for each shard in a :term:`shard cluster`.
189
190
190
191
Additional read preference support now exists in the :program:`mongo`
191
192
shell using the :method:`reaPref() <cursor.readPref()>` cursor method.
@@ -198,7 +199,7 @@ Compatibility Changes
198
199
Authentication Changes
199
200
``````````````````````
200
201
201
- In order to provide more reliable and robust support for
202
+ In 2.2, MongoDB provides more reliable and robust support for
202
203
authentication clients, including drivers and :program:`mongos`
203
204
instances.
204
205
@@ -209,10 +210,10 @@ authentication:
209
210
**not** compatible with 2.2 shard clusters running with
210
211
authentication.
211
212
212
- You **must** use the :ref:`upgrade procedure for shard clusters
213
+ To prevent rendering your cluster non-operational,
214
+ you **must** use the :ref:`upgrade procedure for shard clusters
213
215
<2.2-upgrade-shard-cluster>` and upgrade all :program:`mongos`
214
- instances *before* upgrading the shard to prevent rendering your
215
- cluster non-operational.
216
+ instances *before* upgrading the shard.
216
217
217
218
- For all drivers, use the latest release of your driver and check
218
219
its release notes.
@@ -254,8 +255,8 @@ characters:
254
255
255
256
/\. "*<>:|?
256
257
257
- The names of the data files include the database name. If you attempt
258
- upgrade a database instance with one or more of these characters,
258
+ The names of the data files include the database name. If you attempt
259
+ to upgrade a database instance with one or more of these characters,
259
260
:program:`mongod` will refuse to start.
260
261
261
262
Change the name of these databases before upgrading. See
@@ -267,9 +268,9 @@ Change the name of these databases before upgrading. See
267
268
````````````````````````````````````````````````
268
269
269
270
All :term:`capped collections <capped collection>` now have an ``_id``
270
- field by default *if* they exist outside of the ``local`` database,
271
- and indexes on the ``_id`` field. This change only affects capped
272
- collections created with 2.2 instances and does not impact existing
271
+ field by default, *if* they exist outside of the ``local`` database,
272
+ and now have indexes on the ``_id`` field. This change only affects capped
273
+ collections created with 2.2 instances and does not affect existing
273
274
capped collections.
274
275
275
276
See: :issue:`SERVER-5516` for more information.
@@ -313,8 +314,8 @@ New Build Using SlimReadWrite Locks for Windows Concurrency
313
314
```````````````````````````````````````````````````````````
314
315
315
316
Labeled "2008+" on the `Downloads Page`_, this build for 64-bit
316
- versions of Windows Server 2008 R2, Windows 7 or newer, offers
317
- increased performance for over the standard 64 bit Windows build of
317
+ versions of Windows Server 2008 R2 and for Windows 7 or newer offers
318
+ increased performance over the standard 64- bit Windows build of
318
319
MongoDB. See :issue:`SERVER-3844` for more information.
319
320
320
321
.. _`Downloads Page`: http://www.mongodb.org/downloads
@@ -326,14 +327,14 @@ Index Definitions Handled by ``mongodump`` and ``mongorestore``
326
327
```````````````````````````````````````````````````````````````
327
328
328
329
When you specify the :option:`--collection <mongodump --collection>`
329
- option to :program:`mongodump`, :program:`mongodump` will now backup
330
+ option to :program:`mongodump`, :program:`mongodump` will now backup
330
331
the definitions for all indexes that exist on the source
331
- database. When you attempt to restore this backup with the
332
+ database. When you attempt to restore this backup with
332
333
:program:`mongorestore`, the target :program:`mongod` will rebuild all
333
334
indexes. See :issue:`SERVER-808` for more information.
334
335
335
336
:program:`mongorestore` now includes the :option:`--noIndexRestore
336
- <mongorestore --noIndexRestore>` option to provide the previous
337
+ <mongorestore --noIndexRestore>` option to provide the preceding
337
338
behavior. Use :option:`--noIndexRestore <mongorestore --noIndexRestore>`
338
339
to prevent :program:`mongorestore` from building
339
340
previous indexes.
@@ -353,7 +354,7 @@ Authentication Support for ``mongotop`` and ``mongostat``
353
354
354
355
:program:`mongotop` and :program:`mongostat` now contain support for
355
356
username/password authentication. See :issue:`SERVER-3875` and
356
- :issue:`SERVER-3871` for more information regarding this change and
357
+ :issue:`SERVER-3871` for more information regarding this change. See also
357
358
the documentation of the following options for additional information:
358
359
359
360
- :option:`mongotop --username`
@@ -366,8 +367,8 @@ Write Concern Support for ``mongoimport`` and ``mongorestore``
366
367
367
368
With the :option:`--stopOnError <mongoimport --stopOnError>`,
368
369
:program:`mongoimport` provides support for :ref:`write concern
369
- <write-concern>`. Now if there is any kind of error (e.g. network,
370
- write error, etc)in the import process , :program:`mongoimport` will
370
+ <write-concern>`. Now if the import process encounters an error (e.g. network,
371
+ write error, etc), :program:`mongoimport` will
371
372
produce an error rather than silently continue importing data. See
372
373
:issue:`SERVER-3937` for more information.
373
374
@@ -394,11 +395,11 @@ information.
394
395
````````````````````````````````````
395
396
396
397
MongoDB extended JSON now includes a new ``Timestamp()`` type to
397
- represent the Timestamp type used as timestamps in the oplog and in
398
+ represent the Timestamp type, which is used for timestamps in the oplog and also used in
398
399
other contexts.
399
400
400
401
This permits tools like :program:`mongooplog` and :program:`mongodump`
401
- to be able to query for specific timestamps. Consider the following
402
+ to query for specific timestamps. Consider the following
402
403
:program:`mongodump` operation:
403
404
404
405
.. code-block:: sh
@@ -424,7 +425,7 @@ consistency of the user interface for the :program:`mongo` shell:
424
425
- Multi-line command support in shell history.
425
426
See :issue:`SERVER-3470` for more information.
426
427
427
- - Windows support for ``edit`` command. See :issue:`SERVER-3998` for
428
+ - Windows support for the ``edit`` command. See :issue:`SERVER-3998` for
428
429
more information.
429
430
430
431
Helper to load Server-Side Functions
@@ -481,15 +482,15 @@ The Boost library, version 1.49, is now embeded in the MongoDB
481
482
code base.
482
483
483
484
If you want to build MongoDB binaries using system Boost libraries,
484
- you can pass ``scons`` the ``--use-system-boost`` flag, as follows:
485
+ you can pass ``scons`` using the ``--use-system-boost`` flag, as follows:
485
486
486
487
.. code-block:: sh
487
488
488
489
scons --use-system-boost
489
490
490
- There is also a flag in ``scons`` if you want to build MongoDB using
491
+ ``scons`` also has a flag to build MongoDB using
491
492
all system libraries rather than the included versions of the
492
- libraries, if desired . To build MongoDB with system libraries for all
493
+ libraries. To build MongoDB with system libraries for all
493
494
libraries, use the following arguments to ``scons``:
494
495
495
496
.. code-block:: sh
@@ -514,7 +515,7 @@ identify what process may produce errors or halt replication. See
514
515
Replica Set Members can Sync from Specific Members
515
516
``````````````````````````````````````````````````
516
517
517
- The new :dbcommand:`replSetSyncFrom` command, and
518
+ The new :dbcommand:`replSetSyncFrom` command and new
518
519
:method:`rs.syncFrom()` helper in the :program:`mongo` shell make it
519
520
possible for you to manually configure from which member of the set a
520
521
replica will poll :term:`oplog` entries. Use these commands to
@@ -529,7 +530,7 @@ To prevent inconsistency between members of replica sets, if the
529
530
member of a replica set has :data:`members[n].buildIndexes` set to
530
531
``true``, other members of the replica set will *not* sync from this
531
532
member, unless they also have :data:`members[n].buildIndexes` set to
532
- true. See :issue:`SERVER-4160` for more information.
533
+ `` true`` . See :issue:`SERVER-4160` for more information.
533
534
534
535
New Option To Configure Index Pre-Fetching during Replication
535
536
`````````````````````````````````````````````````````````````
@@ -538,7 +539,7 @@ By default, when replicating options, :term:`secondaries <secondary>`
538
539
will pre-fetch :ref:`indexes` associated with a query to improve replication
539
540
throughput in most cases. The :setting:`replIndexPrefetch` setting and
540
541
:option:`--replIndexPrefectch <mongod --replIndexPrefetch>` option allow administrators to disable
541
- this feature or allow the :program:`mongod` to only pre-fetch the
542
+ this feature or allow the :program:`mongod` to pre-fetch only the
542
543
index on the ``_id`` field. See :issue:`SERVER-6718` for more information.
543
544
544
545
Map Reduce Improvements
@@ -555,7 +556,7 @@ Sharding Improvements
555
556
Index on Shard Keys Can Now Be a Compound Index
556
557
```````````````````````````````````````````````
557
558
558
- If your shard key the prefix of an existing index, then you do not
559
+ If your shard key uses the prefix of an existing index, then you do not
559
560
need to maintain a separate index for your shard key in addition to
560
561
your existing index. This index, however, cannot be a multi-key
561
562
index. See the ":ref:`sharding-shard-key-indexes`" documentation and
@@ -566,7 +567,7 @@ Migration Thresholds Modified
566
567
567
568
The :ref:`migration thresholds <sharding-migration-thresholds>` have
568
569
changed in 2.2 to permit more even distribution of :term:`chunks
569
- <chunk>` in collections with smaller quantities of data. See the
570
+ <chunk>` in collections that have smaller quantities of data. See the
570
571
:ref:`sharding-migration-thresholds` documentation for more
571
572
information.
572
573
0 commit comments