[DOCS-13387] Investigate changes in SERVER-45456: Allow JavaScript on mongos Created: 04/Feb/20  Updated: 13/Nov/23  Due: 03/Apr/20  Resolved: 08/Apr/20

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 4.3.4, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Kay Kim (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-45456 Allow JavaScript on mongos Closed
Duplicate
Related
related to DOCS-13590 Update mapReduce advice now that we h... Closed
is related to DOCS-13493 Investigate changes in SERVER-45453: ... Closed
Participants:
Days since reply: 3 years, 44 weeks ago
Epic Link: DOCS: 4.4 Server Release Work

 Description   

Description

Downstream Change Summary

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.)



 Comments   
Comment by Githook User [ 08/Apr/20 ]

Author:

{'name': 'Kay Kim', 'email': 'kay.kim@10gen.com', 'username': 'kay-kim'}

Message: DOCS-13387: 4.4 mongos and JavaScript execution
Branch: master
https://github.com/mongodb/docs/commit/a0ad86afc923eca42ebcf09017c99c58b11a54cc

Generated at Thu Feb 08 08:07:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.