当前位置:网站首页>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
边栏推荐
- Es writing fragment process
- 项目经验分享:基于昇思MindSpore实现手写汉字识别
- PHP微信抢红包的算法
- 【MySQL 11】怎么解决MySQL 8.0.18 大小写敏感问题
- PHP常用排序算法
- s7700设备如何清除console密码
- Research shows that breast cancer cells are more likely to enter the blood when patients sleep
- 技术干货|昇思MindSpore初级课程上线:从基本概念到实操,1小时上手!
- [Development Notes] cloud app control on device based on smart cloud 4G adapter gc211
- Enter three times and guess a number
猜你喜欢

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

Go language foundation ----- 02 ----- basic data types and operators

Traversal in Lucene

Technical dry goods | hundred lines of code to write Bert, Shengsi mindspire ability reward

Go language foundation ----- 01 ----- go language features

在浏览器输入url后执行什么

Partage de l'expérience du projet: mise en œuvre d'un pass optimisé pour la fusion IR de la couche mindstore

Technical dry goods Shengsi mindspire lite1.5 feature release, bringing a new end-to-end AI experience

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

Leetcode 213: looting II
随机推荐
Harmonyos third training notes
输入三次猜一个数字
[mindspire paper presentation] summary of training skills in AAAI long tail problem
PAT甲级 1027 Colors in Mars
Inverted chain disk storage in Lucene (pfordelta)
Pat class a 1032 sharing
【LeetCode】2. Valid Parentheses·有效的括号
优质博客——
华为S5700交换机初始化和配置telnet,ssh用户方法
Paper learning -- Study on the similarity of water level time series of Xingzi station in Poyang Lake
华为S5700交换机初始化和配置SSH和TELNET远程登录方法
Technology dry goods | luxe model for the migration of mindspore NLP model -- reading comprehension task
【踩坑系列】mysql 修改root密码失败
Industrial resilience
【MindSpore论文精讲】AAAI长尾问题中训练技巧的总结
Go language foundation ----- 18 ----- collaboration security, mutex lock, read-write lock, anonymous lock, sync Once
Analysis of the problems of the 7th Blue Bridge Cup single chip microcomputer provincial competition
Technology dry goods | Roberta of the migration of mindspore NLP model - emotion analysis task
experiment.........
Traversal in Lucene