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

Improve Cluster Role API usability

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • CAR Team 2024-02-19

      The current ClusterRole API exposes a set of very open and generic functions that don't auto-describe the real use causes that the callers want to achieve.

      In order to improve the readability of the code, the idea is to expose an API with clear function names that better descrive what they do.

      The instances of this class model the role (or roles) of the current process (node) that is actually a member of a sharded cluster. If the process is a standalone or a replica set member, then there is no cluster role.

      An draft idea is to have an API that looks as follows:

      • isRouterOnly
      • isRouter
      • isShardOnly
      • isShard

            Assignee:
            backlog-server-catalog-and-routing [DO NOT USE] Backlog - Catalog and Routing
            Reporter:
            antonio.fuschetto@mongodb.com Antonio Fuschetto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: