-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
Server Programmability
-
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
- is related to
-
SERVER-65987 ServerStatusMetric API refresh
- Closed
-
SERVER-67333 ServerStatusMetric API refresh follow-up
- Closed