redis configuration
[root@abcdcache1 bin]# ./redis-server -v
Redis server v=3.2.10 sha=00000000:0 malloc=jemalloc-4.0.3 bits=64 build=66dc59d126b21981
[root@spmncache1 bin]# grep -v ^# redis.conf|more
bind 0.0.0.0
protected-mode yes
port 6379
tcp-backlog 511
timeout 0
tcp-keepalive 300
daemonize yes
supervised no
pidfile "/var/run/redis_6379.pid"
loglevel notice
logfile ""
databases 16
save 900 1
save 300 10
save 60 10000
stop-writes-on-bgsave-error yes
rdbcompression yes
rdbchecksum yes
dbfilename "dump.rdb"
dir "/redis3/redis1/bin"
masterauth "sinopass123"
slave-serve-stale-data yes
slave-read-only yes
repl-diskless-sync no
repl-diskless-sync-delay 5
repl-disable-tcp-nodelay no
slave-priority 100
requirepass "sinopass123"
appendonly yes
appendfilename "appendonly.aof"
appendfsync everysec
no-appendfsync-on-rewrite no
auto-aof-rewrite-percentage 100
auto-aof-rewrite-min-size 64mb
aof-load-truncated yes
lua-time-limit 5000
slowlog-log-slower-than 10000
slowlog-max-len 128
latency-monitor-threshold 0
notify-keyspace-events ""
hash-max-ziplist-entries 512
hash-max-ziplist-value 64
list-max-ziplist-size -2
list-compress-depth 0
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
[root@abcdcache1 bin]# more sentinel.conf
port 26379
daemonize yes
logfile "sentinel.log"
sentinel myid 0e550299bade45e05d765e986044262b8d5604c4
protected-mode no
bind 0.0.0.0
# Generated by CONFIG REWRITE
dir "/redis3/redis1/bin"
sentinel monitor mymaster 172.30.201.214 6379 2
sentinel auth-pass mymaster abcdpass123
sentinel config-epoch mymaster 5
sentinel leader-epoch mymaster 5
sentinel known-slave mymaster 172.30.201.215 6380
sentinel known-sentinel mymaster 172.30.201.215 26380 97a7c07647c54bdffb15afcc584b7c0c157cb014
sentinel current-epoch 5
Some configurations:
manage redis node:
./redis-cli -h 172.30.201.214 -p 6379 -a abcdpass123
shutdown redis node:
./redis-cli -h 172.30.201.214 -p 6379 -a abcdpass123 shutdown
connect sentinel:
./redis-cli -h 172.30.201.214 -p 26379
./redis-cli -h 172.30.201.215 -p 26380
check configuration:
info sentinel
Reference:
https://www.cnblogs.com/kismetv/p/9609938.html
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10973950/viewspace-2215084/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- openwrt advanced configuration
- etcd install & configuration
- 9.(轉)Spring Configuration Check Unmapped Spring configuration files foundSpringAPP
- .net core Configuration物件物件
- spring 解析 @Configuration 流程Spring
- 【Spring 註解】@Configuration和@BeanSpringBean
- .Net Core Configuration原始碼探究原始碼
- Spring處理@Configuration的分析Spring
- @Configuration, @Bean 註解的作用Bean
- SAP Spartacus Multi-Site Configuration
- new sublime text4 configuration
- Spring Boot Configuration Annotation Processor not configuredSpring Boot
- How to Understand Transportation Lane Configuration in SAP SNP
- asp.net core 系列之ConfigurationASP.NET
- Spring管理的@Configuration註解使用Spring
- 理解ASP.NET Core - 配置(Configuration)ASP.NET
- Spring-@Configuration註解簡析Spring
- Error: Cannot find configuration directory: /etc/hadoopErrorHadoop
- MongoDB:Read and write access to data and configuration is unrestricted.MongoDBREST
- HITSC_3_Software Construction Process and Configuration ManagementStruct
- .Net Core Configuration Etcd資料來源
- Springboot中註解@Configuration原始碼分析Spring Boot原始碼
- Spring中@Component和@Configuration的區別Spring
- Apache Tomcat 7 Configuration BIO NIO AIO APR ThreadPoolApacheTomcatAIthread
- SpringBoot-定義自己的auto-configurationSpring Boot
- The app.Configuration 'compile' is obsolete and has been replaced with 'implementation'APPCompile
- Spring零配置之@Configuration註解詳解Spring
- SAP UI configuration determination的優先順序UI
- 【USB筆記】配置描述符Configuration Descriptor筆記
- .NET Core 3.0之Configuration原始碼探究(一)原始碼
- Jenkins 配置即程式碼(Configuration as Code)詳解Jenkins
- sap.ui.core.Configuration 的作用簡析UI
- ASP.NET Core Web API 教程 - Project ConfigurationASP.NETWebAPIProject
- 【Bug解決】Spring Boot Configuration Annotation Processor not configuredSpring Boot
- [20181010]v$rman_configuration沒有輸出.txt
- 如何在 openSUSE 中使用 Zypper Configuration 設定代理
- web server apache tomcat11-12-SSL/TLS ConfigurationWebServerApacheTomcatTLS
- Example of SQL Linux Windows Authentication configuration using Managed Service AccountsSQLLinuxWindows