Coder Social home page Coder Social logo

Comments (9)

richardstone avatar richardstone commented on July 30, 2024 1

@edwarnicke Sure. Meet you there :)

from cmd-forwarder-vpp.

edwarnicke avatar edwarnicke commented on July 30, 2024

@richardstone Thanks for finding this.

@denis-tingaikin @glazychev-art Any ideas?

from cmd-forwarder-vpp.

denis-tingaikin avatar denis-tingaikin commented on July 30, 2024

This is a good catch. We'll consider the FATAL problem within networkservicemesh/sdk#1170

Moreover, we're planning to add advanced healing when two components die. @glazychev-art Could you remind issue number?

from cmd-forwarder-vpp.

edwarnicke avatar edwarnicke commented on July 30, 2024

@richardstone Looking at that logs and the code, this looks like the Forwarder is in the process of starting up and hits:

cmd-forwarder-vpp/main.go

Lines 252 to 254 in 6898aff

if err != nil {
log.FromContext(ctx).Fatalf("failed to connect to registry: %+v", err)
}

Due to not being able to register with the Registry on startup (probably because the NSMgr isn't running yet).

Normally, the Forwarder would restart until the NSMgr is available to be registered with and then everything would converge... did that happen for you?

While we could consider other, potentially more graceful ways of handling this situation, it is the case that things should converge no matter what order the Forwarder, NSMgr, etc start in. If that's not happening, I'm very concerning bug. If convergence isn't happening fast enough, I'm quite open to talking about that as well, but would be curious if you have a notion of how fast you need it to be :)

from cmd-forwarder-vpp.

richardstone avatar richardstone commented on July 30, 2024

@edwarnicke In my case everything started to work just fine, shortly after the unexpected restart of the forwarder.

My concern is not about the time until we reach convergence in these cases, but the unexpected restart of the forwarder when it's unable to reach certain NSM components at the right time.
I'm okay with a bit slower start time for the new instance, so that it can wait - instead of restart - until it's able to reach every component.

from cmd-forwarder-vpp.

edwarnicke avatar edwarnicke commented on July 30, 2024

@richardstone

@edwarnicke In my case everything started to work just fine, shortly after the unexpected restart of the forwarder.

Glad everything started to work just fine :) That's the behavior I would expect.

My concern is not about the time until we reach convergence in these cases, but the unexpected restart of the forwarder when it's unable to reach certain NSM components at the right time. I'm okay with a bit slower start time for the new instance, so that it can wait - instead of restart - until it's able to reach every component.

I tend to think about this in layers:

  1. This is all working as designed... which is not to assert the design is correct :)
  2. The restart only happens if the registry isn't available initially to the Forwarder, if the registry disappears after becoming initially available, the Forwarder should be fine.
  3. Alarming users is not cool, even if things eventually end up being OK, so I'm very open to talking about less alarming ways to do this.

What would make this less alarming to you?

from cmd-forwarder-vpp.

richardstone avatar richardstone commented on July 30, 2024

@edwarnicke

The most alarming thing to me is that the forwarder restarted as soon as it faced a connection loss. If It could wait for a certain timeout (configurable) that would be the best, so if it get's connected to the other components within the specified timeout then everything is fine. In any other case it is free to restart, so the user gets notified about a - probably - bigger issue with the connection.

This should apply to every NSM component in my opinion.

from cmd-forwarder-vpp.

edwarnicke avatar edwarnicke commented on July 30, 2024

@richardstone Any chance you would be in the community meeting today (Tue) at 8am PT to discuss?

from cmd-forwarder-vpp.

denis-tingaikin avatar denis-tingaikin commented on July 30, 2024

Should be fixed with Implement 'retry' registry chain element networkservicemesh/sdk#1201

@richardstone Be free to reopen this issue if it will reproducible!

from cmd-forwarder-vpp.

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.