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

mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git


The following commit(s) were added to refs/heads/master by this push:
     new 5fced0d434 change directIO configuration names to avoid confuse (#3791)
5fced0d434 is described below

commit 5fced0d4346f851b5698f1bdd3f7a06ee62a7fcb
Author: Hang Chen <[email protected]>
AuthorDate: Wed Feb 22 01:53:40 2023 +0800

    change directIO configuration names to avoid confuse (#3791)
---
 .../bookie/storage/ldb/DbLedgerStorage.java        |  6 ++---
 conf/bk_server.conf                                | 26 ++++++++++++++++++++++
 2 files changed, 29 insertions(+), 3 deletions(-)

diff --git 
a/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/storage/ldb/DbLedgerStorage.java
 
b/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/storage/ldb/DbLedgerStorage.java
index 81eab673dd..e02615df63 100644
--- 
a/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/storage/ldb/DbLedgerStorage.java
+++ 
b/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/storage/ldb/DbLedgerStorage.java
@@ -81,11 +81,11 @@ public class DbLedgerStorage implements LedgerStorage {
     public static final String READ_AHEAD_CACHE_MAX_SIZE_MB = 
"dbStorage_readAheadCacheMaxSizeMb";
     public static final String DIRECT_IO_ENTRYLOGGER = 
"dbStorage_directIOEntryLogger";
     public static final String DIRECT_IO_ENTRYLOGGER_TOTAL_WRITEBUFFER_SIZE_MB 
=
-        "dbStorage_directIOEntryLoggerTotalWriteBufferSizeMb";
+        "dbStorage_directIOEntryLoggerTotalWriteBufferSizeMB";
     public static final String DIRECT_IO_ENTRYLOGGER_TOTAL_READBUFFER_SIZE_MB =
-        "dbStorage_directIOEntryLoggerTotalReadBufferSizeMb";
+        "dbStorage_directIOEntryLoggerTotalReadBufferSizeMB";
     public static final String DIRECT_IO_ENTRYLOGGER_READBUFFER_SIZE_MB =
-        "dbStorage_directIOEntryLoggerReadBufferSizeMb";
+        "dbStorage_directIOEntryLoggerReadBufferSizeMB";
     public static final String DIRECT_IO_ENTRYLOGGER_MAX_FD_CACHE_TIME_SECONDS 
=
         "dbStorage_directIOEntryLoggerMaxFdCacheTimeSeconds";
 
diff --git a/conf/bk_server.conf b/conf/bk_server.conf
index 6304579a39..5017175219 100755
--- a/conf/bk_server.conf
+++ b/conf/bk_server.conf
@@ -768,6 +768,32 @@ gcEntryLogMetadataCacheEnabled=false
 # dbStorage_rocksDB_logPath=
 # dbStorage_rocksDB_format_version=2
 
+#############################################################################
+## DirectIO entry logger configuration
+#############################################################################
+# DirectIO entry logger only support DbLedgerStorage
+
+# Enable/Disable directIO entry logger.
+# dbStorage_directIOEntryLogger = false
+
+# Total write buffer size in megabytes for all the entry directories.
+# The write buffer size of each entry directory needs to be divided by the 
number of entry directories.
+# By default it will be allocated to 12.5% of the available direct memory.
+# dbStorage_directIOEntryLoggerTotalWriteBufferSizeMB=
+
+# Total read buffer size in megabytes for all the entry directories.
+# The read buffer size of each entry directory needs to be divided by the 
number of entry directories.
+# By default it will be allocated to 12.5% of the available direct memory.
+# dbStorage_directIOEntryLoggerTotalReadBufferSizeMB=
+
+# The buffer size, in megabytes, for each direct reader to read data from the 
entry log file.
+# An entry log file will have only one direct reader.
+# By default it will be set to 8MB
+# dbStorage_directIOEntryLoggerReadBufferSizeMB=8
+
+# Maximum cache time after a direct reader is accessed.
+# dbStorage_directIOEntryLoggerMaxFdCacheTimeSeconds=300
+
 
 ############################################## Metadata Services 
##############################################
 

Reply via email to