Make distribution function (pick none/shard) configurable.
cabol opened this issue · comments
Carlos Andres Bolaños R.A. commented
Currently shards_dist
uses Jumping Consistent Hashing, but it would be good to make this function to calculate/pick the node totally configurable.
I don't know if make sense do the same for shards_local
, because locally, we always have the same amount of shards and the function is pretty dump and simple (erlang:phash2/2
).
Carlos Andres Bolaños R.A. commented
Fixed with PR #11.