Skip to content

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

@lukas-becker0

Description

@lukas-becker0

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions