You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "vinoyang (JIRA)" <ji...@apache.org> on 2019/05/13 08:19:00 UTC

[jira] [Commented] (FLINK-12476) [State TTL] Consider setting a default background cleanup strategy in StateTtlConfig

    [ https://issues.apache.org/jira/browse/FLINK-12476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16838358#comment-16838358 ] 

vinoyang commented on FLINK-12476:
----------------------------------

[~azagrebin] Will start this issue.

> [State TTL] Consider setting a default background cleanup strategy in StateTtlConfig
> ------------------------------------------------------------------------------------
>
>                 Key: FLINK-12476
>                 URL: https://issues.apache.org/jira/browse/FLINK-12476
>             Project: Flink
>          Issue Type: Improvement
>          Components: Runtime / State Backends
>    Affects Versions: 1.8.0
>            Reporter: Andrey Zagrebin
>            Assignee: vinoyang
>            Priority: Major
>             Fix For: 1.8.0, 1.9.0
>
>
> At the moment we have two efficient background cleanup strategies: incremental for heap and compaction filter for RocksDB. *StateTtlConfig* has 2 methods to activate them: *cleanupIncrementally* and *cleanupInRocksdbCompactFilter*. Each is activated only for certain backend type and inactive for other. They have different tuning parameters.
> The idea is to add method *cleanupInBackground* which would activate both of them with default parameters. User does not need to think then about details or used backend if not needed. Depending on actually used backend, the corresponding cleanup will kick in. Sample implementation:
>  
> {code:java}
> public Builder cleanupInBackground() {
>     return cleanupIncrementally(10, false).cleanupInRocksdbCompactFilter(1000L);
> }
> {code}
> We can also deprecated the parameterless *cleanupInRocksdbCompactFilter()* in favour of this new method.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)