Simulation run on this device. Scenario values are not sent anywhere — the engine is fully local.
system design simulation · free
Consistent Hash Ring Studio
Add and remove ring nodes, with and without virtual nodes, and count migrating keys.
How many keys actually move when a node leaves?
Engine 1.0.0 · simulation
4 nodes
Changes count the exact keys that migrate under the hash scheme.
- Keys
- 160
- Ideal per node
- 40.0
- Most loaded node
- 46 keys15% over ideal
- Keys migrated (last change)
- —
Sixteen points per physical node smooth the distribution — and the migration count stays near the ideal 1/N when the ring changes.
Method
- Keys and (virtual) nodes hash to ring positions; a key belongs to the first node clockwise.
- Migrations are counted exactly by diffing ownership before and after a ring change.
- Virtual nodes subdivide each physical node's arc for smoother balance at the same rules.