[ https://issues.apache.org/jira/browse/LOG4J2-1733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15749275#comment-15749275 ]
ASF GitHub Bot commented on LOG4J2-1733: ---------------------------------------- GitHub user thedutchy opened a pull request: https://github.com/apache/logging-log4j2/pull/51 [LOG4J2-1733] Add syncSend configuration property to Kafka Appender … to support asynchronous sends This change is backwards compatible, as the property is set to "true" by default. The implementation mirrors the implementation of the KafkaLog4jAppender in the Apache Kafka project (which is however based on log4j instead of log4j2). The asynchronous send is relevant, as it significantly improves throughput to the Kafka broker. On my machine, setting the property to false, lead to a throughput improvement of approximately 50x. You can merge this pull request into a Git repository by running: $ git pull https://github.com/thedutchy/logging-log4j2 LOG4J2-1733 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/logging-log4j2/pull/51.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #51 ---- commit f0e6cec67c3dc06f743958342546408e79284b7a Author: Vincent Tieleman <vincent.tiele...@keyconcept.at> Date: 2016-12-14T19:35:13Z [LOG4J2-1733] Add syncSend configuration property to Kafka Appender to support asynchronous sends ---- > Introduce SyncSend property for KafkaAppender (as in KafkaLog4jAppender) > ------------------------------------------------------------------------ > > Key: LOG4J2-1733 > URL: https://issues.apache.org/jira/browse/LOG4J2-1733 > Project: Log4j 2 > Issue Type: Improvement > Components: Appenders > Affects Versions: 2.5 > Environment: Kafka 0.10.1.0 > Reporter: Vincent Tieleman > Assignee: Mikael Ståldal > > The KafkaLog4jAppender (shipped with Kafka and usable with log4j), has a > syncsend property that improves performance significantly by not blocking a > send to Kafka. I've tried many other configuration settings and setups, but > find that none of these approaches improved the logging performance to Kafka > as significantly as setting the syncsend property to false. > Unfortunately, the syncsend property is not supported by the KafkaAppender > shipped with log4j2 and the KafkaLog4jAppender only supports log4j, so I am > stuck with forking the code and making the change myself. > Could you please introduce this property in the KafkaAppender in log4j2? -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-dev-h...@logging.apache.org