Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
2021-09
Description
Problem:
When user creates a timeseries with tag or attribute, the tag/attribute record will be persisted to TagLogFile.
Currently, every TagLogFile writing operation will be force flushed to disk, and too many disk I/O will cause poor performance.
A example case is that, one timeseries creation costs 48ms and around 8000 timeseries with tag creation costs 5-6min.
Solution:
Set the force flush mode of FileChannel to false and execute force flush every N writing operations. N is an customized interval value that user can config.