Skip to content

feat: implement instance readiness gate for HTTP service.#58

Merged
JimHsiung merged 1 commit into
jd-opensource:mainfrom
JimHsiung:feat/instance-readiness-gate
Apr 9, 2026
Merged

feat: implement instance readiness gate for HTTP service.#58
JimHsiung merged 1 commit into
jd-opensource:mainfrom
JimHsiung:feat/instance-readiness-gate

Conversation

@JimHsiung
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a 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 introduces a readiness check mechanism for the HTTP server, ensuring it only runs when valid instance groups are available. It adds a new readiness thread in the Master class, a configuration flag for the check interval, and helper methods in the InstanceMgr and Scheduler classes to verify instance availability. The review identified two areas for improvement: the sleep loop in the readiness thread should use std::chrono for better robustness and readability, and the duplicated validation logic for prefill instances in InstanceMgr should be refactored into a private helper function.

Comment thread xllm_service/master.cpp Outdated
Comment thread xllm_service/scheduler/managers/instance_mgr.cpp Outdated
@JimHsiung JimHsiung force-pushed the feat/instance-readiness-gate branch from 9bf4050 to 5a432a3 Compare April 9, 2026 10:33
@JimHsiung
Copy link
Copy Markdown
Collaborator Author

/gemini review

@gemini-code-assist
Copy link
Copy Markdown

Warning

Gemini encountered an error creating the review. You can try again by commenting /gemini review.

@JimHsiung
Copy link
Copy Markdown
Collaborator Author

/gemini review

@gemini-code-assist
Copy link
Copy Markdown

Warning

Gemini encountered an error creating the review. You can try again by commenting /gemini review.

Copy link
Copy Markdown
Collaborator

@yq33victor yq33victor left a comment

Choose a reason for hiding this comment

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

LGTM

@JimHsiung JimHsiung merged commit c8033e0 into jd-opensource:main Apr 9, 2026
1 check passed
@JimHsiung JimHsiung deleted the feat/instance-readiness-gate branch April 9, 2026 10:46
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.

3 participants