Sync & Manipulate data from MySQL/MongoDB to Elasticsearch/MySQL/Http/Kafka Endpoint
bind_ip
to allow listens for connections from applications on configured addresses.mongod --replSet myapp
docker run -d --name mongodb -p 27017:27017 -v /root/mongodb-container/db:/data/db mongo:3.2 mongod --replSet chat
rs.initiate()
Full and usable sample config can be found under
git clone https://github.com/zzt93/syncer
cd syncer/ && mvn package
# /path/to/config/: producer.yml, consumer.yml, password-file
# use `-XX:+UseParallelOldGC` if you have less memory and lower input pressure
# use `-XX:+UseG1GC` if you have at least 4g memory and event input rate larger than 2*10^4/s
java -server -XX:+UseG1GC -jar ./syncer-core/target/syncer-core-1.0-SNAPSHOT.jar [--debug] [--port=40000] [--config=/absolute/path/to/syncerConfig.yml] --producerConfig=/absolute/path/to/producer.yml --consumerConfig=/absolute/path/to/consumer1.yml,/absolute/path/to/consumer2.yml
test/config/
, like test/config/simplest
If you have any problems with how to use Syncer
or bugs of it, write an issue.
I will handle it as soon as I can.
batch.size
to smaller number or config kafka
to receive large messageImplementation detail can be found in doc