summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/query_knobs.idl
diff options
context:
space:
mode:
authorMickey. J Winters <mickey.winters@mongodb.com>2021-10-08 23:16:27 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-10-09 00:14:25 +0000
commit348a869208b3be1ca9e04f0f998c7ff7e8586873 (patch)
treed31002132a318c99689626447906a3d45cbf150e /src/mongo/db/query/query_knobs.idl
parent8b12a78b1fecbfa2ad92209abc468cca43892b7d (diff)
downloadmongo-348a869208b3be1ca9e04f0f998c7ff7e8586873.tar.gz
SERVER-59613 $range expression should error if it exceeds memory limit
Diffstat (limited to 'src/mongo/db/query/query_knobs.idl')
-rw-r--r--src/mongo/db/query/query_knobs.idl21
1 files changed, 16 insertions, 5 deletions
diff --git a/src/mongo/db/query/query_knobs.idl b/src/mongo/db/query/query_knobs.idl
index 23caa71f114..3de5c9d773e 100644
--- a/src/mongo/db/query/query_knobs.idl
+++ b/src/mongo/db/query/query_knobs.idl
@@ -142,7 +142,7 @@ server_parameters:
planCacheSize:
description: "The maximum amount of memory that the system will allocate for the plan cache.
- It takes value value in one of the two formats:
+ It takes value value in one of the two formats:
1. <number>% indicates a percentage of the physical memory available to the process. E.g.: 15%.
2. <number>(MB|GB), indicates the amount of memory in MB or GB. E.g.: 1.5GB, 100MB.
The defualt value is 5% which means 5% of the physical memory available to the process."
@@ -151,7 +151,7 @@ server_parameters:
cpp_vartype: synchronized_value<std::string>
default: "5%"
on_update: plan_cache_util::onPlanCacheSizeUpdate
-
+
#
# Parsing
#
@@ -405,6 +405,17 @@ server_parameters:
validator:
gt: 0
+ internalQueryMaxRangeBytes:
+ description: "Limits the vector of values pushed into a single array while generating $range
+ result."
+ set_at: [ startup, runtime ]
+ cpp_varname: "internalQueryMaxRangeBytes"
+ cpp_vartype: AtomicWord<int>
+ default:
+ expr: 100 * 1024 * 1024
+ validator:
+ gt: 0
+
internalQueryMaxAddToSetBytes:
description: "Limits the vector of values pushed into a single array while grouping with the
$addToSet accumulator."
@@ -546,9 +557,9 @@ server_parameters:
expr: 100 * 1024 * 1024
validator:
gt: 0
-
+
enableSearchMeta:
- description: "Exists for backwards compatibility in startup parameters,
+ description: "Exists for backwards compatibility in startup parameters,
enabling this was required on 4.4 to access SEARCH_META variables. Does not do anything."
set_at: [ startup, runtime ]
cpp_varname: "enableSearchMeta"
@@ -570,7 +581,7 @@ server_parameters:
default: 500000
validator:
gt: 0
-
+
internalDocumentSourceDensifyMaxMemoryBytes:
description: "Limits the number of bytes densification can use to store partition information."
set_at: [ startup, runtime ]