Giter VIP home page Giter VIP logo

Comments (4)

achilsh avatar achilsh commented on June 1, 2024

比如:
当在计算后台节点的hash()时,考虑到虚节点在内,如果不同节点经计算得到一个相同的hash值,那么在一致性hash环上,就存在两个不同物理节点公用一个hash_index.当对key计算一致性hash 值时,正好落在这个hash_index.那到底取这两个物理节点的哪一个呢?

from consistent_hash.

ioriiod0 avatar ioriiod0 commented on June 1, 2024

from consistent_hash.

achilsh avatar achilsh commented on June 1, 2024

那就是如果node 在hash-ring 上处在冲突时,只有第一个节点才是被映射到ring上。这样对算法的准确性 有一定影响,如果虚节点比较多,hash比较均匀化,损失一个虚节点没不会 导致热点数据。后面想想也没有特别大影响。谢谢解答。
------ 题外话,哥哥这几年没在用c++呢,不知道最近往哪方面发展了,求分享。

from consistent_hash.

ioriiod0 avatar ioriiod0 commented on June 1, 2024

from consistent_hash.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.