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

Dynamic shards #2632

Open
ivakegg opened this issue Nov 18, 2024 · 1 comment
Open

Dynamic shards #2632

ivakegg opened this issue Nov 18, 2024 · 1 comment
Assignees

Comments

@ivakegg
Copy link
Collaborator

ivakegg commented Nov 18, 2024

We need a mechanism such that when the size of the data in a day's worth of shards gets too large, then ingest will automatically start using the next set of shards. For example if the number of shards is currently 10, then once some configurable threshold is met then shards 10-19 will be used instead of 0-9.

@ivakegg ivakegg self-assigned this Nov 18, 2024
@lbschanno lbschanno assigned lbschanno and unassigned ivakegg Jan 6, 2025
@ivakegg
Copy link
Collaborator Author

ivakegg commented Jan 6, 2025

The idea is to be able to configure the ShardIdFactory with classes that implement some interface which can be used to override the shard id for an event. The method needs to be passed in the event (of course), the shard id that the factory would have calculated, and the max number of shards for the event.

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

No branches or pull requests

2 participants