Giter VIP home page Giter VIP logo

Comments (4)

garlick avatar garlick commented on May 28, 2024

The cmbd issues all overlay bind/connect calls before entering its event loop, however that is insufficient to ensure that messages are not lost.

This note from zmq_connect(3) explains the fundamental issue:

for most transports and socket types the connection is not
performed immediately but as needed by 0MQ. Thus a successful call
to zmq_connect() does not mean that the connection was or could
actually be established. Because of this, for most transports and
socket types the order in which a server socket is bound and a
client socket is connected to it does not matter. The first
exception is when using the inproc:// transport: you must call
zmq_bind() before calling zmq_connect(). The second exception are
ZMQ_PAIR sockets, which do not automatically reconnect to
endpoints.

I think epgm:.// is the the exception alluded to, but for testing with multiple cmbds per node, we are distributing events over ipc://.

One solution is to use the request/reply network to obtain events until the first one arrives on the pub/sub event network. We could sequence events and have a fresh cmbd send a request to its parent for event 0, 1, 2... until it receives an event N on its event overlay, the stop doing that.

from flux-core.

garlick avatar garlick commented on May 28, 2024

Simple solution: make connect synchronous by using zmonitor_t to monitor for ZMQ_EVENT_CONNECTED.

from flux-core.

garlick avatar garlick commented on May 28, 2024

As zmonitor seems unreliable and its API is not stable, ZMQ_EVENT_CONNECTED turns out to not be a very good way to fix this.

from flux-core.

garlick avatar garlick commented on May 28, 2024

Should have been auto-closed when the above was merged.

from flux-core.

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.