Giter VIP home page Giter VIP logo

Comments (3)

connor4312 avatar connor4312 commented on August 26, 2024

Sorry for the delayed response, on the initial read I read it that lost was fired twice.

It's fired immediately after twice the TTL because that's the time when we consider it 'gone forever'. Without this, we would only notify the caller that the lease is lost if the server tells us it is in response to a heartbeat. But if the server is down entirely, this might not ever end up happening, so eventually we'll bail out and tell the consumer that their lease probably is no longer valid.

from etcd3.

zyf0330 avatar zyf0330 commented on August 26, 2024

You misunderstood me. The key to my opinion is the word twice. I think that time setting to TTL+3s is enough, twice TTL is too long. Do you think?

from etcd3.

connor4312 avatar connor4312 commented on August 26, 2024

Oh. Maybe. TTL should be chosen by consumers based on network latency and load factors. In extreme cases this may naturally be multiple seconds. I think that basing the "give up" trigger based off of the TTL they chose is reasonable. In normal operations that's a code path which is never hit, I'd prefer to be conservative about when we choose to go that way.

from etcd3.

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.