Giter Site home page Giter Site logo

Single node event triggering about serf HOT 5 CLOSED

hashicorp avatar hashicorp commented on July 22, 2024
Single node event triggering

from serf.

Comments (5)

mitchellh avatar mitchellh commented on July 22, 2024

This orchestration of who does what is difficult from a Serf core perspective because there is no "ack" functionality yet for events. We've talked about it. I think that is the core thing needed here and I think it would be possible, but it would be dependent on that.

Other than that, there is no way to do this unless you put this "single node" coordination within your event handlers yourself. i.e. "your problem"

Thoughts, @armon?

from serf.

armon avatar armon commented on July 22, 2024

I think the issue is that having only a single node handle it requires a concensus algorithm. The reason is that you can think of the problem as needing to either elect a single leader to perform the action or you are acquiring a global mutex. In either case, we need some stronger consistency to support this. That said, I think this is something we want to support as well! No easy answers, but something we need to look at.

from serf.

zslayton avatar zslayton commented on July 22, 2024

@mitchellh, @armon -- That makes complete sense, thank you for your replies.

from serf.

crshovrd avatar crshovrd commented on July 22, 2024

Since Serf doesn't support distributed locking yet, a work around I have is to use NFS and use the OS to help acquire a lock.

In the event that you need a better distributed locking mechanism, I suggest looking into Zookeeper.

from serf.

armon avatar armon commented on July 22, 2024

Serf's goal is to provide an available and network partition tolerant solution. As such, any features that require strong consistency are out of scope. Instead it makes sense to use Serf along side other tools that can provide strong consistency.

from serf.

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.