Uploaded image for project: 'Samza'
  1. Samza
  2. SAMZA-113

Improve log performance

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 0.6.0
    • 0.8.0
    • container
    • None

    Description

      After the changes in SAMZA-111, the Samza's container's slowest operations seem to be log-related. Most of our CPU time is spent in grizzled's SL4J logging. Take a look at SAMZA-111.0.png for a screenshot of the CPU sample, and you can see it's nearly all trace and debug statements that are taking the time.

      Also, in SAMZA-111.0.png, the window (15.9%), commit (13%), and send (10.4%) are all logging as well. I just couldn't fit it in the screenshot. This combines for 39.3% of the total CPU time in the main process loop. On top of this, window, commit, and send are entirely no-ops.

      We should improve the log performance so that it's not having such a bad impact on throughput. After this ticket is resolved, we should open a new ticket with the next slowest item in Samza container, and make it faster.

      Attachments

        Activity

          People

            rekhajoshm Rekha Joshi
            criccomini Chris Riccomini
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: