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

allow sizing RequestQueue in bytes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 0.10.0.0
    • None
    • core
    • None

    Description

      currently RequestChannel's requestQueue is sized in number of requests:

      RequestChannel.scala
      private val requestQueue = new ArrayBlockingQueue[RequestChannel.Request](queueSize)
      

      under the assumption that the end goal is a bound on server memory consumption, this requires the admin to know the avg request size.

      I would like to propose sizing the requestQueue not by number of requests, but by their accumulated size (Request.buffer.capacity). this would probably make configuring and sizing an instance easier.

      there would need to be a new configuration setting for this (queued.max.bytes?) - which could be either in addition to or instead of the current queued.max.requests setting

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              radai Radai Rosenblatt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: