-
Notifications
You must be signed in to change notification settings - Fork 0
/
cfg.yaml.example
51 lines (50 loc) · 1.37 KB
/
cfg.yaml.example
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
dumper:
keyPatterns: []
notKeyPatterns: []
tr:
keyPatterns: []
notKeyPatterns: []
analysis:
# key will be split by / and itered to match thoes regex rules
# if matched, this field re's capture group will be replaced
# to `replacedTo` str
# DO NOT USE " to quote string if you have escape symbol in
# your regex
fieldsREs:
- "(^[0-9\.]+$)" # all numbers
- "(^[a-zA-Z0-9]{32}$)" # uuid
- "(^[\w-\.]+@[\w-]+\.+[\w-]{2,4}$)" # email
- "(^0x[a-fA-F0-9]+$)" # hex string
- "(.+\.(jpg|jpeg|JPG|png|webp|mp4|mp3)$)" # image post fix
- "(.*[A-Z].*)" # UPPER CASE
- "([^a-zA-Z0-9])" # non ascii key
# key pattern for deduplicate
# capture group will be replaced
# you should escape re char in you pattern
keyREs:
- "xxx/xxx/xxx/xxx"
# seprator matched this will be replaced to /
sepRE: ":|\||\-|_"
# field or whole key matched this will be normalized to this str
replacedTo: ".+"
parseDataFile:
keyPatterns: []
notKeyPatterns: []
prefixes: []
notPrefixes: []
cassandraCfg:
default_key_space: doubandb
default_table: kvstore
enable_read: false
enable_write: true
hosts:
- 127.0.0.1:9042
timeout_ms: 1000
connect_timeout_ms: 3000
write_timeout_ms: 1000
retry_num: 3
reconnect_interval_sec: 180
max_conn_for_getm: 10
num_conns: 10
username: "CHANGEME"
password: "CHANGEME"