Is there any disadvantage of Consistent Hashing?

3.9k views Asked by At

Admittedly, consistent hashing is a widely used technology in distributed caching applications. It offers a good solution when the number of nodes changes dynamically. And when the virtual node is combined, the load balancing problem will also be solve.

I am just wondering is there any disadvantages or limitations of this technique?

Thanks!

2

There are 2 answers

1
Dustin On BEST ANSWER

Consistent hashing isn't perfect, but it's a lot better than the old modulo hashing. I wrote about this a while back and included details on an alternative that we use that does lead to perfect mapping while allowing nodes to be added or removed.

0
user1234 On

Yes, the main drawback is the snowball (or cascading) effect caused by a single node failing under stress which overloads its neighbor node with the transfer of keys from the died node and it may eventually fail due to the increased load and then the load transferred to its neighbor node and so on. Ultimately causing all the nodes to fail.