Ron Cohen
08/23/2022, 2:42 PMRon Cohen
08/23/2022, 2:44 PMKen Krugler
08/23/2022, 6:42 PMWe will introduce a sorting step (with potential spilling, reusing the UnilateralSortMerger implementation) before every keyed operator for sorting/grouping inputs by their keys. This will allow us to process records in per-key groups, which will enable us to use a simplified implementation of a StateBackend that is not organized in key groups and only ever keeps values for a single key.
Ron Cohen
08/23/2022, 8:53 PMDawid Wysakowicz
08/24/2022, 11:06 AMBATCH mode Flink will try to spill data if necessary while sorting. It will use the direct memory budget for in-memory operations and will start spilling to disk if it reaches a memory threshold as configured by taskmanager.runtime.sort-spilling-threshold. You can also control the maximum number of files it may try to create.
Lastly it uses the temporary directories as configured in io.tmp.dirsRon Cohen
08/24/2022, 11:42 AMRon Cohen
08/25/2022, 1:39 PMkeyBy (Datastream API), will Flink still do a global sort of all the data per key across all my partitions? or will the data only get sorted within the individual partitions?Dawid Wysakowicz
08/25/2022, 2:24 PMRon Cohen
08/25/2022, 2:25 PM