portunus_affinity_random (portunus v0.8.0)

View Source

A 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

kind()

-spec kind() -> dynamic.

score(Key, Members, Args)

-spec score(term(), [node()], term()) -> pos_integer().