Last active
August 22, 2021 15:25
-
-
Save yspb/358babd38d9d0ce51b2862dc667c4f7a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
################################## MODULES ##################################### | |
loadmodule /db/modules/libredis-roaring.so | |
loadmodule /db/modules/rejson.so | |
loadmodule /db/modules/redisearch.so | |
################################## NETWORK ##################################### | |
bind 127.0.0.1 | |
protected-mode yes | |
port 6379 | |
tcp-backlog 511 | |
timeout 0 | |
tcp-keepalive 300 | |
################################# GENERAL ##################################### | |
daemonize no | |
supervised auto | |
pidfile /db/redis-server.pid | |
loglevel notice | |
logfile /db/redis-server.log | |
databases 1 | |
always-show-logo yes | |
################################ SNAPSHOTTING ################################ | |
save "" | |
stop-writes-on-bgsave-error no | |
rdbcompression yes | |
dbfilename node-x.rdb | |
dir /db | |
################################# REPLICATION ################################# | |
replica-serve-stale-data yes | |
replica-read-only yes | |
repl-diskless-sync no | |
repl-diskless-sync-delay 5 | |
repl-diskless-load disabled | |
repl-disable-tcp-nodelay no | |
replica-priority 100 | |
############################## MEMORY MANAGEMENT ################################ | |
maxmemory 700mb | |
maxmemory-policy noeviction | |
############################# LAZY FREEING #################################### | |
lazyfree-lazy-eviction no | |
lazyfree-lazy-expire no | |
lazyfree-lazy-server-del no | |
replica-lazy-flush no | |
############################## APPEND ONLY MODE ############################### | |
appendonly yes | |
appendfilename "node-x.aof" | |
appendfsync everysec | |
no-appendfsync-on-rewrite no | |
auto-aof-rewrite-percentage 100 | |
auto-aof-rewrite-min-size 64mb | |
aof-load-truncated yes | |
aof-use-rdb-preamble yes | |
################################ LUA SCRIPTING ############################### | |
lua-time-limit 5000 | |
################################ REDIS CLUSTER ############################### | |
cluster-enabled yes | |
cluster-config-file cluster.conf | |
cluster-node-timeout 5000 | |
cluster-migration-barrier 1 | |
cluster-require-full-coverage no | |
################################## SLOW LOG ################################### | |
slowlog-log-slower-than 10000 | |
slowlog-max-len 128 | |
################################ LATENCY MONITOR ############################## | |
latency-monitor-threshold 0 | |
############################# EVENT NOTIFICATION ############################## | |
notify-keyspace-events "" | |
############################### ADVANCED CONFIG ############################### | |
hash-max-ziplist-entries 512 | |
hash-max-ziplist-value 64 | |
list-max-ziplist-size -2 | |
list-compress-depth 0 | |
set-max-intset-entries 512 | |
zset-max-ziplist-entries 128 | |
zset-max-ziplist-value 64 | |
hll-sparse-max-bytes 3000 | |
stream-node-max-bytes 4096 | |
stream-node-max-entries 100 | |
activerehashing yes | |
client-output-buffer-limit normal 0 0 0 | |
client-output-buffer-limit replica 256mb 64mb 60 | |
client-output-buffer-limit pubsub 32mb 8mb 60 | |
hz 10 | |
dynamic-hz yes | |
aof-rewrite-incremental-fsync yes | |
rdb-save-incremental-fsync yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment