genpark-consistent-hashing-vnodes-replication-skill
mcp
Uyari
Health Uyari
- 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 Gecti
- Code scan — Scanned 6 files during light audit, no dangerous patterns found
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
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)"]
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi