You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by GitBox <gi...@apache.org> on 2023/01/06 04:10:09 UTC

[GitHub] [incubator-kvrocks] PragmaTwice commented on a diff in pull request #953: feat: add mutil_path to conf

PragmaTwice commented on code in PR #953:
URL: https://github.com/apache/incubator-kvrocks/pull/953#discussion_r1063078508


##########
kvrocks.conf:
##########
@@ -760,5 +760,36 @@ rocksdb.write_options.low_pri no
 # Default: no
 rocksdb.write_options.memtable_insert_hint_per_batch no
 
+# A list of paths where SST files can be put into, with its target size.
+# Newer data is placed into paths specified earlier in the vector while
+# older data gradually moves to paths specified later in the vector.
+#
+# For example, you have a flash device with 10GB allocated for the DB,
+# as well as a hard drive of 2TB, you should config it to be:
+#   [{"/flash_path", 10GB}, {"/hard_drive", 2TB}]
+#
+# The system will try to guarantee data under each path is close to but
+# not larger than the target size. But current and future file sizes used
+# by determining where to place a file are based on best-effort estimation,
+# which means there is a chance that the actual size under the directory
+# is slightly more than target size under some workloads. User should give
+# some buffer room for those cases.
+#
+# If none of the paths has sufficient room to place a file, the file will
+# be placed to the last path anyway, despite to the target size.
+#
+# Placing newer data to earlier paths is also best-efforts. User should
+# expect user files to be placed in higher levels in some extreme cases.
+#
+# If left empty, only one path will be used, which is db_name passed when
+# opening the DB.
+# Default: empty
+#
+# If KVRocks stores a lot of cold data, you can use this parameter to
+# reduce the amount of high performance disk usage.
+#
+# Default: empty

Review Comment:
   duplicated "default"



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org