Towards caching time-series semantically on hybrid storage
摘要
Due to the increasing demand for extreme-scale time-series data workloads in data centers, it is required to build a high-performance semantic caching that leverages the semantics and results of historical queries to answer new queries. Existing caching solutions either ignore query semantics, offering suboptimal performance, or focus only on specific scenarios with limited functionality. In this paper, we summarize time-series query patterns and propose the definition of semantic time-series caching for the first time. Accordingly, we present STsCache, a semantic time-series caching system on hybrid memory–flash storage. We propose a series of optimizations, such as slab-based semantic data management, semantic index, semantic value-driven batch eviction, deduplication insertion, and lazy compaction. We evaluated STsCache via benchmarks and production environments. STsCache can increase throughput of popular time-series databases (InfluxDB, TimescaleDB) by 4.8-10.8