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

(SA) Link router commands for sharded cluster initialization into mongod

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Service Arch
    • Service Arch 2023-10-02, Service Arch 2023-10-16, Service Arch 2023-10-30, Service Arch 2023-11-13, Service Arch 2023-11-27

      A few router commands are required to initialize a sharded cluster, including:

      • addShard
      • enableSharding
      • shardCollection
      • cluster hello

      We need to link these commands into the new embedded-router mongod library, and register them with the Router commands registry.

      Note that, to get these commands to actually run correctly, we will need to bootstrap the sharding state correctly in embedded-router mode, including role-aware registration of any duplicate decorations and role-aware lookup of any such decorations. This work will be handled separately. The goal of this ticket is simply to link in these commands and their dependent libraries into the server, and allow the server to build correctly, without breaking any existing tests/the dedicated router and shard binaries. This will enable the future work to proceed and isolate out the SCons and dependent library changes.

            Assignee:
            george.wangensteen@mongodb.com George Wangensteen
            Reporter:
            george.wangensteen@mongodb.com George Wangensteen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: