-
Notifications
You must be signed in to change notification settings - Fork 424
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
Where to find or how to calc the shard_id to shard-number mapping ? #92
Comments
Hi lukas-becker0 (https://github.com/lukas-becker0), Thank you for your comment. This GitHub repo is not actively monitored. If you need help, please check previously asked questions in the WA Business API Developer Community, or raise a Direct support ticket. Meanwhile, we are happy to continue with less time-sensitive discussions in GitHub. Thanks for your understanding! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
According to the documentation the shard_ids are calculated like this:
shard_id = hash(recipient-id) % shard-number
We can findout which shard_id has been assigned to which phone number by checking the
messages
table in themessageStore
database.and I assume we can find the "shard-number" by looking at the id in the
shard_map
table in theclusterStore
database.There is however no table with the information which
shard_id
belongs to which shard.Also calculating which
shard_id
belongs to which shard is not possible without knowing what hashing algorithm was used.Can you provide the hashing algorithm which is used to calculate the shard ids ?
Is there a database entry or log entry in one of the containers which provides the information which
shard_ids
belong to which shard ?The text was updated successfully, but these errors were encountered: