Documentation
¶
Overview ¶
Package sharding provides consistent hashing for distributing repositories across shards.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractOrdinal ¶
ExtractOrdinal extracts the ordinal index from a StatefulSet pod name.
func GetShardForRepo ¶
GetShardForRepo returns the shard index for a repository name using FNV-1a consistent hashing. This must be identical across all consumers (indexer, queue, federation, search) to ensure the same repo always maps to the same shard.
Types ¶
Click to show internal directories.
Click to hide internal directories.