Deferred Flushing for Out-of-Order Arrivals in Apache IoTDB
Xiaojian Zhang, Zhiheng Liu, Shaoxu Song, Xiangdong Huang, Chen Wang, Jianmin Wang
Abstract
Delays are inevitably associated with network transmission, leading to out-of-order time series arrivals. To store the data in time order, time series databases (TSDBs) choose to merge them via compaction in an LSM-tree. It incurs huge write amplification cost. We notice that the out-of-order arrivals are often delayed further for only a short while. By deferring a bit the flush of the latest data to disk, most out-of-order data arrivals can be sorted in memory. The problem is thus how to determine the size of data in memory deferred flushing, in order to reduce the disordered data for compaction. In this paper, we analyze the properties of delay distributions and determine a proper number of the latest data that will be deferred in flushing for lower write amplification. The proposal has been deployed in time series database Apache IoTDB. Extensive experiments on real and synthetic workloads demonstrate that the proposed method can reduce write amplification from 2.0 to almost 1.0, i.e., eliminating most disordered data. While it may slightly incur some cost of maintaining the deferred data points in writing, the compaction as well as query time costs are significantly reduced.
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get 06fc17b7-3772-4b1d-9111-a769fb9fb73eRelated papers
- On Reducing Space Amplification with Multi-Column Compaction in Apache IoTDBChenguang Fang, Zijie Chen, Shaoxu Song, Xiangdong Huang et al.VLDB 2024 · 1 citation
- Sorting Compressed Time SeriesZhiheng Liu, Xingyu Liu, Shaoxu Song, Jianmin WangICDE 2026
- Distance-based Outlier Query Optimization in Apache IoTDBYunxiang Su, Shaoxu Song, Xiangdong Huang, Chen Wang et al.VLDB 2024 · 2 citations
- Reducing Write Amplification of LSM-Tree with Block-Grained CompactionXiaoliang Wang, Peiquan Jin, Bei Hua, Hai Long et al.ICDE 2022 · 26 citations
- In-Database Time Series ClusteringYunxiang Su, Kenny Ye Liang, Shaoxu SongSIGMOD 2025 · 3 citations
