加上 if (logger.isDebugEnabled()) 防止message.toString每次都会被运行,message过大会卡cpu

This commit is contained in:
mcy
2018-08-15 14:26:55 +08:00
parent feb2af060f
commit 4776552605
2 changed files with 6 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ retries: 0
batchSize: 16384
lingerMs: 1
bufferMemory: 33554432
# canal的批次大小,单位 k
# canal的批次大小,单位 k,量大建议改为1M
canalBatchSize: 50
filterTransactionEntry: true
@@ -13,7 +13,7 @@ canalDestinations:
partition:
# 一个destination可以对应多个topic
# topics:
# - topics: example
# - topic: example
# partition: