forked from OpenAtomFoundation/pika
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new compact strategy(OpenAtomFoundation#2)
- Loading branch information
Showing
12 changed files
with
551 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
block_cache_size | ||
# 360 dba pika conf pika3.5.2 | ||
port : 9221 | ||
thread-num : 8 | ||
log-path : ./log/ | ||
loglevel : info | ||
db-path : ./db/ | ||
write-buffer-size : 256M | ||
timeout : 30 | ||
#requirepass : 06154eee364854d5 | ||
#masterauth : 06154eee364854d5 | ||
#userpass : 06154eee364854d5360 | ||
#userblacklist : bgsave,dumpoff,client | ||
dump-prefix : pika- | ||
dump-expire : 1 | ||
pidfile : .pika.pid | ||
daemonize : yes | ||
dump-path : ./dump/block_cache_size | ||
maxclients : 20000 | ||
target-file-size-base : 20971520 | ||
expire-logs-days : 7 | ||
expire-logs-nums : 300 | ||
root-connection-num : 10 | ||
slowlog-log-slower-than : 100000 | ||
binlog-file-size : 104857600 | ||
compression : snappy | ||
db-sync-path : ./dbsync | ||
db-sync-speed : 60 | ||
slowlog-write-errorlog : yes | ||
small-compaction-threshold : 5000 | ||
max-write-buffer-size : 20737418240 | ||
max-cache-files : 8000 | ||
replication-num : 0 | ||
consensus-level : 0 | ||
max-cache-statistic-keys : 0 | ||
thread-pool-size : 30 | ||
slowlog-write-errorlog : yes | ||
default-slot-num : 1024 | ||
instance-mode : classic | ||
databases : 1 | ||
sync-thread-num : 1 | ||
arena-block-size : 33554432 | ||
max-background-jobs : 12 | ||
max-background-flushes : 3 | ||
max-background-compactions : 9 | ||
rate-limiter-bandwidth : 1099511627776 | ||
db-instance-num : 1 | ||
block-size : 4096 | ||
#block-cache : 5368709120 | ||
block-cache : 4294967296 | ||
max-subcompactions : 8 | ||
|
||
#cache-maxmemory : 5368709120 | ||
cache-lfu-decay-time : 1 | ||
cache-maxmemory-samples : 5 | ||
cache-maxmemory-policy : 1 | ||
cache-num : 8 | ||
cache-model : 0 | ||
zset-cache-field-num-per-key : 512 | ||
zset-cache-start-direction : 0 | ||
cache-type : | ||
|
||
share-block-cache : yes | ||
throttle-bytes-per-second : 102400000 | ||
max-rsync-parallel-num : 4 | ||
write-binlog : no | ||
slotmigrate : no | ||
|
||
# Pika automatic compact compact strategy, a complement to rocksdb compact. | ||
# Trigger the compact background task periodically according to `compact-interval` | ||
# Can choose `full-compact` or `obd-compact`. | ||
# obd-compact https://github.com/OpenAtomFoundation/pika/issues/2255 | ||
compaction-strategy : obd-compact | ||
|
||
# For OBD_Compact | ||
# According to the number of sst files in rocksdb, | ||
# compact every `compact-every-num-of-files` file. | ||
compact-every-num-of-files : 10 | ||
|
||
# For OBD_Compact | ||
# In another search, if the file creation time is | ||
# greater than `force-compact-file-age-seconds`, | ||
# a compaction of the upper and lower boundaries | ||
# of the file will be performed at the same time | ||
# `compact-every-num-of-files` -1 | ||
force-compact-file-age-seconds : 300 | ||
|
||
# For OBD_Compact | ||
# According to the number of sst files in rocksdb, | ||
# compact every `compact-every-num-of-files` file. | ||
force-compact-min-delete-ratio : 10 | ||
|
||
# For OBD_Compact | ||
# According to the number of sst files in rocksdb, | ||
# compact every `compact-every-num-of-files` file. | ||
dont-compact-sst-created-in-seconds : 5 | ||
|
||
# For OBD_Compact | ||
# According to the number of sst files in rocksdb, | ||
# compact every `compact-every-num-of-files` file. | ||
best-delete-min-ratio : 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.