Skip to content
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

Fixed scaling bug. #98350

Merged
merged 2 commits into from Aug 14, 2023
Merged

Fixed scaling bug. #98350

merged 2 commits into from Aug 14, 2023

Conversation

thomasdullien
Copy link
Contributor

@thomasdullien thomasdullien commented Aug 10, 2023

The ES profiling plugin does two different sorts of sampling: 1) The sampling rate that is derived from choosing a particular index.
2) An additional sampling rate that is applied if the particular index granularity leads to too many events -- e.g. if the number of events is more than 10% higher than requested, the events are subsampled further.

The client expects the results to not be scaled according to the sample rate, but the current API assumes the client will do the scaling for #1. The server, however, does the scaling for #2.

The "proper" and cleanest way would be to push scaling for both #1 and #2 into the server, and this will be done in a follow-up PR that touches both ES and Kibana. In the meantime, this PR will make sure the UI reports correct data, in case the follow-up PR encounters problems.

See also: https://github.com/elastic/prodfiler/issues/3115

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/profiling (Team:Universal Profiling)

Copy link
Contributor

@rockdaboot rockdaboot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thomasdullien thomasdullien merged commit e534a8b into elastic:main Aug 14, 2023
11 checks passed
csoulios pushed a commit to csoulios/elasticsearch that referenced this pull request Aug 18, 2023
* Fixed scaling bug.

* Fix tabs to spaces

---------

Co-authored-by: Tim Rühsen <tim.ruhsen@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug critical :UniversalProfiling/Application Elastic Universal Profiling REST APIs and infrastructure v8.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants