groupcache icon indicating copy to clipboard operation
groupcache copied to clipboard

consistenthash.go doesn't have a "Remove" method

Open toli-belo opened this issue 6 years ago • 4 comments

curious how you guys use consistenthash.go without the Remove method. Isn't the whole beauty in the ability to make some keys unavail by removing them from the "ring" /hash value list?

toli-belo avatar Apr 05 '19 21:04 toli-belo

Hi, Has this issue been resolved?

LiuNingqian avatar Jan 17 '22 12:01 LiuNingqian

I'm trying to understand the use case here, you can effectively "remove" a peer by re-creating the hash with a new set of peers.

thrawn01 avatar Jan 17 '22 15:01 thrawn01

I'm trying to understand the use case here, you can effectively "remove" a peer by re-creating the hash with a new set of peers.

I also thought about the use case, but what I'm worried about is that if re-creating will change the old mapping peer.

LiuNingqian avatar Feb 08 '22 07:02 LiuNingqian

It can change the mapping peer, but removing a peer will also change the mapping peer.

thrawn01 avatar Feb 10 '22 13:02 thrawn01