[SERVER-83666] Improve clarity of number of CPUs metric reporting in FTDC Created: 28/Nov/23  Updated: 02/Feb/24  Resolved: 18/Dec/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Jason Chan Assignee: Vinod Kumar
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Gantt Dependency
Problem/Incident
Related
is related to SERVER-40506 ftdc (hostInfo.num_cores,systemMetric... Closed
Assigned Teams:
Service Arch
Backwards Compatibility: Minor Change
Sprint: Service Arch 2023-12-11, Service Arch 2023-12-25
Participants:
Linked BF Score: 135

 Description   

Currently, we will attempt to return the number of CPUs available to the process, but if sched_getaffinity returns an error, we will default to returning the number of CPUs available to the system host. This is confusing for users of FTDC that are looking at deployments that are running in virtualized environments.

We should look to differentiate the metrics so it's clear whether we are reporting the number of CPUs available to the process or to the host.



 Comments   
Comment by Githook User [ 18/Dec/23 ]

Author:

{'name': 'Vinod Kumar', 'email': 'vinod.kumar@mongodb.com', 'username': 'vkumar-mdb'}

Message: SERVER-83666 - FTDC metrics improvements for num cores avl to process

GitOrigin-RevId: 5ce130d83171ac53f122223727d1f98e84611cb3
Branch: master
https://github.com/mongodb/mongo/commit/5098de8846e10a90c475948486d99af89c1f1224

Comment by Githook User [ 13/Dec/23 ]

Author:

{'name': 'Liubov Molchanova', 'email': 'liubov.molchanova@mongodb.com', 'username': 'liubov-molchanova'}

Message: Revert "SERVER-83666 CPUs metric in FTDC - should take into account syscall failures"

This reverts commit 7160530afa6d1e6cbc0b1a25983d47daf95e8cb3.

GitOrigin-RevId: 428e89a7534583ad29fe27772ce732319038b066
Branch: master
https://github.com/mongodb/mongo/commit/1c3ff155e6166427ffed2b844e92cac4fcc03171

Comment by Githook User [ 12/Dec/23 ]

Author:

{'name': 'Vinod Kumar', 'email': 'vinod.kumar@mongodb.com', 'username': 'vkumar-mdb'}

Message: SERVER-83666 CPUs metric in FTDC - should take into account syscall failures

GitOrigin-RevId: 7160530afa6d1e6cbc0b1a25983d47daf95e8cb3
Branch: master
https://github.com/mongodb/mongo/commit/c799389b86ff46156305c98c9445ccd002ab5628

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