Skip to content

Tools: add --shipper.upload-compacted flag for controlling upload con…#8595

Merged
saswatamcode merged 1 commit intothanos-io:mainfrom
dowgird:main
Jan 22, 2026
Merged

Tools: add --shipper.upload-compacted flag for controlling upload con…#8595
saswatamcode merged 1 commit intothanos-io:mainfrom
dowgird:main

Conversation

@dowgird
Copy link
Contributor

@dowgird dowgird commented Dec 10, 2025

…currency in bucket upload-blocks

  • [ x] I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

Verification

saswatamcode
saswatamcode previously approved these changes Dec 10, 2025
Copy link
Member

@saswatamcode saswatamcode left a comment

Choose a reason for hiding this comment

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

Generally LGTM, just one comment

}

// WithUploadConcurrency sets the number of goroutines to use when uploading block files.
func WithUploadConcurrency(concurrency int) Option {
Copy link
Member

Choose a reason for hiding this comment

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

Given this adds a new shipper option, maybe we should add this flag to all components that use shipper, like rule and receive as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't at first, because I didn't know if this is safe in the context of components which run as services, possibly concurrently with other components that modify data. (I assumed bucket tool is an admin tool and executed when the components are generally offline).

On second thought I can add the flag but default to 0 (including the bucket tool) so as to avoid surprising people. WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added the commit, PTAL

Signed-off-by: Rafał Dowgird <rafal.dowgird@rtbhouse.com>
Copy link
Member

@saswatamcode saswatamcode left a comment

Choose a reason for hiding this comment

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

LGTM!

@saswatamcode saswatamcode merged commit 52d4d94 into thanos-io:main Jan 22, 2026
34 of 35 checks passed
coleenquadros pushed a commit to coleenquadros/thanos that referenced this pull request Mar 9, 2026
thanos-io#8595)

Signed-off-by: Rafał Dowgird <rafal.dowgird@rtbhouse.com>
Co-authored-by: Rafał Dowgird <rafal.dowgird@rtbhouse.com>
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