Skip to content

Commit 9b855a5

Browse files
authored
Merge pull request #836 from jvymazal/imjournal_fsync
Documetation for new 'fsync' imjournal option
2 parents 3ef1359 + 3ba46e5 commit 9b855a5

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

source/configuration/modules/imjournal.rst

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ WorkAroundJournalBug
245245
:widths: auto
246246
:class: parameter-table
247247

248-
"binary", "off", "no", "none"
248+
"binary", "on", "no", "none"
249249

250250
.. versionadded:: 8.37.0
251251

@@ -254,6 +254,28 @@ appear in rsyslog. If you turn on this option imjournal will keep track of curso
254254
with each message to work around this problem. Be aware that in some cases this
255255
might result in imjournal performance hit.
256256

257+
258+
FSync
259+
^^^^^
260+
261+
.. csv-table::
262+
:header: "type", "default", "mandatory", "|FmtObsoleteName| directive"
263+
:widths: auto
264+
:class: parameter-table
265+
266+
"binary", "off", "no", "none"
267+
268+
.. versionadded:: 8.1908.0
269+
270+
When there is a hard crash, power loss or similar abrupt end of rsyslog process,
271+
there is a risk of state file not being written to persistent storage or possibly
272+
being corrupted. This then results in imjournal starting reading elsewhere then
273+
desired and most probably message duplication. To mitigate this problem you can
274+
turn this option on which will force state file writes to persistent physical
275+
storage. Please note that fsync calls are costly, so especially with lower
276+
PersistStateInterval value, this may present considerable performance hit.
277+
278+
257279
.. _imjournal-statistic-counter:
258280

259281

0 commit comments

Comments
 (0)