Skip to content

fix: do not retain span logger created with index set initialized at query time - #14027

Merged
sandeepsukhani merged 1 commit into
mainfrom
index-shipper-logger-alloc-fix
Sep 2, 2024
Merged

fix: do not retain span logger created with index set initialized at query time#14027
sandeepsukhani merged 1 commit into
mainfrom
index-shipper-logger-alloc-fix

Conversation

@sandeepsukhani

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
While investigating the memory usage of index gateways, I came across an instance where the logger was doing too many allocations coming from specifically here. It turns out we were creating a span logger at query time and retaining it with the index set initialized at query time.

Screenshot 2024-09-02 at 4 24 08 PM

This PR fixes the issue by not using span logger while initializing index sets.

@sandeepsukhani
sandeepsukhani merged commit 4e41744 into main Sep 2, 2024
@sandeepsukhani
sandeepsukhani deleted the index-shipper-logger-alloc-fix branch September 2, 2024 11:46
sandeepsukhani added a commit that referenced this pull request Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2 participants