genpark-consistent-hashing-vnodes-replication-skill

mcp
Security Audit
Warn
Health Warn
  • No license — Repository has no license file
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 7 GitHub stars
Code Pass
  • Code scan — Scanned 6 files during light audit, no dangerous patterns found
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

Consistent hashing ring with virtual nodes (vnodes) and configurable replica distribution

README.md

Consistent Hashing Ring with Virtual Nodes Skill

High-performance, zero-dependency Python implementation of Consistent Hashing with Virtual Nodes (Vnodes) for distributed caching, partition management, and replica distribution.

Features

  • Virtual Nodes Distribution: Uniform key allocation avoiding hot spots using (O(K)) vnodes per physical node.
  • Dynamic Membership: Fast (O(\log(VN))) key routing via binary search over sorted integer ring.
  • Zero External Dependencies: Pure Python standard library (hashlib, bisect).
  • Native MCP Protocol: JSON-RPC 2.0 stdio server compatible with Claude Desktop, Cursor, and Windsurf.

Architecture

graph TD
    Key["Object Key: user_profile_42"] --> Hash["MD5 Hash Function"]
    Hash --> Ring["Ring [0 ... 2^32-1]"]
    Ring --> VNode["Vnode: Node2#vnode14"]
    VNode --> PhysNode["Physical Node 2 (Primary)"]
    Ring -.-> Replica1["Physical Node 3 (Replica 1)"]
    Ring -.-> Replica2["Physical Node 1 (Replica 2)"]

Reviews (0)

No results found