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

Investigate changes in SERVER-45456: Allow JavaScript on mongos

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.3.4
    • manual, Server
    • None

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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                2 years, 18 weeks, 6 days ago