couch-elastic-stream
Version:
data streaming from couchdb to elastic via kafka.
53 lines (49 loc) • 1.48 kB
JavaScript
"use strict";
const Logger = require("log4bro");
const config = {
kafka: {
kafkaHost: "0.0.0.0:19092,0.0.0.0:29092,0.0.0.0:39092",
logger: new Logger(),
groupId: "kc-sequelize-test",
clientName: "kc-sequelize-test-name",
workerPerPartition: 1,
options: {
sessionTimeout: 8000,
protocol: ["roundrobin"],
fromOffset: "earliest", //latest
fetchMaxBytes: 1024 * 100,
fetchMinBytes: 1,
fetchMaxWaitMs: 10,
heartbeatInterval: 250,
retryMinTimeout: 250,
requireAcks: 0,
autocommit: true
//ackTimeoutMs: 100,
//partitionerType: 3
}
},
topic: "kf-connector",
partitions: 1,
maxTasks: 1,
pollInterval: 250,
produceKeyed: true,
produceCompressionType: 0,
connector: {
host : "localhost",
port : 5985,
protocol : 'http',
auth : {
user : 'dltlabs',
pass : 'dltlabs'
},
database : 'test',
maxPollCount: 1,
currentOffset: "4-g1AAAAFReJzLYWBg4MhgTmHgzcvPy09JdcjLz8gvLskBCjMlMiTJ____PyuRAYeCJAUgmWQPUpPBnMiSC-SxG1qmmSSmWqKrx2WCA8iEePy2JIDU1ONVk8cCJBkagBRQ2XxC6hZA1O0npO4ARN19QuoeQNSB3JcFAKA2a6s"
},
http: {
port: 3145,
middlewares: []
},
enableMetrics: false
};
module.exports = config;