@@ -12,7 +12,7 @@ allow you to diagnose issues as you encounter them, rather than
12
12
waiting for a crisis or failure.
13
13
14
14
This document provides an overview of the available tools and data
15
- provided by MongoDB as well as introduction to diagnostic strategies,
15
+ provided by MongoDB as well as an introduction to diagnostic strategies,
16
16
and suggestions for monitoring instances in MongoDB's replica sets and
17
17
sharded clusters.
18
18
@@ -89,7 +89,7 @@ MongoDB provides a number of commands that return
89
89
statistics about the state of the MongoDB instance. These data may
90
90
provide finer granularity regarding the state of the MongoDB instance
91
91
than the tools above. Consider using their output in scripts and
92
- programs to develop custom alerts, or modifying the behavior of your
92
+ programs to develop custom alerts, or to modify the behavior of your
93
93
application in response to the activity of your instance.
94
94
95
95
``serverStatus``
@@ -203,7 +203,7 @@ on your own servers, usually open source.
203
203
- `mikoomi-mongodb <https://code.google.com/p/mikoomi/wiki/03>`_
204
204
- Monitors availability, resource utilization, health, performance and other important metrics.
205
205
206
- Also consider `dex <https://github.com/mongolab/dex>`_, and index and
206
+ Also consider `dex <https://github.com/mongolab/dex>`_, an index and
207
207
query analyzing tool for MongoDB that compares MongoDB log files and
208
208
indexes to make indexing recommendations.
209
209
@@ -233,10 +233,10 @@ Process Logging
233
233
During normal operation, :program:`mongod` and :program:`mongos`
234
234
instances report information that reflect current operation to
235
235
standard output, or a log file. The following runtime settings
236
- methods to control these options.
236
+ control these options.
237
237
238
238
- :setting:`quiet`. Limits the amount of information written to the
239
- log our output.
239
+ log or output.
240
240
241
241
- :setting:`verbose`. Increases the amount of information written to
242
242
the log or output.
@@ -260,6 +260,7 @@ methods to control these options.
260
260
</reference/mongos>`
261
261
262
262
Additionally, the following :term:`database commands <database command>`
263
+ affect logging:
263
264
264
265
- :dbcommand:`getLog`. Displays recent messages from the :program:`mongod` process log.
265
266
@@ -270,7 +271,7 @@ Diagnosing Performance Issues
270
271
-----------------------------
271
272
272
273
Degraded performance in MongoDB can be the result of an array of
273
- causes, and is typically a function of the relationship between the
274
+ causes, and is typically a function of the relationship among the
274
275
quantity of data stored in the database, the amount of system RAM, the
275
276
number of connections to the database, and the amount of time the
276
277
database spends in a lock state.
@@ -281,19 +282,20 @@ the host system for virtualized environments. Some users also
281
282
experience performance limitations as a result of inadequate or
282
283
inappropriate indexing strategies, or as a consequence of poor schema
283
284
design patterns. In other situations, performance issues may indicate
284
- that the database may be operating at capacity and that it's time to
285
+ that the database may be operating at capacity and that it is time to
285
286
add additional capacity to the database.
286
287
287
288
Locks
288
289
~~~~~
289
290
290
- MongoDB uses a locking system to ensure consistency; however , if
291
+ MongoDB uses a locking system to ensure consistency. However , if
291
292
certain operations are long-running, or a queue forms, performance
292
293
slows as requests and operations wait for the lock. Because lock
293
294
related slow downs can be intermittent, look to the data in the
294
295
:ref:`globalLock` section of the :dbcommand:`serverStatus` response to
295
- asses if the lock has been a challenge to your performance. If
296
- :data:`globalLock.currentQueue.total <serverStatus.globalLock.currentQueue.total>` is consistently high, then
296
+ assess if the lock has been a challenge to your performance. If
297
+ :data:`globalLock.currentQueue.total <serverStatus.globalLock.currentQueue.total>`
298
+ is consistently high, then
297
299
there is a chance that a large number of requests are waiting for a
298
300
lock. This indicates a possible concurrency issue that might affect
299
301
performance.
@@ -343,6 +345,8 @@ check for page faults, see the :data:`extra_info.page_faults
343
345
:dbcommand:`serverStatus` command. This data is only available on
344
346
Linux systems.
345
347
348
+ .. we should reverify the previous statement as the info is appearing on OS X as well
349
+
346
350
Alone, page faults are minor and complete quickly; however, in
347
351
aggregate, large numbers of page fault typically indicate that MongoDB
348
352
is reading too much data from disk and can indicate a number of
@@ -355,7 +359,7 @@ this also improves overall throughput.
355
359
If possible, increasing the amount of RAM accessible to MongoDB may
356
360
help reduce the number of page faults. If this is not possible, you
357
361
may want to consider deploying a :term:`sharded cluster` and/or
358
- adding one or more :term:`shards <shard>` to your deployment to
362
+ adding one or more :term:`shards <shard>` to your deployment to
359
363
distribute load among :program:`mongod` instances.
360
364
361
365
Number of Connections
@@ -440,7 +444,7 @@ The following profiling levels are available:
440
444
=========== ======================================
441
445
442
446
See the output of the profiler in the ``system.profile`` collection of
443
- your database. You can specify the :setting:`slowms` to set a
447
+ your database. You can specify the :setting:`slowms` setting to set a
444
448
threshold above which the profiler considers operations "slow" and
445
449
thus included in the level ``1`` profiling data. You may configure
446
450
:setting:`slowms` at runtime, as an argument to the
@@ -472,7 +476,7 @@ Replication and Monitoring
472
476
--------------------------
473
477
474
478
The primary administrative concern that requires monitoring with
475
- replica sets, beyond the requirements for any MongoDB instance is
479
+ replica sets, beyond the requirements for any MongoDB instance, is
476
480
"replication lag." This refers to the amount of time that it takes a
477
481
write operation on the :term:`primary` to replicate to a
478
482
:term:`secondary`. Some very small delay period may be acceptable;
@@ -551,7 +555,7 @@ Balancing and Chunk Distribution
551
555
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
552
556
553
557
The most effective :term:`sharded cluster` deployments require that
554
- :term:`chunks <chunk>` are evenly balanced between the shards. MongoDB
558
+ :term:`chunks <chunk>` are evenly balanced among the shards. MongoDB
555
559
has a background :term:`balancer` process that distributes data such that
556
560
chunks are always optimally distributed among the :term:`shards <shard>`.
557
561
Issue the :method:`db.printShardingStatus()` or :method:`sh.status()`
0 commit comments