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

Idea for horizontal scaling #1

Open
schaier-io opened this issue Jan 30, 2023 · 0 comments
Open

Idea for horizontal scaling #1

schaier-io opened this issue Jan 30, 2023 · 0 comments

Comments

@schaier-io
Copy link

Maybe add a CLI argument (index and parallel_count) to have multiple instance running in parallel.

This could be achived by having each instance only handle the IPFS hashes which correspond to the index after running them through a proper splitting algorithm.

The algorithm should split each IPFS hash into different buckets by equal probability, this in the simplest form might be implemented by something like converting the hash into a number and taking it modulo the parallel_count.

However one must take into account, that there might be some occurrences in the hash wich are more likely (especially if a special prefix is used) Therefore it might be a possibility to hash the data again beforehand. The new hashing algorithm of course must allow for proper splitting.

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

1 participant