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

Do not force a Shard Registry lookup if topology time doesn't change

    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v8.0, v7.0, v6.0, v5.0
    • CAR Team 2024-07-08, CAR Team 2024-07-22, Cluster Scalability 2024-6-10, CAR Team 2024-08-05, CAR Team 2024-08-19, CAR Team 2024-09-02
    • 200
    • 3

      ShardRegistry does a periodic _lookup of cache every 30 seconds by default. We currently force a refresh pessimistically and in doing so block all threads that need shard registry data for targeting shards over the network. This can be bad for user threads which get blocked until the refresh completes, particularly for colocated/non-dedicated config servers when there are lagging secondaries and the reads go to them.

            Assignee:
            yujin.kang@mongodb.com Yujin Kang Park
            Reporter:
            abdul.qadeer@mongodb.com Abdul Qadeer
            Votes:
            0 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              Resolved: