Skip to content

Commit 327f2dc

Browse files
authored
feat(cubestore): Eviction - truncate expired keys (#7081)
1 parent 9f90795 commit 327f2dc

File tree

4 files changed

+189
-116
lines changed

4 files changed

+189
-116
lines changed

rust/cubestore/cubestore/src/app_metrics.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ pub static REMOTE_FS_FILES_SIZE_TO_REMOVE: Gauge =
7272
pub static CACHESTORE_TTL_PERSIST: Counter = metrics::counter("cs.cachestore.ttl.persist");
7373
pub static CACHESTORE_TTL_BUFFER: Gauge = metrics::gauge("cs.cachestore.ttl.buffer");
7474
// Cache Store Eviction
75+
pub static CACHESTORE_EVICTION_REMOVED_EXPIRED_KEYS: Counter =
76+
metrics::counter("cs.cachestore.eviction.expired.keys");
77+
pub static CACHESTORE_EVICTION_REMOVED_EXPIRED_SIZE: Counter =
78+
metrics::counter("cs.cachestore.eviction.expired.size");
7579
pub static CACHESTORE_EVICTION_REMOVED_KEYS: Counter =
7680
metrics::counter("cs.cachestore.eviction.removed.keys");
7781
pub static CACHESTORE_EVICTION_REMOVED_SIZE: Counter =

0 commit comments

Comments
 (0)