[SERVER-80491] Expose more granular metrics around balancing round Created: 29/Aug/23  Updated: 29/Oct/23  Resolved: 13/Sep/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 7.1.0-rc0, 7.0.1, 4.4.24, 5.0.20, 6.0.9
Fix Version/s: 4.4.25, 7.2.0-rc0, 7.0.2, 5.0.22, 6.0.11, 7.1.0-rc3

Type: Task Priority: Major - P3
Reporter: Tommaso Tocci Assignee: Tommaso Tocci
Resolution: Fixed Votes: 0
Labels: balancer-round-perf, shardingemea-qw
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by TOOLS-3376 Investigate changes in SERVER-80491: ... Closed
Assigned Teams:
Sharding EMEA
Backwards Compatibility: Fully Compatible
Backport Requested:
v7.1, v7.0, v6.0, v5.0, v4.4, v4.2
Sprint: Sharding EMEA 2023-09-18
Participants:
Story Points: 2

 Description   

We observed that in large cluster with lots of collections/chunks the balancer can take several seconds to decide which chunks to move in each round.

The goal of this ticket is to include this time in the round details stored in config.actionlog

E.g.

{
  "times":
    "selectionTimeMillis": <>,
    "throttleTimeMillis": <>,
    "migrationTimeMillis": <>,
}



 Comments   
Comment by Githook User [ 14/Sep/23 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: SERVER-80491 Expose more granular metrics around balancing round

(cherry picked from commit bc47b5a4b9b2dde8b0877c8654e6562316e9fc03)
Branch: v4.4
https://github.com/mongodb/mongo/commit/a0257681582b7d31a2ddc266898d7255cf25cb3e

Comment by Githook User [ 14/Sep/23 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: SERVER-80491 Expose more granular metrics around balancing round

(cherry picked from commit bc47b5a4b9b2dde8b0877c8654e6562316e9fc03)
Branch: v7.1
https://github.com/mongodb/mongo/commit/43a3323f5606774bb3c714454b9148fdfe4bd467

Comment by Githook User [ 14/Sep/23 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: SERVER-80491 Expose more granular metrics around balancing round

(cherry picked from commit bc47b5a4b9b2dde8b0877c8654e6562316e9fc03)
Branch: v6.0
https://github.com/mongodb/mongo/commit/48233a9c32be6ca69dc3194fb02fda14bdeac283

Comment by Githook User [ 14/Sep/23 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: SERVER-80491 Expose more granular metrics around balancing round

(cherry picked from commit bc47b5a4b9b2dde8b0877c8654e6562316e9fc03)
Branch: v7.0
https://github.com/mongodb/mongo/commit/42698c7d1d3c98e6d569102c78aba0c3ca8aca54

Comment by Githook User [ 14/Sep/23 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: SERVER-80491 Expose more granular metrics around balancing round
Branch: v5.0
https://github.com/mongodb/mongo/commit/65aace3c817d84843cdafc6e83cfb0e10f6ff08f

Comment by Githook User [ 13/Sep/23 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: SERVER-80491 Expose more granular metrics around balancing round
Branch: master
https://github.com/mongodb/mongo/commit/bc47b5a4b9b2dde8b0877c8654e6562316e9fc03

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