Skip to content

Commit 67f35ef

Browse files
vsharma6855v.sharma
andauthored
Add frequent snapshots and active expire effort properties to Valkey configuration (#1057)
Co-authored-by: v.sharma <v.sharma@digitalocean.com>
1 parent b768fe5 commit 67f35ef

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

specification/resources/databases/models/advanced_config/valkey_advanced_config.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,22 @@ properties:
100100
backward compatibility. This option doesn't affect Valkey configuration
101101
acl-pubsub-default.
102102
example: allchannels
103+
frequent_snapshots:
104+
type: boolean
105+
default: true
106+
description: >
107+
Frequent RDB snapshots
108+
109+
When enabled, Valkey will create frequent local RDB snapshots. When disabled, Valkey will only take RDB snapshots when a backup is created, based on the backup schedule. This setting is ignored when valkey_persistence is set to off.
110+
example: true
111+
112+
valkey_active_expire_effort:
113+
type: integer
114+
minimum: 1
115+
maximum: 10
116+
default: 1
117+
description: >
118+
Active expire effort
119+
120+
Valkey reclaims expired keys both when accessed and in the background. The background process scans for expired keys to free memory. Increasing the active-expire-effort setting (default 1, max 10) uses more CPU to reclaim expired keys faster, reducing memory usage but potentially increasing latency.
121+
example: 1

0 commit comments

Comments
 (0)