-
Notifications
You must be signed in to change notification settings - Fork 1
/
baseConfig.js
60 lines (60 loc) · 1.7 KB
/
baseConfig.js
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
module.exports = {
kafka: {
consumer: {
noptions: {
"metadata.broker.list": "localhost:9092",
"group.id": "roach-base-group",
"api.version.request": true,
"socket.keepalive.enable": true,
//"security.protocol": "sasl_ssl",
//"ssl.key.location": "/tmp/kafka-clients-key/service-client.key.pem",
//"ssl.certificate.location": "/tmp/kafka-clients-certificate/service-client.cert.pem",
//"ssl.ca.location": "/tmp/ca-chain-certificate/ca-chain.cert.pem",
//"sasl.mechanisms": "PLAIN"
},
tconf: {
"auto.offset.reset": "earliest",
},
},
batchOptions: {
batchSize: 500,
commitEveryNBatch: 1,
concurrency: 1,
commitSync: false,
noBatchCommits: false,
manualBatching: true,
sortedManualBatch: true,
},
},
discovery: {
enabled: true,
scanMs: 48000,
topicBlacklist: [],
},
mongo: {
url: "mongodb://localhost:27017/roach_base",
options: {
keepAlive: 120,
autoIndex: true,
reconnectTries: Number.MAX_VALUE,
reconnectInterval: 500,
poolSize: 20,
},
},
http: {
port: 1919,
access: "*",
},
pubSubConfig: {
projectId: "base-google-cloud-project-id",
},
pubSubToKafkaTopicName: null,
gcf: {
metrics: {
pubSubMetricTopic: null,
counterLabels: [],
gaugeLabels: [],
prefix: "gcf_roach",
},
},
};