[SERVER-57943] Compile expected shapes of currentOp and serverStatus output for resharding for the Docs team once metrics work has settled Created: 22/Jun/21  Updated: 27/Sep/22  Resolved: 02/Aug/22

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Blake Oler Assignee: Nandini Bhartiya
Resolution: Done Votes: 0
Labels: PM-234, PM-234-M3, PM-234-T-metrics, sharding-nyc-subteam1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Sprint: Sharding 2022-08-08
Participants:

 Comments   
Comment by Nandini Bhartiya [ 01/Aug/22 ]

currentOp output for different roles:

currentOp for Donor{
   "type" : "op",
   "desc" : "ReshardingMetricsDonorService f8a6f403-4089-49c2-83d4-caaa0e2c59d8",
   "op" : "command",
   "ns" : "test.resharding",
   "originatingCommand" : {
           "reshardCollection" : "test.resharding",
           "key" : {
                   "newKey" : 1
           },
           "unique" : "false",
           "collation" : {
                   "locale" : "simple"
           }
   },
   "totalOperationTimeElapsedSecs" : NumberLong(0),
   "donorState" : "donating-initial-data",
   "totalCriticalSectionTimeElapsedSecs" : NumberLong(0),
   "countWritesDuringCriticalSection" : NumberLong(0),
   "countReadsDuringCriticalSection" : NumberLong(0)
}

currentOp for Recipient{
   "totalApplyTimeElapsedSecs" : NumberLong(0),
   "insertsApplied" : NumberLong(0),
   "updatesApplied" : NumberLong(0),
   "deletesApplied" : NumberLong(0),
   "oplogEntriesApplied" : NumberLong(0),
   "oplogEntriesFetched" : NumberLong(0),
   "type" : "op",
   "desc" : "ReshardingMetricsRecipientService f8a6f403-4089-49c2-83d4-caaa0e2c59d8",
   "op" : "command",
   "ns" : "test.resharding",
   "originatingCommand" : {
           "reshardCollection" : "test.resharding",
           "key" : {
                   "newKey" : 1
           },
           "unique" : "false",
           "collation" : {
                   "locale" : "simple"
           }
   },
   "totalOperationTimeElapsedSecs" : NumberLong(0),
   "recipientState" : "creating-collection",
   "totalCopyTimeElapsedSecs" : NumberLong(0),
   "remainingOperationTimeEstimatedSecs" : NumberLong(0),
   "approxDocumentsToCopy" : 0,
   "approxBytesToCopy" : 0,
   "bytesCopied" : 0,
   "countWritesToStashCollections" : NumberLong(0),
   "documentsCopied" : 0
}

currentOp for Coordinator{
   "totalApplyTimeElapsedSecs" : NumberLong(0),
   "type" : "op",
   "desc" : "ReshardingMetricsCoordinatorService f8a6f403-4089-49c2-83d4-caaa0e2c59d8",
   "op" : "command",
   "ns" : "test.resharding",
   "originatingCommand" : {
           "reshardCollection" : "test.resharding",
           "key" : {
                   "newKey" : 1
           },
           "unique" : "false",
           "collation" : {
                   "locale" : "simple"
           }
   },
   "totalOperationTimeElapsedSecs" : NumberLong(0),
   "allShardsHighestRemainingOperationTimeEstimatedSecs" : NumberLong(0),
   "allShardsLowestRemainingOperationTimeEstimatedSecs" : NumberLong(0),
   "coordinatorState" : "cloning",
   "totalCopyTimeElapsedSecs" : NumberLong(0),
   "totalCriticalSectionTimeElapsedSecs" : NumberLong(0)
}

Comment by Nandini Bhartiya [ 01/Aug/22 ]

Output for serverStatus.shardingStatistics.resharding

