Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-13387

Investigate changes in SERVER-45456: Allow JavaScript on mongos

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

            Assignee:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Reporter:
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              4 years, 2 weeks ago