Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-79967

Replace `--router` with `--routerPort` to listen to dedicated router port

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding EMEA 2023-08-21, Sharding EMEA 2023-09-04
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      This ticket has two objectives:

      • Refactor usages of `internalPort` for `routerPort`.
      • Update how to enable the embedded router:
        • --routerPort option enables the embedded router and customize the port.

      In a more detailed way, the solution to implement will have the following syntax:

      • Enables embedded router with default port (27016) using command line.
        • mongod --shardsvr --routerPort --replSet rs0
      • Enables embedded router and configures custom port (13000) using command line.
        • mongod --shardsvr --routerPort 13000 --replSet rs0
      • Enables embedded router with default port using a configuration file.
        • Not possible.
      • Enables embedded router (it needs a port) using a configuration file.
        {
            "sharding": {
                "clusterRole": "shardsvr"
            },
            "replication": {
                "replSetName": "rs0"
            }
            "net": {
                "routerPort": 27016
            }
        }
        

            Assignee:
            pol.pinol@mongodb.com Pol Pinol
            Reporter:
            pol.pinol@mongodb.com Pol Pinol
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: