Skip to content

[router] Add /list_workers endpoint to router #6366

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

Merged
merged 1 commit into from
May 17, 2025

Conversation

zhuzilin
Copy link
Collaborator

Motivation

In some use case, we may need to send a certain type of request to all workers, e.g. in RL training, we may send /flush_cache or /abort_request to all workers. It will be great to add a /list_workers endpoint to the router, so that we can control workers through the router.

Modifications

Add a /list_workers endpoint, which will return { "urls": worker_list }.

Thank you for your time on reviewing this PR :)

Checklist

Copy link
Collaborator

@ByronHsu ByronHsu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ByronHsu ByronHsu merged commit e3bed74 into sgl-project:main May 17, 2025
4 checks passed
Layssy pushed a commit to Layssy/sglang-iaas that referenced this pull request Jun 9, 2025
xwu-intel pushed a commit to xwu-intel/sglang that referenced this pull request Jun 17, 2025
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