-
Type: New Feature
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Sharding
-
Fully Compatible
-
Sharding 2022-02-21
-
2
This will a per-instance class that will handle all interactions between the Resharding/Global indexes metrics and external callers.
This is a simple example of what it could look like:
class IndividualMetrics { std::atomic<counter> _onlyIndividualsNeed; SharedMetricsPtr _sharedMetrics; CumulativeMetricsPtr _parent; IndividualMetrics(OperationContext* opCtx) { _parent = CumulativeMetrics::get(opCtx->getServiceContext()); _sharedMetrics = _parent.createRegisteredSharedMetrics() } ~IndividualMetrics() { _parent.deregisterSharedMetrics(_sharedMetrics); } }
- is depended on by
-
SERVER-63618 Create & Integrate CurrentOp Interface For Global Index Metrics
- Closed