ExStorageService.Cluster.Placement (ex_storage_service v0.6.2)

Copy Markdown View Source

Pure deterministic rendezvous placement for immutable blob hashes.

Summary

Functions

select(hash, nodes, replication_factor)

@spec select(binary(), [ExStorageService.Cluster.Node.t()], pos_integer()) ::
  {:ok, [ExStorageService.Cluster.Node.t()]}
  | {:error,
     :duplicate_node_id
     | :insufficient_eligible_nodes
     | :invalid_replication_factor}