Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix LDMS/LDMSD passive/bridge support #1293

Merged
merged 4 commits into from
Oct 17, 2023

Conversation

nichamon
Copy link
Collaborator

No description provided.

ldms_xprt_event_cb_set() allows applications to set the event callback
handler. This is useful especially for the passive endpoints, which LDMS
automatically sets the event_cb pointer to the same function pointer
passed to ldms_xprt_listen().

LDMSD uses this function in the PASSIVE producer path.
The rail patch did not refactor ldms_xprt_by_remote_sin() to return the
rail handle to application. The patch corrects this.
Without the patch, ldms_xprt_rail_new() always creates the initial
ldms_xprt endpoint. However, it is unnecessary when handling a
connection request. This also results in that ldms_xprt leaks endpoints
when the peer disconnects.

The patch also fixes the dangling endpoint problem.
@nichamon nichamon changed the title Make LDMS/LDMSD to support passive/bridge connection with rails Fix LDMS/LDMSD passive/bridge support Oct 13, 2023
@nichamon
Copy link
Collaborator Author

nichamon commented Oct 13, 2023

The patch has been tested against ovis-hpc/ldms-test#60. I also manually tested the disconnection scenario.

The patch fixes the passive code path in LDMS and LDMSD, and add the
bridge_add, bridge_del, bridge_start, bridge_stop commands in
ldmsd_controller and configuration files. The commands are a wrapper of
the corresponding producer config commands.

Under the hood, LDMSD treats bridges as another producer type. It does
not have the bridge config objects.
@tom95858 tom95858 merged commit c6352dc into ovis-hpc:OVIS-4 Oct 17, 2023
@nichamon nichamon deleted the fix-passive-mode branch January 5, 2024 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants