[ https://issues.apache.org/jira/browse/FLINK-32806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17776557#comment-17776557 ]
Matthias Pohl commented on FLINK-32806: --------------------------------------- [~samrat007] thanks for your ideas. You raise some reasonable points. {quote} Could you please clarify what the default time-to-live (TTL) for the entries will be? Additionally, are we considering exposing any configuration options for TTL, or is it best to avoid adding more configuration complexity? {quote} I think we should keep the default time-to-live at infinity/max to align with the current behavior. Adding a configuration parameter to make this configurable sounds reasonable in that case, especially when considering optimizations for OLAP usecases. {quote} Are we exploring any other conditions for removing an entry, apart from time-based removal? For example, should we also consider removing entries when the map size exceeds a certain threshold to prevent excessive memory consumption? {quote} The memory footprint of the entry is still quite small. I'm wondering whether we should keep this in the backlog for the sake of not letting the configuration grow even more. WDYT? > EmbeddedJobResultStore keeps the non-dirty job entries forever > -------------------------------------------------------------- > > Key: FLINK-32806 > URL: https://issues.apache.org/jira/browse/FLINK-32806 > Project: Flink > Issue Type: Improvement > Components: Runtime / Coordination > Affects Versions: 1.18.0, 1.17.1, 1.19.0 > Reporter: Matthias Pohl > Assignee: hk__lrzy > Priority: Major > Labels: pull-request-available, stale-assigned, starter > > The {{EmbeddedJobResultStore}} keeps the entries of cleaned-up jobs in-memory > forever. We might want to add a TTL to have those entries be removed after a > certain amount of time to allow maintaining the memory footprint of the > {{EmbeddedJobResultStore}}. -- This message was sent by Atlassian Jira (v8.20.10#820010)