portunus_affinity_random (portunus v0.8.0)
View SourceA dynamic strategy: each node bids a random weight, so a uniformly random
contender wins. The roll runs on the client, never in the machine, so it
does not affect determinism. For a stable even spread prefer
portunus_affinity_hash, whose owner does not move on every contention.
Summary
Functions
-spec kind() -> dynamic.
-spec score(term(), [node()], term()) -> pos_integer().