You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by "PragmaTwice (via GitHub)" <gi...@apache.org> on 2023/07/06 06:37:51 UTC

[GitHub] [kvrocks] PragmaTwice commented on a diff in pull request #1549: Reduce the block cache configurations into a single one

PragmaTwice commented on code in PR #1549:
URL: https://github.com/apache/kvrocks/pull/1549#discussion_r1253998915


##########
kvrocks.conf:
##########
@@ -530,22 +530,36 @@ migrate-sequence-gap 10000
 
 ################################ ROCKSDB #####################################
 
+# Specify the capacity of column family block cache. A larger block cache
+# may make requests faster while more keys would be cached. Max Size is 400*1024.
+# Default: 4096MB
+rocksdb.block_cache_size 4096
+
+# If this configuration is set to yes, the following block cache settings
+# (rocksdb.metadata_block_cache_size, rocksdb.subkey_block_cache_size,
+# rocksdb.share_metadata_and_subkey_block_cache) will be ignored, only using
+# rocksdb.block_cache_size to configure.
+# If this configuration is set to no, the following block cache settings
+# should be set. (deprecated)
+# Default: yes
+rocksdb.set_block_cache_size yes
+
 # Specify the capacity of metadata column family block cache. A larger block cache
 # may make requests faster while more keys would be cached. Max Size is 200*1024.
 # Default: 2048MB
-rocksdb.metadata_block_cache_size 2048
+#rocksdb.metadata_block_cache_size 2048 (deprecated)

Review Comment:
   It is not good to write `(deprecated)` here. Since it is not a vaild config item then.



-- 
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