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

Potentially optimize mongo::MetricTree internal representation

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Service Arch
    • Service Arch 2022-09-05

      mongo::MetricTree is used to gather ServerStatusMetricFields into a tree structure where only leaves represent metrics. They are later plotted in a BSON structure and sent over the wire.

      Internally they are represented as two std::map where the key is a std::string; Leaves are exclusively persisted at the _metrics _ map while branches are represented as entirely new _MetricTree in the _subtrees map.

      While this is correct, it is memory inefficient.

      Acceptance Criteria: provide a better representation to MetricTree internals avoiding the usage of std::map

            Assignee:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            daniel.morilha@mongodb.com Daniel Morilha (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: