当前位置:网站首页>Redis profile
Redis profile
2022-07-03 07:45:00 【Lao Wang's notes】
redis.conf
tcp-backlog 511
timeout 0
tcp-keepalive 300
daemonize yes
loglevel notice
logfile ""
databases 16
always-show-logo no
set-proc-title yes
proc-title-template "{title} {listen-addr} {server-mode}"
save 3600 1 300 100 60 10000
stop-writes-on-bgsave-error yes
rdbcompression yes
rdbchecksum yes
rdb-del-sync-files no
dir ./
replica-serve-stale-data yes
replica-read-only yes
repl-diskless-sync yes
repl-diskless-sync-delay 5
repl-diskless-sync-max-replicas 0
repl-diskless-load disabled
repl-disable-tcp-nodelay no
replica-priority 100
acllog-max-len 128
lazyfree-lazy-eviction no
lazyfree-lazy-expire no
lazyfree-lazy-server-del no
replica-lazy-flush no
lazyfree-lazy-user-del no
lazyfree-lazy-user-flush no
oom-score-adj no
oom-score-adj-values 0 200 800
disable-thp yes
appendonly no
appendfilename "appendonly.aof"
appenddirname "appendonlydir"
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
aof-timestamp-enabled no
slowlog-log-slower-than 10000
slowlog-max-len 128
latency-monitor-threshold 0
notify-keyspace-events ""
hash-max-listpack-entries 512
hash-max-listpack-value 64
list-max-listpack-size -2
list-compress-depth 0
set-max-intset-entries 512
zset-max-listpack-entries 128
zset-max-listpack-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
jemalloc-bg-thread yesAnd each of them Redis Single instance port.conf The configuration file
# 6379.conf
include /export/data/redis/redis.conf
pidfile "/export/data/redis/6379.pid"
port 6379
dbfilename "6379.rdb"
sentinel.conf The configuration file
protected-mode no
daemonize yes
port 26379
dir "/export/data/redis"
logfile "/export/data/redis/log/sentinel.log"
# sentry sentinel Monitored redis The master node
# ip: host ip Address
# port: Sentry port number
# master-name: You can name the master node by yourself
# quorum: When these quorum Number sentinel The sentry thought master Primary node lost connection At this time, it is objectively considered that the master node is disconnected
# sentinel monitor <master-name> <ip> <redis-port> <quorum>
sentinel monitor mymaster 127.0.0.1 6380 1
# When in Redis In the example, the requirepass, All connections Redis The client of the instance must provide the password .
# sentinel auth-pass <master-name> <password>
# sentinel auth-pass mymaster 123456
# Specify the master node to answer the sentinel sentinel The maximum time interval , Beyond that time , Sentinels subjectively think that the primary node is offline ,
# Default 30 second
# sentinel down-after-milliseconds <master-name> <milliseconds>
sentinel down-after-milliseconds mymaster 10000
# Specifies when failover When switching between active and standby , How many at most slave Simultaneously on the new master To synchronize .
# The smaller the number , complete failover The longer it takes ; conversely , But if the number is bigger , Means
# The more slave because replication And is not available . You can do this by setting this value to zero 1, To make sure there's only one at a time slave,
# In a state where command requests cannot be processed .
# sentinel parallel-syncs <master-name> <numslaves>
sentinel parallel-syncs mymaster 1
# Generated by CONFIG REWRITE
latency-tracking-info-percentiles 50 99 99.9
user default on nopass sanitize-payload ~* &* [email protected]
sentinel myid c6c321b3c25ec7613f90ce8d0af38a4a5a1f1a21
sentinel config-epoch mymaster 6
sentinel leader-epoch mymaster 6
sentinel current-epoch 6
sentinel known-replica mymaster 127.0.0.1 6381
sentinel known-replica mymaster 127.0.0.1 6379
边栏推荐
猜你喜欢

Inverted chain disk storage in Lucene (pfordelta)

PAT甲级 1031 Hello World for U

圖像識別與檢測--筆記

Analysis of the problems of the 11th Blue Bridge Cup single chip microcomputer provincial competition

技术干货|利用昇思MindSpore复现ICCV2021 Best Paper Swin Transformer

Traversal in Lucene

Go language foundation ----- 09 ----- exception handling (error, panic, recover)

Redis批量启停脚本

技术干货|昇思MindSpore创新模型EPP-MVSNet-高精高效的三维重建

Go language foundation ----- 10 ----- string related operations (operation function, string conversion)
随机推荐
Vertx metric Prometheus monitoring indicators
技术干货|昇思MindSpore初级课程上线:从基本概念到实操,1小时上手!
Technical dry goods Shengsi mindspire innovation model EPP mvsnet high-precision and efficient 3D reconstruction
Responsive MySQL of vertx
tp3.2和tp5.0的区别
OSPF protocol summary
Vertx's responsive redis client
项目经验分享:基于昇思MindSpore,使用DFCNN和CTC损失函数的声学模型实现
技术干货|昇思MindSpore NLP模型迁移之LUKE模型——阅读理解任务
Project experience sharing: Based on mindspore, the acoustic model is realized by using dfcnn and CTC loss function
static关键字
密西根大学张阳教授受聘中国上海交通大学客座教授(图)
Go language foundation ------ 14 ------ gotest
Traversal in Lucene
Analysis of the problems of the 7th Blue Bridge Cup single chip microcomputer provincial competition
Go language - loop statement
experiment.........
Go language foundation ----- 11 ----- regular expression
Web router of vertx
The concept of C language pointer