Oliverwqcwrw commented on code in PR #6216:
URL: https://github.com/apache/rocketmq/pull/6216#discussion_r1122667994
##########
example/src/main/java/org/apache/rocketmq/example/benchmark/BatchProducer.java:
##########
@@ -93,6 +96,19 @@ public static void main(String[] args) throws
MQClientException {
}
final DefaultMQProducer producer = initInstance(namesrv,
msgTraceEnable, rpcHook);
+
+ if (enableCompress) {
+ String compressType = commandLine.hasOption("ct") ?
commandLine.getOptionValue("ct").trim() : "ZLIB";
+ int compressLevel = commandLine.hasOption("cl") ?
Integer.parseInt(commandLine.getOptionValue("cl")) : 5;
+ int compressOverHowMuch = commandLine.hasOption("ch") ?
Integer.parseInt(commandLine.getOptionValue("ch")) : 4;
Review Comment:
How about changing the default value of compressOverHowMuch to 4096?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]