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

Support compactor hash sharding #232

Merged
merged 4 commits into from
Aug 12, 2021
Merged

Support compactor hash sharding #232

merged 4 commits into from
Aug 12, 2021

Conversation

yeya24
Copy link
Contributor

@yeya24 yeya24 commented Jul 2, 2021

Signed-off-by: ben.ye ben.ye@bytedance.com

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

Changes

Fixes #231

Similar to the store shards, I add shards for compactors.
The difference is that store gateway is sharded by __block_id, but compactor needs to be sharded by the external labels of the blocks (e.g. cluster). This should be configured by users.

Verification

ben.ye added 3 commits July 1, 2021 18:23
Signed-off-by: ben.ye <ben.ye@bytedance.com>
Signed-off-by: ben.ye <ben.ye@bytedance.com>
Signed-off-by: ben.ye <ben.ye@bytedance.com>
@metalmatze
Copy link
Contributor

Nice!!!
One questions: Can we reuse the same service and match via labels?

@yeya24
Copy link
Contributor Author

yeya24 commented Jul 9, 2021

Hi @metalmatze, thank you for the review. Now I have one service per shard. Do you mean I need to use one service for all statefulsets? Can you explain how would it work via label matching?

Signed-off-by: ben.ye <ben.ye@bytedance.com>
Copy link
Member

@kakkoyun kakkoyun left a comment

Choose a reason for hiding this comment

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

LGTM! Awesome works, thanks!

@kakkoyun kakkoyun merged commit e76e196 into main Aug 12, 2021
@yeya24 yeya24 deleted the support-compactor-sharding branch August 12, 2021 17:03
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.

Support thanos compactor sharding
3 participants