Skip to content

Commit

Permalink
change directIO configuration names to avoid confuse (#3791)
Browse files Browse the repository at this point in the history
  • Loading branch information
hangc0276 authored Feb 21, 2023
1 parent 6b6ea76 commit 5fced0d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
26 changes: 26 additions & 0 deletions conf/bk_server.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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 ##############################################

Expand Down

0 comments on commit 5fced0d

Please sign in to comment.