Repository navigation
UCP/FT: wireup msgs LANES_ADDR_REQUEST/REPLY and EP recovery state machine - #11545
evgeny-leksikov merged 5 commits into
Conversation
24ff1ed to
486ab2f
Compare
|
CI failure looks relevant |
486ab2f to
11c1b8a
Compare
| } | ||
|
|
||
| now = ucs_get_time(); | ||
| if (now < recovery_arg->next_time) { |
There was a problem hiding this comment.
before next_time, the recovery requeues itself. As ucs_callbackq_add_oneshot allocs and makes it runnable on the next progress, this can spin for the default interval per failed endpoint.
There was a problem hiding this comment.
Reworked using KA progress callback
| ucp_tl_bitmap_t tl_bitmap; | ||
| ucs_status_t status; | ||
|
|
||
| tl_bitmap = ucp_wireup_get_ep_tl_bitmap(ep, provided_lane_map); |
There was a problem hiding this comment.
provided_lane_map is reduced to a TL bitmap, but ucp_address_pack still packs EP addrs for all p2p_lanes on those resources.
Once rebuilding starts returning nonzero maps, this can include unrelated or failed lanes w same resource. The addr pack path needs a lane filter, not only a resource bitmap.
There was a problem hiding this comment.
I don't think so, for example, we may need ud iface addr in addition to rc qp. We can send full address, but reducing by failed resources looks to me reasonable optimisation here
…y logic - Removed the RECOVERY_INTERVAL configuration option from ucp_context_config. - Updated recovery logic to utilize only the RECOVERY_RETRIES parameter. - Simplified the recovery state management in ucp_ep_recovery_progress. - ucp_ep_recovery_progress is managed by common KA engine - Ensured proper memory management for recovery arguments during endpoint destruction.
- Updated comments to use block comment style for clarity. - Adjusted formatting for better readability in the ucp_ep_recovery_arm and ucp_ep_recovery_progress functions.
Complete failed-lane recovery on top of the recovery foundation and the keepalive-driven state machine (openucx#11545): - Rebuild failed p2p/iface lanes: install wireup proxies over failed stubs, recreate the inner UCT endpoints, and drive them to READY so the lane resumes serving traffic. - Wire the LANES_ADDR_REQUEST/REPLY handlers to exchange peer addresses and rebuild the requested lanes, including local failover for asymmetric failures, and free the recovery state once all lanes recover. - Pin a recovered iface lane to its original peer device. - Resolve the remote id on the RMA multi path under UCP_ERR_HANDLING_MODE_FAILOVER. - Add end-to-end fault-tolerance gtests (initiator/target failure incl. the all-lanes-failed case) using the keepalive-driven recovery cadence.
…nucx#11545) Squashed PR-5 (ft-split/05-recovery-protocol) - dependency base for the recovery lane-rebuild commit. Drop once openucx#11545 is merged to master.
Complete failed-lane recovery on top of the recovery foundation and the keepalive-driven state machine (openucx#11545): - Rebuild failed p2p/iface lanes: install wireup proxies over failed stubs, recreate the inner UCT endpoints, and drive them to READY so the lane resumes serving traffic. - Wire the LANES_ADDR_REQUEST/REPLY handlers to exchange peer addresses and rebuild the requested lanes, including local failover for asymmetric failures, and free the recovery state once all lanes recover. - Pin a recovered iface lane to its original peer device. - Resolve the remote id on the RMA multi path under UCP_ERR_HANDLING_MODE_FAILOVER. - Add end-to-end fault-tolerance gtests (initiator/target failure incl. the all-lanes-failed case) using the keepalive-driven recovery cadence.
Complete failed-lane recovery on top of the recovery foundation and the keepalive-driven state machine (openucx#11545): - Rebuild failed p2p/iface lanes: install wireup proxies over failed stubs, recreate the inner UCT endpoints, and drive them to READY so the lane resumes serving traffic. - Wire the LANES_ADDR_REQUEST/REPLY handlers to exchange peer addresses and rebuild the requested lanes, including local failover for asymmetric failures, and free the recovery state once all lanes recover. - Pin a recovered iface lane to its original peer device. - Resolve the remote id on the RMA multi path under UCP_ERR_HANDLING_MODE_FAILOVER. - Add end-to-end fault-tolerance gtests (initiator/target failure incl. the all-lanes-failed case) using the keepalive-driven recovery cadence.
What?
Why?
Part of #11379 upstreaming