You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Flink Jira Bot (Jira)" <ji...@apache.org> on 2022/02/04 22:37:01 UTC

[jira] [Updated] (FLINK-19008) Flink Job runs slow after restore + downscale from an incremental checkpoint (rocksdb)

     [ https://issues.apache.org/jira/browse/FLINK-19008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Flink Jira Bot updated FLINK-19008:
-----------------------------------
    Labels: auto-deprioritized-major auto-deprioritized-minor perfomance stale-assigned usability  (was: auto-deprioritized-major auto-deprioritized-minor perfomance usability)

I am the [Flink Jira Bot|https://github.com/apache/flink-jira-bot/] and I help the community manage its development. I see this issue is assigned but has not received an update in 30 days, so it has been labeled "stale-assigned".
If you are still working on the issue, please remove the label and add a comment updating the community on your progress.  If this issue is waiting on feedback, please consider this a reminder to the committer/reviewer. Flink is a very active project, and so we appreciate your patience.
If you are no longer working on the issue, please unassign yourself so someone else may work on it.


> Flink Job runs slow after restore + downscale from an incremental checkpoint (rocksdb)
> --------------------------------------------------------------------------------------
>
>                 Key: FLINK-19008
>                 URL: https://issues.apache.org/jira/browse/FLINK-19008
>             Project: Flink
>          Issue Type: Improvement
>          Components: Runtime / State Backends
>            Reporter: Jun Qin
>            Assignee: Yuan Mei
>            Priority: Not a Priority
>              Labels: auto-deprioritized-major, auto-deprioritized-minor, perfomance, stale-assigned, usability
>
> A customer runs a Flink job with RocksDB state backend. Checkpoints are retained and done incrementally. The state size is several TB. When they restore + downscale from a retained checkpoint, although the downloading of checkpoint files took ~20min, the job throughput returns to the expected level only after 3 hours.  
> I do not have RocksDB logs. The suspicion for those 3 hours is due to heavy RocksDB compaction and/or flush. As it was observed that checkpoint could not finish faster enough due to long {{checkpoint duration (sync)}}. How can we make this restoring phase shorter? 
> For compaction, I think it is worth to check the improvement of:
> {code:c}
> CompactionPri compaction_pri = kMinOverlappingRatio;{code}
> which has been set to default in RocksDB 6.x:
> {code:c}
> // In Level-based compaction, it Determines which file from a level to be
> // picked to merge to the next level. We suggest people try
> // kMinOverlappingRatio first when you tune your database.
> enum CompactionPri : char {
>   // Slightly prioritize larger files by size compensated by #deletes
>   kByCompensatedSize = 0x0,
>   // First compact files whose data's latest update time is oldest.
>   // Try this if you only update some hot keys in small ranges.
>   kOldestLargestSeqFirst = 0x1,
>   // First compact files whose range hasn't been compacted to the next level
>   // for the longest. If your updates are random across the key space,
>   // write amplification is slightly better with this option.
>   kOldestSmallestSeqFirst = 0x2,
>   // First compact files whose ratio between overlapping size in next level
>   // and its size is the smallest. It in many cases can optimize write
>   // amplification.
>   kMinOverlappingRatio = 0x3,
> };
> ...
> // Default: kMinOverlappingRatio  
> CompactionPri compaction_pri = kMinOverlappingRatio;{code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)