You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by mm...@apache.org on 2019/03/29 23:51:05 UTC

[pulsar] branch merlimat-patch-4 updated: Also set fileInfoFormatVersionToWrite=0

This is an automated email from the ASF dual-hosted git repository.

mmerli pushed a commit to branch merlimat-patch-4
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/merlimat-patch-4 by this push:
     new 2ff9eb2  Also set fileInfoFormatVersionToWrite=0
2ff9eb2 is described below

commit 2ff9eb2cfbc9d7df190379d7c85101c75a6de585
Author: Matteo Merli <mm...@apache.org>
AuthorDate: Fri Mar 29 16:50:43 2019 -0700

    Also set fileInfoFormatVersionToWrite=0
---
 conf/bookkeeper.conf | 20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)

diff --git a/conf/bookkeeper.conf b/conf/bookkeeper.conf
index a04381e..9df49d2 100644
--- a/conf/bookkeeper.conf
+++ b/conf/bookkeeper.conf
@@ -74,8 +74,8 @@ bookieDeathWatchInterval=1000
 # When entryLogPerLedgerEnabled is enabled, checkpoint doesn't happens
 # when a new active entrylog is created / previous one is rolled over.
 # Instead SyncThread checkpoints periodically with 'flushInterval' delay
-# (in milliseconds) in between executions. Checkpoint flushes both ledger 
-# entryLogs and ledger index pages to disk. 
+# (in milliseconds) in between executions. Checkpoint flushes both ledger
+# entryLogs and ledger index pages to disk.
 # Flushing entrylog and index files will introduce much random disk I/O.
 # If separating journal dir and ledger dirs each on different devices,
 # flushing would not affect performance. But if putting journal dir
@@ -379,6 +379,16 @@ auditorPeriodicCheckInterval=604800
 # to gain performance according your requirements.
 openFileLimit=0
 
+# The fileinfo format version to write.
+#  Available formats are 0-1:
+#   0: Initial version
+#   1: persisting explicitLac is introduced
+# By default, it is `1`.
+# If you'd like to disable persisting ExplicitLac, you can set this config to 0 and
+# also journalFormatVersionToWrite should be set to < 6. If there is mismatch then the
+# serverconfig is considered invalid.
+fileInfoFormatVersionToWrite=0
+
 # Size of a index page in ledger cache, in bytes
 # A larger index page can improve performance writing page to disk,
 # which is efficent when you have small number of ledgers and these
@@ -440,9 +450,9 @@ readBufferSizeBytes=4096
 # The number of bytes used as capacity for the write buffer. Default is 64KB.
 writeBufferSizeBytes=65536
 
-# Specifies if entryLog per ledger is enabled/disabled. If it is enabled, then there would be a 
-# active entrylog for each ledger. It would be ideal to enable this feature if the underlying 
-# storage device has multiple DiskPartitions or SSD and if in a given moment, entries of fewer 
+# Specifies if entryLog per ledger is enabled/disabled. If it is enabled, then there would be a
+# active entrylog for each ledger. It would be ideal to enable this feature if the underlying
+# storage device has multiple DiskPartitions or SSD and if in a given moment, entries of fewer
 # number of active ledgers are written to a bookie.
 # entryLogPerLedgerEnabled=false