当前位置:网站首页>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 yes
And 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
边栏推荐
- 项目经验分享:实现一个昇思MindSpore 图层 IR 融合优化 pass
- 项目经验分享:基于昇思MindSpore,使用DFCNN和CTC损失函数的声学模型实现
- Grpc message sending of vertx
- 基于RNA的新型癌症疗法介绍
- 技术干货|昇思MindSpore可变序列长度的动态Transformer已发布!
- PDO and SDO concepts
- PHP微信抢红包的算法
- Inverted chain disk storage in Lucene (pfordelta)
- 技术干货|AI框架动静态图统一的思考
- C2 several methods of merging VCF files
猜你喜欢
Pat class a 1028 list sorting
技术干货|昇思MindSpore Lite1.5 特性发布,带来全新端侧AI体验
Project experience sharing: Based on mindspore, the acoustic model is realized by using dfcnn and CTC loss function
Go language foundation ----- 05 ----- structure
技术干货|AI框架动静态图统一的思考
Pat grade a 1027 colors in Mars
Go language foundation ----- 11 ----- regular expression
Es writing fragment process
Leetcode 213: looting II
The concept of C language pointer
随机推荐
Go language foundation ----- 03 ----- process control, function, value transfer, reference transfer, defer function
Pat class a 1031 Hello world for u
PAT甲级 1030 Travel Plan
Lucene skip table
項目經驗分享:實現一個昇思MindSpore 圖層 IR 融合優化 pass
技术干货|昇思MindSpore创新模型EPP-MVSNet-高精高效的三维重建
Technical dry goods | hundred lines of code to write Bert, Shengsi mindspire ability reward
Redis查看客户端连接
Go language foundation ----- 19 ----- context usage principle, interface, derived context (the multiplexing of select can be better understood here)
Technical dry goods | reproduce iccv2021 best paper swing transformer with Shengsi mindspire
[MySQL 12] MySQL 8.0.18 reinitialization
研究显示乳腺癌细胞更容易在患者睡觉时进入血液
[MySQL 13] if you change your password for the first time after installing mysql, you can skip MySQL password verification to log in
OSPF experiment
项目经验分享:基于昇思MindSpore实现手写汉字识别
static关键字
[MySQL 14] use dbeaver tool to remotely backup and restore MySQL database (Linux Environment)
[coppeliasim4.3] C calls UR5 in the remoteapi control scenario
[MySQL 11] how to solve the case sensitive problem of MySQL 8.0.18
Shengsi mindspire is upgraded again, the ultimate innovation of deep scientific computing