-
Notifications
You must be signed in to change notification settings - Fork 1
/
default-config.toml
71 lines (58 loc) · 2.79 KB
/
default-config.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
debug = false
splitter = ':' # 用于分割key的字符
[server]
address = "0.0.0.0:16379"
name = "redis-proxy-local"
[upstream]
address = "redis://127.0.0.1:6379"
keepalive_interval = 60000
[double_write]
mode = "SYNC" # DISABLED、SYNC、ASYNC
async_queue_size = 100000 # work with ASYNC mode
worker_size = 10 # work with ASYNC mode
retries = 3 # work with ASYNC mode
address = "redis://0.0.0.0:6380"
keepalive_interval = 60000
config_center = "Local" # Etcd、Local
[[double_write.local_routes]]
keys = ["**"]
commands = []
[etcd_config]
endpoints = ["http://127.0.0.1:2379"]
username = "root"
password = "123456"
prefix = "/redis-proxy"
timeout = 3000
interval = 10000
admin_enabled = true
admin_addr = "0.0.0.0:9180"
admin_api_key = "edd1c9f034335f136f87ad84b625c8f1"
[filter_chain]
[filter_chain.blacklist]
config_center = "Local" # Etcd、Local
[[filter_chain.blacklist.local_routes]]
keys = ["foo1:blacklist:**", "foo2:blacklist:**"]
commands = []
[filter_chain.log]
[filter_chain.cmd_block]
block_cmds = [
"ASKING", "BGREWRITEAOF", "BGSAVE", "CLIENT CACHING", "CLIENT NO-EVICT", "CLIENT NO-TOUCH",
"CLIENT PAUSE", "CLIENT REPLY", "CLIENT TRACKING", "CLIENT TRACKINGINFO", "CLIENT UNBLOCK", "CLIENT UNPAUSE",
"CLUSTER ADDSLOTS", "CLUSTER ADDSLOTSRANGE", "CLUSTER BUMPEPOCH", "CLUSTER COUNT-FAILURE-REPORTS",
"CLUSTER COUNTKEYSINSLOT", "CLUSTER DELSLOTS", "CLUSTER DELSLOTSRANGE", "CLUSTER FAILOVER", "CLUSTER FLUSHSLOTS",
"CLUSTER FORGET", "CLUSTER GETKEYSINSLOT", "CLUSTER INFO", "CLUSTER KEYSLOT", "CLUSTER LINKS", "CLUSTER MEET",
"CLUSTER MYID", "CLUSTER MYSHARDID", "CLUSTER NODES", "CLUSTER REPLICAS", "CLUSTER REPLICATE", "CLUSTER RESET",
"CLUSTER SAVECONFIG", "CLUSTER SET-CONFIG-EPOCH", "CLUSTER SETSLOT", "CLUSTER SHARDS", "CLUSTER SLAVES",
"CLUSTER SLOTS", "DEBUG", "FAILOVER", "LATENCY DOCTOR", "LATENCY GRAPH", "LATENCY HISTOGRAM", "LATENCY HISTORY",
"LATENCY LATEST", "LATENCY RESET", "MEMORY DOCTOR", "MEMORY MALLOC-STATS", "MEMORY PURGE", "MEMORY STATS",
"MEMORY USAGE", "MIGRATE", "MODULE LIST", "MODULE LOAD", "MODULE LOADEX", "MODULE UNLOAD", "MONITOR", "PFDEBUG",
"PFSELFTEST", "PSYNC", "READONLY", "READWRITE", "REPLCONF", "REPLICAOF", "RESTORE-ASKING", "ROLE", "SAVE",
"SENTINEL CKQUORUM", "SENTINEL CONFIG", "SENTINEL DEBUG", "SENTINEL FAILOVER", "SENTINEL FLUSHCONFIG",
"SENTINEL GET-MASTER-ADDR-BY-NAME", "SENTINEL INFO-CACHE", "SENTINEL IS-MASTER-DOWN-BY-ADDR", "SENTINEL MASTER",
"SENTINEL MASTERS", "SENTINEL MONITOR", "SENTINEL MYID", "SENTINEL PENDING-SCRIPTS", "SENTINEL REMOVE",
"SENTINEL REPLICAS", "SENTINEL RESET", "SENTINEL SENTINELS", "SENTINEL SET", "SENTINEL SIMULATE-FAILURE",
"SENTINEL SLAVES", "SHUTDOWN", "SLAVEOF", "SYNC", "UNWATCH", "WAIT", "WAITAOF", "WATCH", "XSETID"
]
[prometheus]
address = "0.0.0.0:9095"
export_uri = "/metrics"