-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Labels:None
Description
Flagging the Cloud and Drivers teams as this ticket will allow users to run JavaScript on mongos.
JavaScript can be disabled if needed on mongos via the same manner as is currently done on mongod:
- Via --noscripting command line argument
- Setting 'security.javascriptEnabled' to false in the mongos config file
Description of Linked Ticket
When the mergerPart of an aggregation contains Javascript, we need to pick a shard to do the merge, because mongos doesn't support Javascript today. On allowing Javascript execution on mongos, we can instead keep the merge local. This will be useful for reducing latency (one fewer hop), and for reducing the load on the shards (by moving the work to mongos).
Scope of changes
Impact to Other Docs
MVP (Work and Date)
Resources (Scope or Design Docs, Invision, etc.)
- documents
-
SERVER-45456 Allow JavaScript on mongos
- Closed
- is related to
-
DOCS-13493 Investigate changes in SERVER-45453: Change name and usage of $_internalJs to $function
- Closed
- related to
-
DOCS-13590 Update mapReduce advice now that we have UDFs
- Closed