[SERVER-79967] Replace `--router` with `--routerPort` to listen to dedicated router port Created: 14/Aug/23  Updated: 29/Oct/23  Resolved: 28/Aug/23

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 7.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Pol Pinol Assignee: Pol Pinol
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2023-08-21, Sharding EMEA 2023-09-04
Participants:

 Description   

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
        }
    }
    



 Comments   
Comment by Githook User [ 28/Aug/23 ]

Author:

{'name': 'Pol Pinol Castuera', 'email': 'pol.pinol@mongodb.com', 'username': 'PolPinol'}

Message: SERVER-79967 Replace `-router` with `-routerPort` to listen to dedicated router port
Branch: master
https://github.com/mongodb/mongo/commit/60c8ed80a0d5baf25efa88e3a8b08c458fb683b4

Generated at Thu Feb 08 06:42:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.