Skip to content

Increase max stack trace nodes per chunk limit #2597

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

Merged
merged 2 commits into from
Oct 30, 2023

Conversation

kolesnikovae
Copy link
Collaborator

@kolesnikovae kolesnikovae commented Oct 27, 2023

I propose to increase the number of stack trace nodes per chunk from 1 million to 4.

The purpose of chunking was to allow for locations lookup with the symdb partition loaded into memory partially. The concern was high memory utilisation. However, at the moment, a query loads all the chunks concurrently in favour of lower query latency. In the meantime, chunking causes some duplication: as a single stack trace can't be split, we copy all its nodes into a new chunk, even if part of the stack trace is already known (but stored in another chunk and can't be referenced).

Each node takes up 16 bytes memory in ingesters, and 8 bytes when read from the block. Existing data sets I have analysed show that a single partition may contain 7 chunks and more (6+ millions of stacktraces); after compacting them into a single chunk of a larger size, they fit 4M limit.

@cyriltovena
Copy link
Contributor

Sounds good to me !

@kolesnikovae kolesnikovae marked this pull request as ready for review October 27, 2023 09:05
@kolesnikovae kolesnikovae requested a review from a team as a code owner October 27, 2023 09:05
Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

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

LGTM

@kolesnikovae kolesnikovae merged commit ec2e342 into main Oct 30, 2023
@kolesnikovae kolesnikovae deleted the chore/max-stacktrace-nodes-per-chunk branch October 30, 2023 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants