当前位置:网站首页>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
边栏推荐
- Go language foundation ------17 ----- channel creation, read-write, security shutdown, multiplexing select
- Inverted chain disk storage in Lucene (pfordelta)
- Screenshot tool snipaste
- Structure of golang
- Analysis of the eighth Blue Bridge Cup single chip microcomputer provincial competition
- 截图工具Snipaste
- Leetcode 213: looting II
- 华为S5700交换机初始化和配置SSH和TELNET远程登录方法
- 微软安全响应中心
- 項目經驗分享:實現一個昇思MindSpore 圖層 IR 融合優化 pass
猜你喜欢

Collector in ES (percentile / base)

Usage of requests module

Go language foundation ----- 03 ----- process control, function, value transfer, reference transfer, defer function

Analysis of the ninth Blue Bridge Cup single chip microcomputer provincial competition

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

Image recognition and detection -- Notes

技术干货 | AlphaFold/ RoseTTAFold开源复现(2)—AlphaFold流程分析和训练构建

【MindSpore论文精讲】AAAI长尾问题中训练技巧的总结

PAT甲级 1028 List Sorting

项目经验分享:基于昇思MindSpore实现手写汉字识别
随机推荐
s7700设备如何清除console密码
华为交换机:配置telnet和ssh、web访问
GoLang之结构体
Application of pigeon nest principle in Lucene minshouldmatchsumscorer
Technical dry goods Shengsi mindspire innovation model EPP mvsnet high-precision and efficient 3D reconstruction
Robots protocol
技术干货|昇思MindSpore Lite1.5 特性发布,带来全新端侧AI体验
Es writing fragment process
Unity XR实现交互(抓取,移动旋转,传送,射击)-Pico
Vertx's responsive redis client
PDO and SDO concepts
Go language foundation ----- 11 ----- regular expression
Lucene hnsw merge optimization
Chapter VI - Containers
Iterm2设置
EtherCAT state machine transition (ESM)
PAT甲级 1029 Median
华为交换机配置ssh登录远程管理交换机
PHP常用排序算法
Segment read