Skip to content

Add min_shards parameter to index config #5781

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 1 commit into from
Jun 2, 2025
Merged

Conversation

guilload
Copy link
Member

Description

Add min_shards parameter to index config. When the control place receives an GetOrCreateOpenShards request, it opens min_shards shards instead of 1. When scaling down, it ensures that we do not scale down below min_shards. When scaling up, it ensures that there is at least min_shards open if the index is actively receiving data (not idling).

How was this PR tested?

Added unit tests

@guilload guilload requested review from rdettai and fulmicoton-dd May 30, 2025 16:12
@esatterwhite
Copy link
Collaborator

If idle shards are an expensive thing to keep, I don't think it a bad thing if it goes below. Especially once the finalized runs after data stops flowing.

The initial create is kind of the bigger win. In our case at least

@guilload guilload force-pushed the guilload/min-shards branch 2 times, most recently from a96b726 to ceddfb1 Compare June 2, 2025 19:17
@guilload guilload force-pushed the guilload/min-shards branch from ceddfb1 to 5a482f3 Compare June 2, 2025 20:15
@guilload guilload merged commit b76b924 into main Jun 2, 2025
8 checks passed
@guilload guilload deleted the guilload/min-shards branch June 2, 2025 20:30
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.

4 participants