toTaskRing

fun toTaskRing(vnodeCount: Int = 150, seed: Long = 0): TaskRing

Builds a TaskRing from this roster snapshot.

Parameters

vnodeCount

Virtual-node count per peer for even load distribution. Higher values improve balance at the cost of more memory. Default 150 is a good starting point for up to ~20 peers.

seed

Seed for the deterministic vnode hash. Must match across all nodes in the same session — use the same constant seed in production; vary in tests.