[redis] update redis-tls
This commit is contained in:
parent
b25b77ee01
commit
2e1fbc0365
10 changed files with 300 additions and 0 deletions
8
redis-tls/predixy/conf/auth.conf
Normal file
8
redis-tls/predixy/conf/auth.conf
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
Authority {
|
||||
Auth {
|
||||
Mode write
|
||||
}
|
||||
Auth "#bccomplexpassword#" {
|
||||
Mode admin
|
||||
}
|
||||
}
|
||||
20
redis-tls/predixy/conf/cluster.conf
Normal file
20
redis-tls/predixy/conf/cluster.conf
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
## redis cluster server pool define
|
||||
|
||||
ClusterServerPool {
|
||||
MasterReadPriority 60
|
||||
StaticSlaveReadPriority 50
|
||||
DynamicSlaveReadPriority 50
|
||||
RefreshInterval 1
|
||||
ServerTimeout 1
|
||||
ServerFailureLimit 10
|
||||
ServerRetryTimeout 1
|
||||
KeepAlive 120
|
||||
Servers {
|
||||
+ redis-node1.ungleich.cloud:7001
|
||||
+ redis-node2.ungleich.cloud:7001
|
||||
+ redis-node3.ungleich.cloud:7001
|
||||
+ redis-node1.ungleich.cloud:7101
|
||||
+ redis-node2.ungleich.cloud:7101
|
||||
+ redis-node3.ungleich.cloud:7101
|
||||
}
|
||||
}
|
||||
104
redis-tls/predixy/conf/latency.conf
Normal file
104
redis-tls/predixy/conf/latency.conf
Normal file
|
|
@ -0,0 +1,104 @@
|
|||
LatencyMonitor all {
|
||||
Commands {
|
||||
+ all
|
||||
- blpop
|
||||
- brpop
|
||||
- brpoplpush
|
||||
}
|
||||
TimeSpan {
|
||||
+ 100
|
||||
+ 200
|
||||
+ 300
|
||||
+ 400
|
||||
+ 500
|
||||
+ 600
|
||||
+ 700
|
||||
+ 800
|
||||
+ 900
|
||||
+ 1000
|
||||
+ 1200
|
||||
+ 1400
|
||||
+ 1600
|
||||
+ 1700
|
||||
+ 1800
|
||||
+ 2000
|
||||
+ 2500
|
||||
+ 3000
|
||||
+ 3500
|
||||
+ 4000
|
||||
+ 4500
|
||||
+ 5000
|
||||
+ 6000
|
||||
+ 7000
|
||||
+ 8000
|
||||
+ 9000
|
||||
+ 10000
|
||||
}
|
||||
}
|
||||
|
||||
LatencyMonitor get {
|
||||
Commands {
|
||||
+ get
|
||||
}
|
||||
TimeSpan {
|
||||
+ 100
|
||||
+ 200
|
||||
+ 300
|
||||
+ 400
|
||||
+ 500
|
||||
+ 600
|
||||
+ 700
|
||||
+ 800
|
||||
+ 900
|
||||
+ 1000
|
||||
}
|
||||
}
|
||||
|
||||
LatencyMonitor set {
|
||||
Commands {
|
||||
+ set
|
||||
+ setnx
|
||||
+ setex
|
||||
}
|
||||
TimeSpan {
|
||||
+ 100
|
||||
+ 200
|
||||
+ 300
|
||||
+ 400
|
||||
+ 500
|
||||
+ 600
|
||||
+ 700
|
||||
+ 800
|
||||
+ 900
|
||||
+ 1000
|
||||
}
|
||||
}
|
||||
|
||||
LatencyMonitor blist {
|
||||
Commands {
|
||||
+ blpop
|
||||
+ brpop
|
||||
+ brpoplpush
|
||||
}
|
||||
TimeSpan {
|
||||
+ 1000
|
||||
+ 2000
|
||||
+ 3000
|
||||
+ 4000
|
||||
+ 5000
|
||||
+ 6000
|
||||
+ 7000
|
||||
+ 8000
|
||||
+ 9000
|
||||
+ 10000
|
||||
+ 20000
|
||||
+ 30000
|
||||
+ 40000
|
||||
+ 50000
|
||||
+ 60000
|
||||
+ 70000
|
||||
+ 80000
|
||||
+ 90000
|
||||
+ 100000
|
||||
}
|
||||
}
|
||||
38
redis-tls/predixy/conf/predixy.conf
Normal file
38
redis-tls/predixy/conf/predixy.conf
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
################################### GENERAL ####################################
|
||||
## Predixy configuration file example
|
||||
|
||||
## Specify a name for this predixy service
|
||||
## redis command INFO can get this
|
||||
Name PredixyExample
|
||||
|
||||
## Default is 0.0.0.0:7617
|
||||
Bind 0.0.0.0:7300
|
||||
|
||||
## Worker threads
|
||||
WorkerThreads 4
|
||||
|
||||
MaxMemory 0
|
||||
|
||||
ClientTimeout 300
|
||||
|
||||
Log /etc/predixy/conf/predixy.log
|
||||
|
||||
LogVerbSample 0
|
||||
LogDebugSample 0
|
||||
LogInfoSample 10000
|
||||
LogNoticeSample 1
|
||||
LogWarnSample 1
|
||||
LogErrorSample 1
|
||||
|
||||
|
||||
################################### AUTHORITY ##################################
|
||||
Include auth.conf
|
||||
|
||||
################################### SERVERS ####################################
|
||||
Include cluster.conf
|
||||
# Include sentinel.conf
|
||||
# Include try.conf
|
||||
|
||||
################################### LATENCY ####################################
|
||||
## Latency monitor define, see latency.conf
|
||||
Include latency.conf
|
||||
Loading…
Add table
Add a link
Reference in a new issue