Details
-
New Feature
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
-
Fully Compatible
-
Sharding 2022-02-21
-
2
Description
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);
|
}
|
}
|
Attachments
Issue Links
- is depended on by
-
SERVER-63618 Create & Integrate CurrentOp Interface For Global Index Metrics
-
- Closed
-