[SERVER-71285] Add test coverage for sample rate distribution across samplers Created: 11/Nov/22  Updated: 29/Oct/23  Resolved: 06/Dec/22

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

Type: Task Priority: Major - P3
Reporter: Cheahuychou Mao Assignee: Cheahuychou Mao
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-71281 opcounters.command on mongos counts i... Closed
Problem/Incident
Backwards Compatibility: Fully Compatible
Sprint: Sharding NYC 2022-11-28, Sharding 2022-12-12
Participants:
Linked BF Score: 28

 Description   

Add a js test for verifying that query sampling respects the sample rate configured via the "configureQueryAnalyzer" command, and that the number of queries sampled by each mongos or shardsvr mongod is proportional to the number of queries it routes.



 Comments   
Comment by Githook User [ 05/Dec/22 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}

Message: SERVER-71285 Increase sampling duration in sample_rates.js
Branch: master
https://github.com/mongodb/mongo/commit/d6fcb6fbdbea224abb20356180a88fe6d149323f

Comment by Githook User [ 16/Nov/22 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}

Message: SERVER-71285 Add test coverage for sample rate distribution across samplers
Branch: master
https://github.com/mongodb/mongo/commit/089c180f98c89add3cf5ef5558245410764cf867

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