diff options
author | Ted Tuckman <ted.tuckman@mongodb.com> | 2021-03-16 21:28:18 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-03-16 22:41:07 +0000 |
commit | 99d28dd184ada37720d0dae1f3d8c35fec85bd4b (patch) | |
tree | e58c36eacb254ea0978a77a371ae41fb19ecb58b /src/mongo/db/query/query_knobs.idl | |
parent | e649936b7740319f94ef5320167c78543e40c257 (diff) | |
download | mongo-99d28dd184ada37720d0dae1f3d8c35fec85bd4b.tar.gz |
SERVER-54142 Add memory tracking to DocumentSourceSetWindowFields
Diffstat (limited to 'src/mongo/db/query/query_knobs.idl')
-rw-r--r-- | src/mongo/db/query/query_knobs.idl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mongo/db/query/query_knobs.idl b/src/mongo/db/query/query_knobs.idl index 8d3527f035a..4f606a45fa1 100644 --- a/src/mongo/db/query/query_knobs.idl +++ b/src/mongo/db/query/query_knobs.idl @@ -301,6 +301,16 @@ server_parameters: expr: 100 * 1024 * 1024 validator: gt: 0 + + internalDocumentSourceSetWindowFieldsMaxMemoryBytes: + description: "Maximum size of the data that the $setWindowFields aggregation stage will cache in-memory before throwing an error." + set_at: [ startup, runtime ] + cpp_varname: "internalDocumentSourceSetWindowFieldsMaxMemoryBytes" + cpp_vartype: AtomicWord<long long> + default: + expr: 100 * 1024 * 1024 + validator: + gt: 0 internalInsertMaxBatchSize: description: "Maximum number of documents that we will insert in a single batch." |