Where to find or how to calc the shard_id to shard-number mapping ?
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 ?
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!