@@ -71,6 +71,8 @@ downtime, use the following procedure:
71
71
upgrade by replacing the :program:`mongod` binary with the 2.2
72
72
binary.
73
73
74
+ .. _2.2-upgrade-shard-cluster:
75
+
74
76
Upgrading a Shard Cluster
75
77
~~~~~~~~~~~~~~~~~~~~~~~~~
76
78
@@ -105,32 +107,49 @@ Major Features
105
107
Aggregation Framework
106
108
`````````````````````
107
109
108
- Documentation: :doc:`/applications/aggregation`
110
+ The aggregation framework makes it possible to do aggregation
111
+ operations without needing to use :term:`map-reduce`. The
112
+ :dbcommand:`aggregate` exposes the aggregation framework, and the
113
+ :func:`db.collection.aggregate()` helper in the :program:`mongo` shell
114
+ provides an interface to these operations. Consider the following
115
+ resources for background on the aggregation framework and its use:
116
+
117
+ - Documentation: :doc:`/applications/aggregation`
109
118
110
- Reference: :doc:`/reference/aggregation`
119
+ - Reference: :doc:`/reference/aggregation`
111
120
112
- Examples: :doc:`/tutorial/aggregation-examples`
121
+ - Examples: :doc:`/tutorial/aggregation-examples`
113
122
114
123
TTL Collections
115
124
```````````````
116
125
117
- Documentation: :doc:`/tutorial/expire-data`
126
+ TTL collections remove expired data from a collection, using a special
127
+ index and a background thread that deletes expired documents every
128
+ minute. These collections are useful as an alternative to
129
+ :term:`capped collections <capped collection>` in some cases, for data
130
+ warehousing and caching cases including: machine generated event data,
131
+ logs, and session information that only need to persist in a database
132
+ for a limited period of time.
133
+
134
+ For more information, see the :doc:`/tutorial/expire-data` tutorial.
118
135
119
136
Concurrency Improvements
120
137
````````````````````````
121
138
122
- Issues:
139
+ In 2.2 MongoDB increases the server's capacity for concurrent
140
+ operations with two key improvements:
123
141
124
- - :issue:`DB Level Locking <SERVER-4328>`
125
- - :issue:`Improved Yielding on Page Faults <SERVER-3357>`
142
+ #. :issue:`DB Level Locking <SERVER-4328>`
143
+ #. :issue:`Improved Yielding on Page Faults <SERVER-3357>`
126
144
127
- .. TODO mention server stats reporting here. currentOp, serverStatus, profile.
128
-
129
- Documentation: Updated reporting on :ref:`locks` in :doc:`server
130
- status </reference/server-status>` as well as :doc:`mongotop
145
+ To reflect these changes, MongoDB now provides changed and improved
146
+ reporting for concurrency and use, see the :ref:`locks` and
147
+ :ref:`server-status-record-stats` in :doc:`server status
148
+ </reference/server-status>` and in the output of
149
+ :func:`db.currentOp()` as well as :doc:`mongotop
131
150
</reference/mongotop>` and :doc:`mongostat </reference/mongostat>`.
132
151
133
- .. TODO add links to current op when it happens.
152
+ .. TODO add links to current op output documentation when it happens.
134
153
135
154
Tag Aware Sharding
136
155
``````````````````
@@ -142,20 +161,47 @@ Tag Aware Sharding
142
161
Fully Supported Read Preference Semantics
143
162
`````````````````````````````````````````
144
163
145
- .. TODO write blurb mentioning mongos.
146
-
147
- mongos and all major drivers support full read preference as
148
- specified:
164
+ All MongoDB clients and drivers now support full :ref:`read
165
+ preferences <replica-set-read-preference>` including consistent
166
+ support for a full range of :ref:`read preference modes
167
+ <replica-set-read-preference-modes>` and :ref:`tag sets
168
+ <replica-set-read-preference-tag-sets>`. This support extends to the
169
+ :program:`mongos` and applies identically to single replica sets, and
170
+ the replica sets for each shard in a :term:`shard cluster`.
149
171
150
- :ref:`replica-set-read-preference`
172
+ Additional read preference support now exists in the :program:`mongo`
173
+ shell using the :func:`reaPref() <cursor.readPref()>` cursor method.
151
174
152
175
.. including tagging
153
176
154
177
Compatibility Changes
155
178
~~~~~~~~~~~~~~~~~~~~~
156
179
157
- .. TODO add sections here to describe compatibility changes with
158
- regards to authentication, drivers, and mongos'
180
+ Authentication Changes
181
+ ``````````````````````
182
+
183
+ In order to provide more reliable and robust support for
184
+ authentication clients, including drivers and :program:`mongos`
185
+ instances.
186
+
187
+ If your :program:`mongod` instances or cluster runs with
188
+ authentication:
189
+
190
+ - In sharded environments, 2.0 version :program:`mongos` instances are
191
+ **not** compatible with 2.2 shard clusters running with
192
+ authentication.
193
+
194
+ You **must** use the :ref:`upgrade procedure for shard clusters
195
+ <2.2-upgrade-shard-cluster>` and upgrade all :program:`mongos`
196
+ instances *before* upgrading the shard to prevent rendering your
197
+ cluster non-operational.
198
+
199
+ - For all drivers, use the latest release of your driver and check
200
+ its release notes.
201
+
202
+ Drivers and :program:`mongos` instances that connect to
203
+ :program:`mongod` instances that do *not* have authentication enabled
204
+ are not affected by this issue.
159
205
160
206
.. _2.2-findandmodify-returns-null:
161
207
@@ -316,9 +362,6 @@ Support for logging to Syslog
316
362
317
363
:issue:`SERVER-2957`
318
364
319
- Improved Authentication Support
320
- ```````````````````````````````
321
-
322
365
``touch`` Command
323
366
`````````````````
324
367
@@ -408,16 +451,21 @@ code base.
408
451
409
452
.. TODO help the verbs
410
453
411
- Additionally, added a flag to ``scons`` so that the build process can
412
- use system libraries, if desired. To build MongoDB with system
413
- libraries for all libraries, use the following arguments to ``scons``:
454
+ If you want to build MongoDB binaries using system Boost libraries,
455
+ you can pass ``scons`` the ``--use-system-boost`` flag, as follows:
414
456
415
457
.. code-block:: sh
416
458
417
- scons --use-system-all
459
+ scons --use-system-boost
418
460
419
- You can use the ``--use-system-boost`` to only use the system Boost
420
- library.
461
+ There is also a flag in ``scons`` if you want to build MongoDB using
462
+ all system libraries rather than the included versions of the
463
+ libraries, if desired. To build MongoDB with system libraries for all
464
+ libraries, use the following arguments to ``scons``:
465
+
466
+ .. code-block:: sh
467
+
468
+ scons --use-system-all
421
469
422
470
See the :issue:`SERVER-3829` and :issue:`SERVER-5172` issues for more
423
471
information.
0 commit comments