Skip to content

Commit 4cc2ece

Browse files
author
Bob Grabar
committed
temporarily store journaling faq as note in storage faq
1 parent dfab904 commit 4cc2ece

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

source/faq/storage.txt

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,55 @@ active document in memory.
101101

102102
For best performance, the majority of your *active* set should fit in
103103
RAM.
104+
105+
106+
.. todo The following "journal FAQ" content is from the wiki and must be added
107+
to the manual, perhaps on this page.
108+
109+
.. If I am using replication, can some members use journaling and others
110+
not?
111+
--------------------------------------------------------------------------
112+
113+
.. Yes. It is OK to use journaling on some replica set members and not
114+
others.
115+
116+
.. Can I use the journaling feature to perform safe hot backups?
117+
-------------------------------------------------------------
118+
119+
.. Yes, see :doc:`/administration/backups`.
120+
121+
.. 32 bit nuances?
122+
---------------
123+
124+
.. There is extra memory mapped file activity with journaling. This will
125+
further constrain the limited db size of 32 bit builds. Thus, for now
126+
journaling by default is disabled on 32 bit systems.
127+
128+
.. When did the --journal option change from --dur?
129+
------------------------------------------------
130+
131+
.. In 1.8 the option was renamed to --journal, but the old name is still
132+
accepted for backwards compatibility; please change to --journal if
133+
you are using the old option.
134+
135+
.. Will the journal replay have problems if entries are incomplete (like
136+
the failure happened in the middle of one)?
137+
-----------------------------------------------------------------------------------------------------------------
138+
139+
.. Each journal (group) write is consistent and won't be replayed during
140+
recovery unless it is complete.
141+
142+
.. How many times is data written to disk when replication and
143+
journaling are both on?
144+
-----------------------------------------------------------------------------------
145+
146+
.. In v1.8, for an insert, four times. The object is written to the main
147+
collection and also the oplog collection. Both of those writes are
148+
also journaled as a single mini-transaction in the journal files in
149+
/data/db/journal.
150+
151+
.. The above applies to collection data and inserts which is the worst
152+
case scenario. Index updates are written to the index and the
153+
journal, but not the oplog, so they should be 2X today not 4X.
154+
Likewise updates with things like $set, $addToSet, $inc, etc. are
155+
compactly logged all around so those are generally small.

0 commit comments

Comments
 (0)