-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstore-providers.js
44 lines (43 loc) · 1.11 KB
/
store-providers.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
// configurations
const { default: config } = require("../dist/config/config");
module.exports = {
general: {
heartbeat: 2000,
pass_binary_messages: true
},
spouts: [
{
name: "kafka.providers",
type: "inproc",
working_dir: "./components/spouts",
cmd: "kafka_spout.js",
init: {
kafka: {
host: config.kafka.host,
topic: "STORE_PROVIDER",
clientId: "STORE_PROVIDER",
groupId: `${config.kafka.groupId}_STORE_PROVIDER`,
high_water: 100,
low_water: 10
}
}
}
],
bolts: [
{
name: "store.pg.providers",
type: "inproc",
working_dir: "./components/bolts",
cmd: "pg_store_providers_bolt.js",
inputs: [
{
source: "kafka.providers"
}
],
init: {
pg: config.pg
}
}
],
variables: {}
};