Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-7229

Investigate changes in SERVER-75754: Consider moving query.planCacheTotalSizeEstimateBytes and query.planCacheTotalQueryShapes into query.planCache sub-document.

    • Type: Icon: Investigation Investigation
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • No version
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Not Needed

      Original Downstream Change Summary

      serverStatus fields:

      metrics.query.planCacheTotalQueryShapes
      metrics.query.planCacheTotalSizeEstimateBytes
      

      moved to

      metrics.query.planCache.totalQueryShapes
      metrics.query.planCache.totalSizeEstimateBytes
      

      Example planCache sub doc:

      "planCache" : {
              "totalQueryShapes" : NumberLong(0),
              "totalSizeEstimateBytes" : NumberLong(0),
              "classic" : {
                      "hits" : NumberLong(0),
                      "misses" : NumberLong(2)
              },
              "sbe" : {
                      "hits" : NumberLong(0),
                      "misses" : NumberLong(0)
              }
      },
      

      Description of Linked Ticket

      In SERVER-70025 we introduced 4 new plan cache counters which are surfaced via query.planCache sub-document.

      We should consider moving all plan cache related counters into the query.planCache sub-document to group them logically together.

      The two which are currently housed in the query document are:

      • query.planCacheTotalSizeEstimateBytes
      • query.planCacheTotalQueryShapes

            Assignee:
            rhys.howell@mongodb.com Rhys Howell
            Reporter:
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: