Skip to content

Commit 3a03fe1

Browse files
authored
RS: Added explanation of temporarily exceeding DB memory limits due to adaptive memory allocation (#1834)
* DOC-5275 RS: Added explanation of temporarily exceeding DB memory limits due to adaptive memory allocation * Fixed outdated relref * DOC-5275 Feedback updates for adaptive memory allocation section * DOC-5275 Added an example of a DB temporarily exceeding its memory limit
1 parent bd9b7bc commit 3a03fe1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

content/operate/rs/databases/memory-performance/memory-limit.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,18 @@ but tries to avoid stopping primary shards.
6767
We recommend that you have a [monitoring platform]({{< relref "/operate/rs/monitoring/" >}}) that alerts you before a system gets low on RAM.
6868
You must maintain sufficient free memory to make sure that you have a healthy Redis Enterprise installation.
6969

70+
## Adaptive memory allocation
71+
72+
In rare cases during high-velocity data ingestion, databases can temporarily reach up to 200% of their configured memory limit. This adaptive memory allocation strategy allows large amounts of data to be written to the database quickly without rejecting valid transactions.
73+
74+
For example, when pushing data at approximately 100 MB/sec into a 2 GB database:
75+
- A database with 2 shards could reach 199% of its configured memory limit.
76+
- A database with 4 shards could reach around 220% of its configured memory limit.
77+
78+
Databases should return to their configured memory limits after data is removed according to the [eviction policy]({{<relref "/operate/rs/databases/memory-performance/eviction-policy/">}}) and [time-to-live (TTL)]({{<relref "/develop/using-commands/keyspace#key-expiration">}}).
79+
80+
If you observe this behavior, consider [monitoring]({{< relref "/operate/rs/monitoring/" >}}) memory usage and controlling the traffic load on the application side.
81+
7082
## Memory metrics
7183

7284
The Cluster Manager UI provides metrics that can help you evaluate your memory use.

0 commit comments

Comments
 (0)