serverStatusSection: {
   "countStarted" : NumberLong(1),
   "countSucceeded" : NumberLong(1),
   "countFailed" : NumberLong(0),
   "countCanceled" : NumberLong(0),
   "lastOpEndingChunkImbalance" : NumberLong(0),
   "active" : {
           "documentsCopied" : NumberLong(0),
           "bytesCopied" : NumberLong(0),
           "countWritesToStashCollections" : NumberLong(0),
           "countWritesDuringCriticalSection" : NumberLong(0),
           "countReadsDuringCriticalSection" : NumberLong(0),
           "oplogEntriesFetched" : NumberLong(0),
           "oplogEntriesApplied" : NumberLong(0),
           "insertsApplied" : NumberLong(0),
           "updatesApplied" : NumberLong(0),
           "deletesApplied" : NumberLong(0)
   },
   "oldestActive" : {
           "coordinatorAllShardsHighestRemainingOperationTimeEstimatedMillis" : NumberLong(0),
           "coordinatorAllShardsLowestRemainingOperationTimeEstimatedMillis" : NumberLong(0),
           "recipientRemainingOperationTimeEstimatedMillis" : NumberLong(0)
   },
   "latencies" : {
           "collectionCloningTotalRemoteBatchRetrievalTimeMillis" : NumberLong(0),
           "collectionCloningTotalRemoteBatchesRetrieved" : NumberLong(0),
           "collectionCloningTotalLocalInsertTimeMillis" : NumberLong(0),
           "collectionCloningTotalLocalInserts" : NumberLong(0),
           "oplogFetchingTotalRemoteBatchRetrievalTimeMillis" : NumberLong(0),
           "oplogFetchingTotalRemoteBatchesRetrieved" : NumberLong(0),
           "oplogFetchingTotalLocalInsertTimeMillis" : NumberLong(0),
           "oplogFetchingTotalLocalInserts" : NumberLong(0),
           "oplogApplyingTotalLocalBatchRetrievalTimeMillis" : NumberLong(0),
           "oplogApplyingTotalLocalBatchesRetrieved" : NumberLong(0),
           "oplogApplyingTotalLocalBatchApplyTimeMillis" : NumberLong(0),
           "oplogApplyingTotalLocalBatchesApplied" : NumberLong(0)
   },
   "currentInSteps" : {
           "countInstancesInCoordinatorState1Initializing" : NumberLong(0),
           "countInstancesInCoordinatorState2PreparingToDonate" : NumberLong(0),
           "countInstancesInCoordinatorState3Cloning" : NumberLong(0),
           "countInstancesInCoordinatorState4Applying" : NumberLong(0),
           "countInstancesInCoordinatorState5BlockingWrites" : NumberLong(0),
           "countInstancesInCoordinatorState6Aborting" : NumberLong(0),
           "countInstancesInCoordinatorState7Committing" : NumberLong(-1),
           "countInstancesInRecipientState1AwaitingFetchTimestamp" : NumberLong(0),
           "countInstancesInRecipientState2CreatingCollection" : NumberLong(0),
           "countInstancesInRecipientState3Cloning" : NumberLong(0),
           "countInstancesInRecipientState4Applying" : NumberLong(0),
           "countInstancesInRecipientState5Error" : NumberLong(0),
           "countInstancesInRecipientState6StrictConsistency" : NumberLong(0),
           "countInstancesInRecipientState7Done" : NumberLong(0),
           "countInstancesInDonorState1PreparingToDonate" : NumberLong(0),
           "countInstancesInDonorState2DonatingInitialData" : NumberLong(0),
           "countInstancesInDonorState3DonatingOplogEntries" : NumberLong(0),
           "countInstancesInDonorState4PreparingToBlockWrites" : NumberLong(0),
           "countInstancesInDonorState5Error" : NumberLong(0),
           "countInstancesInDonorState6BlockingWrites" : NumberLong(0),
           "countInstancesInDonorState7Done" : NumberLong(0)
   }
}

 

 

Generated at Thu Feb 08 05:43:11 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.