You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/develop/ai/search-and-query/administration/configuration.md
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -541,6 +541,24 @@ Valid range: `[0 .. 8192]`
541
541
542
542
Default: `0`
543
543
544
+
### search-on-oom
545
+
546
+
Specifies the response policy for queries when the server's current memory usage exceeds the configured [maxmemory](https://redis.io/docs/latest/develop/reference/eviction/#maxmem) limit.
547
+
548
+
*`IGNORE`: Execute the query regardless of current memory usage.
549
+
*`RETURN`: In cluster mode, the query returns partial results from shards that did not exceed the memory limit. Shards that exceed the limit will not contribute results.
550
+
*`FAIL`: Will return an error if memory usage exceeds memory limit.
551
+
552
+
Type: string
553
+
554
+
Valid values: `IGNORE`, `RETURN`, `FAIL`
555
+
556
+
Default: `IGNORE`
557
+
558
+
{{% alert title="Notes" color="info" %}}
559
+
To prevent potential out-of-memory conditions, it is recommended to set this parameter to FAIL or RETURN rather than IGNORE.
560
+
{{% /alert %}}
561
+
544
562
## Set configuration parameters at module load-time (deprecated)
545
563
546
564
These methods are deprecated beginning with Redis 8.
@@ -584,4 +602,4 @@ FT.CONFIG GET OPT1
584
602
FT.CONFIG GET *
585
603
```
586
604
587
-
Values set using [`FT.CONFIG SET`]({{< relref "/commands/ft.config-set/" >}}) are not persisted after server restart.
605
+
Values set using [`FT.CONFIG SET`]({{< relref "/commands/ft.config-set/" >}}) are not persisted after server restart.
0 commit comments