-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Diagnostics: Adds performance improvement to GetContactedRegions() #2907
Conversation
43a0269
to
d084f31
Compare
What's the impact with-out regions-contracted collection in telemetry? |
...Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Performance.Tests/Benchmarks/TelemetryBenchmark.cs
Outdated
Show resolved
Hide resolved
#2952 This issue has RCA documented. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert the breaking change making ITrace abstract base class instead of interface
This reverts commit 3680d0f.
3680d0f
to
4ede83e
Compare
Description
Getting region Contacted information from the diagnostics is very inefficient today. It is affecting Client Telemetry Performance by 2% to 3% .
Right now, Overall impact is 5% (Comparing run with Telemetry and Without Telemetry)
Performance Test:
Without Change:
After this change:
Reduction in memory allocation and increase RPS is noticed for this particular function.
Client Telemetry Stats (Calculating Overall Impact after the Change):
Impact in % is:
Maxima Difference = 10599 (w/o Telemetry) - 10120 (with Telemetry) = 479 = 4.5%
Minima Difference = 8528 (w/o Telemetry) - 8867 (with Telemetry) = -339 = 0%
Type of change
Closing issues
To automatically close an issue: closes #2846 and closes #2952