CurveBS: Optimize chunk asynchronous flushing logic #1887
Closed
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:
curve/src/chunkserver/copyset_node.cpp
Line 987 in 7932de7
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 (更多上下文/截图)