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

Where to find or how to calc the shard_id to shard-number mapping ? #92

Open
lukas-becker0 opened this issue Jun 9, 2023 · 1 comment

Comments

@lukas-becker0
Copy link

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 the messageStore database.

and I assume we can find the "shard-number" by looking at the id in the shard_map table in the clusterStore 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 ?

@facebook-github-bot
Copy link
Contributor

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants