GithubHelp home page GithubHelp logo

Question(s) about groupcache HOT 4 CLOSED

mailgun avatar mailgun commented on June 14, 2024
Question(s)

from groupcache.

Comments (4)

thrawn01 avatar thrawn01 commented on June 14, 2024

Groupcache doesn't provided peer discovery or keep track of peer liveliness. You will need something that can do that for you, like kubernetes, etcd, consul, memberlist, such that when a node goes down or becomes unavailable it will notify you and your application can remove that peer from the groupcache peer list. We have used https://github.com/hashicorp/memberlist and etcd in the past with great success. Others have used kubernetes for this, you will have to write that yourself with your project needs in mind.

from groupcache.

 avatar commented on June 14, 2024

Thank you for the tips @thrawn01 . memberlist seems an interesting project and I plan to give it a spin.

I am aware that groupcache doesn't provide peer discovery nor does it keep track of peer liveliness out of the box, however based on the loading process described here, my assumption is that groupcache should tolerate nodes going offline without issues.

When the owner of a cached entry is offline and the entry is not hot on the node requesting it, the requester attempts a RPC call to the owner node, the call fails and the requester will retrieve the data itself. Based on this description, my assumption is that I can safely take groupcache nodes offline without destabilizing the cluster.

Can you confirm this assumption?

from groupcache.

thrawn01 avatar thrawn01 commented on June 14, 2024

Yes, your assumption is correct.

from groupcache.

 avatar commented on June 14, 2024

Thank you @thrawn01 !

from groupcache.

Related Issues (20)

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.