Skip to content

Commit

Permalink
add rate limiter comment for conf/pika.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexStocks committed May 8, 2023
1 parent 5a0cff2 commit a7e4bc2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ The User can download the binary release from [releases](https://github.com/Qiho

* linux - Ubuntu

* macOS (Darwin) on M1
* macOS

#### Dependencies

Expand Down Expand Up @@ -98,7 +98,7 @@ Upgrade your gcc to version at least 7 to get C++17 support.

3. Compile

Please run the script build.sh before you compile this db to check the environment and build this repo.
Please run the script build.sh before you compile this db to check the environment and build this repo.
If the gcc version is later than 7, such as CentOS6 or centOS7, you need to upgrade the gcc version first

Do as follows
Expand Down
2 changes: 1 addition & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Pika是一个可持久化的大容量redis存储服务,兼容string、hash、l

* linux - Ubuntu

* macOS(Darwin) on M1
* macOS(Darwin)

#### 依赖软件
* gcc g++ 支持C++17 (version>=7)
Expand Down
18 changes: 16 additions & 2 deletions conf/pika.conf
Original file line number Diff line number Diff line change
Expand Up @@ -304,36 +304,50 @@ max-bytes-for-level-multiplier : 10

# BlockBasedTable block_size, default 4k
# block-size: 4096

# block LRU cache, default 8M, 0 to disable
# Supported Units [K|M|G], default unit [bytes]
# block-cache: 8388608

# num-shard-bits default -1, the number of bits from cache keys to be use as shard id.
# The cache will be sharded into 2^num_shard_bits shards.
# https://github.com/EighteenZi/rocksdb_wiki/blob/master/Block-Cache.md#lru-cache
# num-shard-bits: -1

# whether the block cache is shared among the RocksDB instances, default is per CF
# share-block-cache: no

# whether or not index and filter blocks is stored in block cache
# cache-index-and-filter-blocks: no

# pin_l0_filter_and_index_blocks_in_cache [yes | no]
# When `cache-index-and-filter-blocks` is enabled, `pin_l0_filter_and_index_blocks_in_cache` is suggested to be enabled
# pin_l0_filter_and_index_blocks_in_cache : no

# when set to yes, bloomfilter of the last level will not be built
# optimize-filters-for-hits: no
# https://github.com/facebook/rocksdb/wiki/Leveled-Compaction#levels-target-size
# level-compaction-dynamic-level-bytes: no

###########################
# rocksdb rate limiter
# https://rocksdb.org/blog/2017/12/18/17-auto-tuned-rate-limiter.html
# https://github.com/EighteenZi/rocksdb_wiki/blob/master/Rate-Limiter.md
###########################

# rate limiter bandwidth, default 200MB
#rate-limiter-bandwidth : 209715200

# rate limiter auto tune https://rocksdb.org/blog/2017/12/18/17-auto-tuned-rate-limiter.html
# default: false
#rate-limiter-refill-period-us : 100000
#
#rate-limiter-fairness: 10

# rate limiter auto tune https://rocksdb.org/blog/2017/12/18/17-auto-tuned-rate-limiter.html. the default value is false.
#rate-limiter-auto-tuned : true

###########################
# rocksdb blob configure
# https://rocksdb.org/blog/2021/05/26/integrated-blob-db.html
# wiki https://github.com/facebook/rocksdb/wiki/BlobDB
###########################

Expand Down

0 comments on commit a7e4bc2

Please sign in to comment.