-
Notifications
You must be signed in to change notification settings - Fork 15
/
esmeralda.toml
116 lines (95 loc) · 2.3 KB
/
esmeralda.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
[application]
# Application Environment
# enum: development, testing, staging, production
env = "production"
# Enable Application Debug
# boolean: true/false
debug = false
[log]
# Log Level
# enum: debug, info, warn, error, fatal, panic
level = "debug"
# Log path
# string
path = "esmeralda.log"
[web]
# http address
# string: 0.0.0.0(default)
address = "0.0.0.0"
# http Port
# int: 10101(default)
port = 10101
# web path prefix
# string
prefix = "/"
# schema
# enum: http
schema = "http"
[mysql]
# Data Source Name
# @see https://github.com/go-sql-driver/mysql#dsn-data-source-name
# string:
# admin:passwd@tcp(10.10.10.1:3306)/dbname?charset=utf8mb4&collation=utf8mb4_unicode_ci
# admin:passwd@unix(/tmp/mysql.sock)/dbname?charset=utf8mb4&collation=utf8mb4_unicode_ci
dsn = "username:password@tcp(10.10.10.1:3306)/name?charset=utf8mb4&collation=utf8mb4_unicode_ci"
[kafka]
# Kafka Topics
# string[]: support multiple topics
topics = ["chuanyun"]
[kafka.consumer]
# Kafka Consumer Group ID
# string: kafka consumer group id.
group = "group name"
# Kafka Consumer Message Buffer Size
# int: 256(default)
buffer = 10
# Kafka Consumer Offset
# enum: oldest, newest
offset = "oldest"
[kafka.zookeeper]
# Kafka Zookeeper Servers
# string[]: ["192.168.0.3:2181", "192.168.0.4:2181"]
servers = ["192.168.0.3:2181", "192.168.0.4:2181"]
# Kafka Zookeeper Borker Path
# string: "/"(default)
root = "/"
[module]
# Enable Module Feature
# boolean: true/false
enable = true
# Module Divide Mode
# enum: normal, simple, complex, custom
mode = "normal"
[module.threshold]
# Module API Number Threshold
# int.
api = 1
# Module Server Number Threshold
# int.
server = 1
# Module Tarot Interval
# int: unit(hours)
interval = 24
[gateway]
# Enable API Gateway Translate Feature
# boolean: true/false
enable = false
# Gateway translate Service URL
# string
url = "http://localhost/api/api/search"
[elasticsearch]
# Elasticsearch Hosts
# string[]
hosts = ["http://10.209.26.199:11520", "http://10.209.26.172:11520", "http://10.209.26.198:11520", "http://10.209.26.171:11520"]
# Elasticsearch Client Sniff
# boolean: true/false
sniff = true
# Elasticsearch BasicAuth Username
# string
username = "username"
# Elasticsearch BasicAuth Password
# string
password = "password"
# Elasticsearch Client Bulk Size
# int: 2000(default), 0 < bulk < 5000
bulk = 2000