Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-1115

producer performance affected by trace/debug calls

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Incomplete
    • 0.8.0
    • None
    • producer
    • None

    Description

      After investigating high CPU usage on some producers in production, we found out that a lot of time was passed in string construction for logging of DEBUG and TRACE level.

      This patch removes most of the logging calls, on our systems it cuts CPU usage down to half of what it used to be.

      Note that this is a significant boost in performance for environment where there are thousands of msg/s.

      Attachments

        1. producer-performance-fix.patch
          12 kB
          Francois Saint-Jacques

        Activity

          People

            fsaintjacques Francois Saint-Jacques
            fsaintjacques Francois Saint-Jacques
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: