[GODRIVER-3095] Add moving STD to RTT Stats Created: 11/Jan/24  Updated: 12/Jan/24

Status: Backlog
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 2.1.0

Type: Improvement Priority: Unknown
Reporter: Preston Vasquez Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to GODRIVER-2762 Use minimum RTT for CSOT maxTimeMS ca... Closed
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

Context

Qualify the connection stability by providing the user with the moving standard deviation in the rttMonitor.Stats() method, which will likely the propagated as an operation error during a timeout.

This value should be the average standard deviations of the S_{10} moving average defined here. Which would result in a Nx1 vector of standard deviations, like this.

Here is a working example, you can roughly confirm the hypothesis by adjusting the rang variable which should grow larger by a factor of itself: https://go.dev/play/p/s54Z4BQWPCR

Definition of done

Implement the moving standard deviation for rtt samples.


Generated at Thu Feb 08 08:40:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.