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

Initialise Async Sink maximum number of in flight messages to low number for rate limiting strategy

    XMLWordPrintableJSON

Details

    Description

      Background

      In the AsyncSinkWriter, we implement a rate limiting strategy.

      The initial value for the maximum number of in flight messages is set extremely high (maxBatchSize * maxInFlightRequests).

      However, in accordance with the AIMD strategy, the TCP implementation for congestion control has found a small value to start with [is better](https://en.wikipedia.org/wiki/TCP_congestion_control#Slow_start).

      Suggestion

      A better default might be:

      • maxBatchSize
      • maxBatchSize / parallelism

      Attachments

        Issue Links

          Activity

            People

              liangtl Hong Liang Teoh
              CrynetLogistics Zichen Liu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: