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

Loki: Transfer one chunk at a time per series during chunk transfers #2328

Merged
merged 1 commit into from
Jul 9, 2020

Conversation

slim-bean
Copy link
Collaborator

With very large volume log streams and chunk_retain_period enabled it's possible for a stream to have many chunks in memory.

The previous behavior would send all those chunks in one GRPC payload which can hit the GRPC limits for sending.

This PR introduces a change to send the chunks one at a time to better utilize the GRPC connection and prevent exceeding limits.

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

@codecov-commenter
Copy link

Codecov Report

Merging #2328 into master will increase coverage by 0.11%.
The diff coverage is 80.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2328      +/-   ##
==========================================
+ Coverage   61.16%   61.27%   +0.11%     
==========================================
  Files         158      158              
  Lines       12799    12798       -1     
==========================================
+ Hits         7828     7842      +14     
+ Misses       4374     4362      -12     
+ Partials      597      594       -3     
Impacted Files Coverage Δ
pkg/ingester/transfer.go 65.24% <80.00%> (-0.25%) ⬇️
pkg/logql/evaluator.go 92.13% <0.00%> (ø)
pkg/promtail/targets/file/filetarget.go 70.48% <0.00%> (+1.80%) ⬆️
pkg/querier/queryrange/downstreamer.go 97.93% <0.00%> (+2.06%) ⬆️
pkg/promtail/targets/file/tailer.go 78.40% <0.00%> (+4.54%) ⬆️
pkg/logql/vector.go 87.50% <0.00%> (+18.75%) ⬆️

@slim-bean slim-bean merged commit edaf0ed into master Jul 9, 2020
@slim-bean slim-bean deleted the chunk-transfer-single-chunk branch July 9, 2020 15:56
cyriltovena pushed a commit to cyriltovena/loki that referenced this pull request Jun 11, 2021
* Remove AWS based autoscaler code

We still support metrics based autoscaling.

Fixes cortexproject/cortex#1379

Signed-off-by: Goutham Veeramachaneni <[email protected]>

* Remove unused function.

Signed-off-by: Tom Wilkie <[email protected]>

* Remove unused vendor code.

Signed-off-by: Tom Wilkie <[email protected]>

* Fix bad rebase.

Signed-off-by: Tom Wilkie <[email protected]>

Co-authored-by: Tom Wilkie <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants