-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
[P/D] MultiConnector supports shutdown #24425
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
Conversation
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request adds a shutdown method to the MultiConnector class, which iterates through its underlying connectors and calls shutdown on each. While the intent is correct, the current implementation is not robust against failures. If one of the connectors raises an exception during its shutdown process, the loop will terminate prematurely, leaving subsequent connectors in an un-shutdown state. I've provided a suggestion to improve this by ensuring all connectors are attempted to be shut down, logging any errors, and then raising an exception to signal that the shutdown was not clean.
vllm/distributed/kv_transfer/kv_connector/v1/multi_connector.py
Outdated
Show resolved
Hide resolved
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
|
@njhill PTAL |
aarnphm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tiny comments, otherwise lgtm
vllm/distributed/kv_transfer/kv_connector/v1/multi_connector.py
Outdated
Show resolved
Hide resolved
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
vllm/distributed/kv_transfer/kv_connector/v1/multi_connector.py
Outdated
Show resolved
Hide resolved
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
vllm/distributed/kv_transfer/kv_connector/v1/multi_connector.py
Outdated
Show resolved
Hide resolved
vllm/distributed/kv_transfer/kv_connector/v1/multi_connector.py
Outdated
Show resolved
Hide resolved
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
njhill
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @chaunceyjiang
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com> Signed-off-by: xuebwang-amd <xuebwang@amd.com>
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com> Signed-off-by: xuebwang-amd <xuebwang@amd.com>
Purpose
Part of #22699
MultiConnector calls the shutdown method of each Connector during shutdown.
Test Plan
Test Result