Skip to content

Commit 8bb2f61

Browse files
author
Sam Kleinman
committed
DOCS-1067 syncdely documentation update
1 parent 9e23ba7 commit 8bb2f61

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

source/reference/configuration-options.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -541,18 +541,18 @@ Settings
541541
:program:`mongod` writes data very quickly to the journal, and
542542
lazily to the data files. :setting:`syncdelay` controls how much
543543
time can pass before MongoDB flushes data to the datafiles via an
544-
:term:`fsync` operation. The default setting is 60 seconds. We
545-
recommend almost always using the default setting of 60.
544+
:term:`fsync` operation. The default setting is 60 seconds. In
545+
almost every situation you should not set this value and use the
546+
default setting.
546547

547-
The serverStatus command reports the background flush thread's
548-
status via the backgroundFlushing field.
548+
The :dbcommand:`serverStatus` command reports the background flush
549+
thread's status via the :data:`~serverStatus.backgroundFlushing` field.
549550

550-
.. note::
551+
.. warning::
551552

552-
If :setting:`syncdelay` is ``0``, :program:`mongod` flushes all
553-
operations to disk immediately, which has a significant impact
554-
on performance. Run with :setting:`journal` enabled, which is the
555-
default for 64-bit MongoDB builds.
553+
If you set :setting:`syncdelay` to ``0``, MongoDB will not sync
554+
the memory mapped files to disk. Do not set this value on
555+
production systems.
556556

557557
.. setting:: sysinfo
558558

source/reference/mongod.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -416,21 +416,21 @@ Options
416416

417417
.. option:: --syncdelay <value>
418418

419-
:program:`mongod` writes data very quickly to the journal, and lazily to the
420-
data files. :option:`--syncdelay` controls how much time can pass before
421-
MongoDB flushes data to the datafiles via an :term:`fsync`
422-
operation. The default setting is 60 seconds. We recommend almost
423-
always using the default setting of 60.
419+
:program:`mongod` writes data very quickly to the journal, and
420+
lazily to the data files. :option:`--syncdelay` controls how much
421+
time can pass before MongoDB flushes data to the datafiles via an
422+
:term:`fsync` operation. The default setting is 60 seconds. In
423+
almost every situation you should not set this value and use the
424+
default setting.
424425

425-
The serverStatus command reports the background flush thread's
426-
status via the backgroundFlushing field.
426+
The :dbcommand:`serverStatus` command reports the background flush
427+
thread's status via the :data:`~serverStatus.backgroundFlushing` field.
427428

428-
.. note::
429+
.. warning::
429430

430-
If :option:`--syncdelay` is ``0``, :program:`mongod` flushes all
431-
operations to disk immediately, which has a significant impact
432-
on performance. Run with :setting:`journal` enabled, which is the
433-
default for 64-bit MongoDB builds.
431+
If you set :option:`--syncdelay` to ``0``, MongoDB will not
432+
sync the memory mapped files to disk. Do not set this value on
433+
production systems.
434434

435435
.. option:: --sysinfo
436436

0 commit comments

Comments
 (0)