Redis 3.0.7 参数文件参考
admin
2023-06-07 15:41:40
0

Redis 3.0.7 参数文件参考

cat /app/redis/config/redis_6380.conf 
#################### INCLUDES ####################
# include /path/local.conf
# include /path/other.conf
#################### GENERAL  ####################
daemonize yes
pidfile "/app/redis/config/redis_6380.pid"
port 6380
tcp-backlog 511
# bind 192.168.1.100 10.0.0.1
# bind 127.0.0.1
# unixsocket /app/redis/tmp/redis.sock
# unixsocketperm 700
timeout 30
tcp-keepalive 0
loglevel notice
logfile "/app/redis/log/redis_6380.log"
databases 16
#################### SNAPSHOTTING ###############
# save ""
save 900 1
save 300 10
save 60 10000
stop-writes-on-bgsave-error yes
rdbcompression yes
rdbchecksum yes
dbfilename "dump_6380.rdb"
dir "/app/redis/db_data"
#################### REPLICATION ###############
slave-serve-stale-data no
slave-read-only yes
repl-diskless-sync no
repl-diskless-sync-delay 5
# repl-ping-slave-period 10
# repl-timeout 60
repl-disable-tcp-nodelay no
# repl-backlog-size 1mb
# repl-backlog-ttl 3600
slave-priority 100
# min-slaves-to-write 3
# min-slaves-max-lag 10
#################### SECURITY ##################
# rename-command CONFIG ""
#################### LIMITS ####################
maxclients 20000
maxmemory 10gb
# volatile-lru -> remove the key with an expire set using an LRU algorithm  
# allkeys-lru -> remove any key accordingly to the LRU algorithm  
# volatile-random -> remove a random key with an expire set  
# allkeys-random -> remove a random key, any key  
# volatile-ttl -> remove the key with the nearest expire time (minor TTL)  
# noeviction -> don't expire at all, just return an error on write operations  
maxmemory-policy allkeys-lru  
#################### APPEND ONLY MODE #########
appendonly yes
appendfilename "appendonly_6380.aof"
appendfsync everysec
no-appendfsync-on-rewrite no
auto-aof-rewrite-percentage 100
auto-aof-rewrite-min-size 64mb
aof-load-truncated yes
#################### LUA SCRIPTING ############
lua-time-limit 5000
#################### 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-entries 512
list-max-ziplist-value 64
set-max-intset-entries 512
zset-max-ziplist-entries 128
zset-max-ziplist-value 64
hll-sparse-max-bytes 3000
activerehashing yes
client-output-buffer-limit normal 0 0 0
client-output-buffer-limit slave 256mb 64mb 60
client-output-buffer-limit pubsub 32mb 8mb 60
hz 10
aof-rewrite-incremental-fsync yes
#################### Redis Auth ############## 
masterauth "<>"
requirepass "<>"
slaveof 10.0.20.14 6380
########## Redis Cluster ##########
# cluster-enabled yes  
# cluster配置文件(启动自动生成)  
# cluster-config-file nodes.conf  
#节点互连超时的阀值  
# cluster-node-timeout 15000  
# cluster-slave-validity-factor 10
# cluster-migration-barrier 1  
# cluster-require-full-coverage yes
#部署在同一机器的redis实例,把auto-aof-rewrite搓开,防止瞬间fork所有redis进程做rewrite,占用大量内存 
# auto-aof-rewrite-percentage 80-100
$cat /app/redis/config/sentinel_26380.conf
port 26380
daemonize yes
logfile "/app/redis/log/sentinel_26380.log"
dir "/app/redis/tmp"
#master 10.0.20.14 6380
sentinel monitor master_6380 10.0.20.14 6380 1
sentinel down-after-milliseconds master_6380 3000
sentinel failover-timeout master_6380 15000
sentinel parallel-syncs master_6380 1
sentinel auth-pass master_6380 XXXXXX


相关内容

热门资讯

当前约有240艘船只等待伊朗批... △霍尔木兹海峡(资料图)据伊朗方面24日消息,目前约有240艘船只正在等待获得伊朗方面许可后进入霍尔...
时隔12年,中国再度举办这一重... ‍‍5月23日,中共中央政治局委员、国务院副总理何立峰在苏州出席亚太经合组织(APEC)贸易部长会议...
美伊协议未官宣共和党先内讧,克... 周六,得克萨斯州共和党参议员泰德·克鲁兹表示,他对美国与伊朗即将达成的协议条款“深感担忧”,随后在社...
非常时刻,任正非突然亮相《新闻... 作者 | 布语发现没有,任正非最近在《新闻联播》中公开亮相了,仅仅10秒的镜头,信号却很不寻常。5月...
投喂狮子时观光车车门突然打开!... 5月21日,北京八达岭野生动物园猛兽区发生观光游览车车门意外开启事件,引发社会高度关注。据新京报报道...
重庆电视机安装费 如果是小米或者是索尼的电视机,在安底座的时候是不会收费的,但是如果是安装架子或者是墙壁的费用是大概会...
空调安装费是多少钱 空调安装费用是由多个因素决定的,包括空调的类型、安装位置、管路长度、安装人员等等。因此,空调安装费用...
通风管道安装费多少钱一平米 通风管道的安装费用会受到多种因素的影响,例如管道的材质、直径、长度、安装位置、安装难度等等。因此,很...
问一问欧普led吸顶灯坏了怎么... 您好,欧普led吸顶灯是知名的品牌,在市场上是非常常见的,而且欧普这个品牌在业界的口碑也是非常的好,...
led吸顶灯关了还微亮怎么解决 LED 吸顶灯关了还微亮可能是由以下原因引起的:1. 电源问题:灯具的电源可能存在漏电或电容放电等问...