summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/resharding/resharding_metrics.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-69184 Coverity analysis defect 128686: Using a moved objectSanika Phanse2023-05-121-1/+1
|
* SERVER-73078 Implement MovePrimaryMetricsBrett Nawrocki2023-03-141-140/+33
| | | | | | | This commit also includes a partial refactor of ShardingDataTransformInstanceMetrics and its children in general, breaking down some elements of monolithic classes into mixins that are more easily composable.
* SERVER-73081 Implement MovePrimaryCumulativeMetricsBrett Nawrocki2023-03-041-131/+2
| | | | | | | | | | | This commit also includes a partial refactor of ShardingDataTransformCumulativeMetrics and its children in general, breaking down some elements of monolithic classes into mixins that are more easily composable. Additionally, the ShardingDataTransformMetrics classes have been moved under a metrics subdirectory so that it's clear that they are part of the same subsystem.
* SERVER-72197 Run clang-format 12.0.1 on the codebaseclang-format 12.0.12023-02-111-2/+6
| | | | Signed-off-by: Ryan Egesdahl <ryan.egesdahl@mongodb.com>
* SERVER-70115 Resharding Coordinator and Recipient Persist Invalid Start/End ↵Adrian Gonzalez2023-01-171-0/+8
| | | | Times to State Document
* SERVER-70079 Remove optional_util::setOrAddBilly Donahue2022-09-291-1/+1
|
* SERVER-68783 Disambiguate 0 time estimate from no estimate in reshardingBrett Nawrocki2022-09-011-20/+50
|
* SERVER-67093: Create the GlobalIndexMetrics classnandinibhartiyaMDB2022-08-181-7/+39
|
* SERVER-67112 Create ReshardingCumulativeMetrics subclassBrett Nawrocki2022-07-281-22/+39
|
* SERVER-68246 rewrite calls to boost::optional get and is_initializedBilly Donahue2022-07-271-1/+1
|
* SERVER-68154 Race in destruction of Resharding metrics can lead to calling ↵Randolph Tan2022-07-261-1/+8
| | | | pure virtual function
* SERVER-67088: Create the FieldNameProvider classesnandinibhartiyaMDB2022-07-141-14/+19
| | | | | Create the base class ShardingDataTransformInstanceMetricsFieldNameProvider & the derived GlobalIndexMetricsFieldNameProvider, ReshardingMetricsFieldNameProvider classes
* SERVER-67709 rename visit_helperBilly Donahue2022-07-061-1/+1
|
* SERVER-67089: Move resharding fields from ShardingDataTransformInstanceMetricsnandinibhartiyaMDB2022-07-011-6/+111
|
* SERVER-67085 Rename ReshardingMetricsNew to ReshardingMetricsRandolph Tan2022-06-081-0/+295
|
* SERVER-66422 Switch over to new resharding metricsRandolph Tan2022-06-071-782/+0
|
* SERVER-65664 Provide more specific types for cache alignment needsAndrew Morrow2022-05-061-4/+4
|
* SERVER-66203 move MONGO_LOGV2_DEFAULT_COMPONENT defs below includesBilly Donahue2022-05-061-1/+3
|
* SERVER-64376 Add Parity Recipient Applying Fields in CurrentOpBrett Nawrocki2022-04-211-29/+8
| | | | | | | | Track and report the following fields in ShardingDataTransformInstanceMetrics for resharding $currentOp: oplogEntriesFetched totalApplyTimeElapsedSecs remainingOperationTimeEstimatedSecs
* SERVER-61018 Create a generic histogram typeReo Kimura2022-02-251-18/+13
|
* Revert "SERVER-61018 Create a generic histogram type"auto-revert-processor2022-02-241-13/+18
| | | | This reverts commit 1f1d912e1a65a66c6d0f7a0b4e4ec687007ecd44.
* SERVER-61018 Create a generic histogram typeReo Kimura2022-02-231-18/+13
|
* Revert "SERVER-61018 Create a generic histogram type"auto-revert-processor2022-02-191-13/+18
| | | | This reverts commit 06124a018dd1c6abed0fbda003d214f1c34ece7b.
* SERVER-61018 Create a generic histogram typeReo Kimura2022-02-181-18/+13
|
* SERVER-57766 Omit shardingStatistics.resharding section when resharding ↵Matt Boros2021-12-161-1/+7
| | | | hasn't been run
* SERVER-61473 Make ReshardingMetrics::onCompletion() idempotent.Max Hirschhorn2021-11-151-0/+4
| | | | | ReshardingMetrics::onCompletion() can be called multiple times within the resharding::WithAutomaticRetry blocks of the ReshardingCoordinator.
* SERVER-60787 Force alignment with std::aligned_storage not inheritanceBilly Donahue2021-10-221-11/+11
|
* SERVER-59927 Add retry to _restoreMetrics()Brett Nawrocki2021-10-111-19/+18
| | | | | | | | | | | | | | | | | | | | RecipientStateMachine::_restoreMetrics() performs a number of read operations to calculate the number of documents it cloned, oplog entries it fetched, and oplog entries it applied at the beginning of starting to run again. These read operations may be interrupted if the primary steps down shortly after having been stepped up, which eventually leads to an fassert(). Therefore, perform _restoreMetrics() in a resharding::WithAutomaticRetry() block so any transient errors can be automatically retried and synchronized with the stepdown token being canceled. Furthermore, refactor RecipientStateMachine to use new RetryingCancelableOperationContextFactory to ensure that all usages of CancelableOperationContextFactory occur within a resharding::WithAutomaticRetry() block. Additionally, add a test case that will cover the _restoreMetrics() read operations being interrupted.
* SERVER-55711 Rename variable which was shadowing parameterBrett Nawrocki2021-09-091-2/+2
|
* SERVER-57700 Measure latency/throughput of ↵Matt Walak2021-08-121-19/+35
| | | | resharding::data_copy::fillBatchForInsert in ReshardingCollectionCloner::doOneBatch
* SERVER-57697 Measure latency/throughput of ReshardingOplogApplier::_applyBatchMatt Walak2021-08-041-0/+31
|
* SERVER-58592 Make sure to clear resharding metrics after reshard collection ↵Randolph Tan2021-08-021-6/+8
| | | | completes.
* SERVER-58926 ReshardingDonor should not try to set the stop time of the ↵Haley Connelly2021-07-291-2/+8
| | | | critical section if it the critical section was already released
* SERVER-57761 Increment insert opcounter as part of resharding collection cloningHaley Connelly2021-07-151-7/+19
|
* SERVER-57276 Capture max/min percent complete in FTDC metrics as seen by the ↵Junhson Jean-Baptiste2021-07-151-0/+34
| | | | commit monitor
* SERVER-58395: Resharding metrics should set donorState/RecipientState to ↵Kshitij Gupta2021-07-091-2/+4
| | | | kUnused if they are not initialized for currentOp report.
* SERVER-57760 Introduce resharding dedicated OpCounters and use them inHaley Connelly2021-07-091-0/+78
| | | | ReshardingOplogApplier
* SERVER-53913: ReshardingDonorService instances to load metrics stateKshitij Gupta2021-07-051-1/+17
| | | | upon instantiation.
* SERVER-57952 Re-add DonorStateEnum::kPreparingToBlockWrites.Max Hirschhorn2021-06-231-1/+1
|
* SERVER-57217 Don't report remainingOperationTimeEstimatedSecs in currentOp ↵Junhson Jean-Baptiste2021-06-221-10/+6
| | | | metrics for resharding for donors and coordinators
* Revert "SERVER-57217 Don't report remainingOperationTimeEstimatedSecs in ↵Max Hirschhorn2021-06-171-6/+10
| | | | | | currentOp metrics for resharding for donors and coordinators" This reverts commit e8f96019646425bc352f09b62d8e86b0e41f5d5b.
* SERVER-57217 Don't report remainingOperationTimeEstimatedSecs in currentOp ↵Junhson Jean-Baptiste2021-06-161-10/+6
| | | | metrics for resharding for donors and coordinators
* SERVER-55430 Record metrics about whether a collection is rebalanced after ↵Randolph Tan2021-06-161-0/+13
| | | | resharding op finishes
* SERVER-54960 ReshardingMetrics time smearing (and refactor)Billy Donahue2021-06-141-157/+191
|
* SERVER-53912: ReshardingRecipientService instances to load metrics stateKshitij Gupta2021-06-111-1/+0
| | | | upon instantiation.
* SERVER-57367 Put units on strings used in resharding statsRandolph Tan2021-06-071-5/+5
|
* SERVER-57331: Expose currentOp metrics so that they can be easilyKshitij Gupta2021-06-041-5/+35
| | | | restored.
* SERVER-56499 Start resharding metrics on resharding donorsRandolph Tan2021-06-031-2/+2
|
* SERVER-57153 Support co-existing donors/recipients in resharding metricsBlake Oler2021-06-011-30/+102
|
* SERVER-56739 Rewrite resharding metrics duration component to allow for ↵Blake Oler2021-05-201-25/+44
| | | | resuming from stepup