Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-9692

Adapt maxRecords parameter in the getRecords call to optimize bytes read from Kinesis

    XMLWordPrintableJSON

    Details

      Description

      The Kinesis connector currently has a constant value set for maxRecords that it can fetch from a single Kinesis getRecords call. However, in most realtime scenarios, the average size of the Kinesis record (in bytes) changes depending on the situation i.e. you could be in a transient scenario where you are reading large sized records and would hence like to fetch fewer records in each getRecords call (so as to not exceed the 2 Mb/sec per shard limit on the getRecords call). 

      The idea here is to adapt the Kinesis connector to identify an average batch size prior to making the getRecords call, so that the maxRecords parameter can be appropriately tuned before making the call. 

      This feature can be behind a ConsumerConfigConstants flag that defaults to false. 

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                glaksh100 Lakshmi Rao
                Reporter:
                glaksh100 Lakshmi Rao
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: