This topic describes the elastic disk cache feature of RisingWave.
[storage]
section with settings for the metadata cache (meta_file_cache
) and data block cache (data_file_cache
).
dir
meta_file_cache
) and the data block cache (data_file_cache
). Use dedicated directories on your chosen cache volume.
capacity_mb
meta
and data
).
meta_file_cache
and 90% to data_file_cache
, reflecting typical access patterns.capacity_mb
of both caches to utilize around 90% of the total volume capacity dedicated to caching, leaving some headroom.insert_rate_limit_mb
meta_file_cache
and data_file_cache
). This prevents caching activity from overwhelming the disk and impacting foreground operations.
insert_rate_limit_mb
for meta_file_cache
and data_file_cache
(e.g., 10% for meta, 90% for data).data_refill_levels
data_file_cache
. Typically, this includes all levels from 0 up to the configured max_level
(default is 6).
recover_mode
meta_file_cache
and data_file_cache
.
None
(Default): The cache starts empty after a node restart (cold start).Quiet
: Attempts to reload existing cache content from disk after a restart. This provides a warm cache, potentially speeding up initial query performance after a restart, but may slightly increase the node’s recovery time (typically by a few seconds).