[SERVER-76278] Log extra migration information Created: 19/Apr/23  Updated: 29/Oct/23  Resolved: 08/May/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0, 5.0.18, 7.0.0-rc1, 6.0.7

Type: Task Priority: Major - P3
Reporter: Marcos José Grillo Ramirez Assignee: Marcos José Grillo Ramirez
Resolution: Fixed Votes: 0
Labels: sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
related to SERVER-72146 Make chunk migrations metrics more ac... Closed
Assigned Teams:
Sharding EMEA
Backwards Compatibility: Fully Compatible
Backport Requested:
v7.0, v6.3, v6.0, v5.0
Sprint: Sharding EMEA 2023-05-01, Sharding EMEA 2023-05-15
Participants:

 Description   

SERVER-72146 added extra statistics related to migration, we could use it to log it at the end of the operation to give more information about the current state of migrations, specifically the throughput, and how long a migration is taking.

Specifically, at the end of a successful migration we should log:

  • migrationId: to identify the migration
  • totalTimeMillis: to know the total amount of time taken by the migrations in milliseconds
  • docsCloned: the number of documents cloned to the recipient shard by the migration
  • bytesCloned: the total number of bytes cloned to the recipient shard by the migration
  • cloneTime: the final amount of time taken by the clone phase by the migration in milliseconds.


 Comments   
Comment by Githook User [ 10/May/23 ]

Author:

{'name': 'Marcos José Grillo Ramirez', 'email': 'marcos.grillo@mongodb.com', 'username': 'm4nti5'}

Message: SERVER-76278 Log extra migration information at the end of the operation

(cherry picked from commit 41cfc87e3cc05ed15df9029cdb694de17267572c)
Branch: v5.0
https://github.com/mongodb/mongo/commit/796abe56bfdbca6968ff570311bf72d93632825b

Comment by Githook User [ 09/May/23 ]

Author:

{'name': 'Marcos José Grillo Ramirez', 'email': 'marcos.grillo@mongodb.com', 'username': 'm4nti5'}

Message: SERVER-76278 Log extra migration information at the end of the operation

(cherry picked from commit 41cfc87e3cc05ed15df9029cdb694de17267572c)
Branch: v6.0
https://github.com/mongodb/mongo/commit/2ec07ff82f36e362b93bed0c4ff57f350cbfcb58

Comment by Githook User [ 09/May/23 ]

Author:

{'name': 'Marcos José Grillo Ramirez', 'email': 'marcos.grillo@mongodb.com', 'username': 'm4nti5'}

Message: SERVER-76278 Log extra migration information at the end of the operation

(cherry picked from commit 41cfc87e3cc05ed15df9029cdb694de17267572c)
Branch: v7.0
https://github.com/mongodb/mongo/commit/5d72ce1c25487f348d2d5c8b157211cf3c947757

Comment by Githook User [ 08/May/23 ]

Author:

{'name': 'Marcos José Grillo Ramirez', 'email': 'marcos.grillo@mongodb.com', 'username': 'm4nti5'}

Message: SERVER-76278 Log extra migration information at the end of the operation
Branch: master
https://github.com/mongodb/mongo/commit/41cfc87e3cc05ed15df9029cdb694de17267572c

Generated at Thu Feb 08 06:32:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.