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

Add the utility to select the first shard as DB primary for the router

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • CAR Team 2024-07-22, CAR Team 2024-08-05, CAR Team 2024-08-19, CAR Team 2024-09-02, CAR Team 2024-09-16

      We will need to select the DB primary on the router for the new createDatabase DDL coordinator. For now, we can just always select the first shard (retrieved through an ordered find() from config.shards)

      We currently use selectLeastLoadedNonDrainingShard(). We can start with a similar interface for the new util function.

            Assignee:
            pau.baldillou-salse@mongodb.com Pau Baldillou Salse (Inactive)
            Reporter:
            yuhong.zhang@mongodb.com Yuhong Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: