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

Improve accuracy of ProducerPerformance target throughput

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.8.1.1
    • 0.9.0.0
    • clients, tools
    • None

    Description

      The code in ProducerPerformance that tries to match a target throughput is very inaccurate because it doesn't account for time spent sending messages. Since we have to get the current time to timestamp the messages, we can be much more accurate by computing the current rate over the entire run and only add to the sleep deficit if we're above the target rate.

      Attachments

        1. KAFKA-1807.patch
          2 kB
          Ewen Cheslack-Postava

        Activity

          People

            ewencp Ewen Cheslack-Postava
            ewencp Ewen Cheslack-Postava
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: