You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was reading the code to understand the lease refresh algorithm and notice this:
// When the cluster goes down, we keep trying to reconnect. But if we're
// far past the end of our key's TTL, there's no way we're going to be
// able to renew it. Fire a "lost".
if (Date.now() - this.lastKeepAlive > 2 * 1000 * this.ttl) {
...
}
Waiting 2 *ttl seem problematic, the process will believe it has the lease a full ttl period after it has certainly lost it. Can this be configurable somehow? Why isn't it just 1 period?
The text was updated successfully, but these errors were encountered:
I was reading the code to understand the lease refresh algorithm and notice this:
Waiting 2 *ttl seem problematic, the process will believe it has the lease a full ttl period after it has certainly lost it. Can this be configurable somehow? Why isn't it just 1 period?
The text was updated successfully, but these errors were encountered: