Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-7282 Credit-based Network Flow Control
  3. FLINK-9142

Lower the minimum number of buffers for incoming channels to 1

    XMLWordPrintableJSON

Details

    Description

      Even if we make the floating buffers optional, we still require taskmanager.network.memory.buffers-per-channel number of (exclusive) buffers per incoming channel with credit-based flow control while without, the minimum was 1 and only the maximum number of buffers was influenced by this parameter.

      taskmanager.network.memory.buffers-per-channel is set to 2 by default with the argumentation that this way we will have one buffer available for netty to process while a worker thread is processing/deserializing the other buffer. While this seems reasonable, it does increase our minimum requirements. Instead, we could probably live with 1 exclusive buffer and up to gate.getNumberOfInputChannels() * (networkBuffersPerChannel - 1) + extraNetworkBuffersPerGate floating buffers. That way we will have the same memory footprint as before with only slightly changed behaviour.

      Attachments

        Issue Links

          Activity

            People

              kisimple boshu Zheng
              nkruber Nico Kruber
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m