Skip to content

CurveBS: Optimize chunk asynchronous flushing logic #1887

Closed
@ilixiaocui

Description

Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)
In this pr1131,We optimized the flushing logic of chunks in curvebs(related issue 1033)

There is currently a brush logic based on time intervals:

void CopysetNode::HandleSyncTimerOut() {

This method is not flexible enough. If there are too many writes during the flushing cycle, it will cause io jitter.

Describe the solution you'd like (描述你期望的解决方法)

We hope that the disk can be refreshed based on the amount of dirty data and the time interval.

Describe alternatives you've considered (描述你想到的折衷方案)

Additional context/screenshots (更多上下文/截图)

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions