Skip to content

feat(rdma): expose native S3 transports as a Rust client library - #436

Draft
GatewayJ wants to merge 1 commit into
rustfs:mainfrom
GatewayJ:feat/rdma-client-sdk
Draft

GatewayJ wants to merge 1 commit into
rustfs:mainfrom
GatewayJ:feat/rdma-client-sdk

Conversation

@GatewayJ

Copy link
Copy Markdown
Member

Motivation

Follow-up to #430 and #432.

The native object transport was private to the rc executable. Rust applications needed the command launcher and its process-wide registration to use the same NIXL or cuObject implementation.

Changes

  • Move the native transport, registered host windows, receipt validation and endpoint capability tracking into rustfs-rdma-client, a library in the existing native workspace.
  • Expose RdmaProvider::new(backend)?.client(alias, mode).await? and the existing S3 object API. Explicit clients use the supplied provider and policy. The CLI installs the same provider through its existing registry. S3 signing, TLS, multipart publication and fallback remain in rc-s3.
  • Make NIXL/UCX and NVIDIA cuObject independently selectable. Document Git and local path integration. The ordinary CLI workspace retains its existing dependencies.
  • Cover backend availability and per-client selection with a separate integration test. Serialize the unit-test scenarios that share the process-wide native registration budget so intentional quarantine in one scenario cannot exhaust another scenario's slots during concurrent execution.

Verification

  • Passed formatting for both workspaces, root workspace Clippy with warnings denied, all root workspace tests, and the RDMA build-script tests.
  • Built the native CLI, ran native tests and doctests, and ran all-targets Clippy with warnings denied for NIXL only, cuObject only, and both together. NIXL exercised real two-agent reads and writes over UCX loopback with stub fallback disabled.
  • Compiled an external Cargo project using only the SDK to call both put_object and get_object. Also resolved and compiled the SDK directly from the GitHub branch as a Git dependency. Checked the linked native libraries and CLI help for each feature combination.
  • cuObject was built and linked with the NVIDIA SDK. Four hardware-only tests across the native workspace were skipped on this host (three provider tests and one deregistration test).

Scope

This change uses the existing host-memory transfer paths and adds no GPU-buffer API. The crate stays in this repository. No release or registry publication is included.

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.

1 participant