-
Notifications
You must be signed in to change notification settings - Fork 856
feat(health): extend /health endpoint to include instances (#1312) #2011
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
|
👋 Hi heisenberglit! Thank you for contributing to ai-dynamo/dynamo. Just a reminder: The 🚀 |
WalkthroughThe changes introduce centralized handling of the etcd client within the HTTP service, allowing it to be injected into service state and configuration. A new module for listing service instances from etcd is added, and the health check endpoint now reports discovered instances. Public APIs are updated to support these enhancements. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant HTTP_Service
participant State
participant etcdClient
participant etcd
Client->>HTTP_Service: GET /health
HTTP_Service->>State: etcd_client()
alt etcd_client exists
State->>etcdClient: list_all_instances()
etcdClient->>etcd: get instances with prefix
etcd-->>etcdClient: instance data
etcdClient-->>HTTP_Service: Vec<Instance>
HTTP_Service-->>Client: JSON (status, endpoints, instances)
else no etcd_client
HTTP_Service-->>Client: JSON (status, endpoints, empty instances)
end
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (5)
🧰 Additional context used🧠 Learnings (4)lib/runtime/src/lib.rs (1)lib/llm/src/http/service/health.rs (1)lib/runtime/src/instances.rs (1)lib/llm/src/entrypoint/input/http.rs (2)🧬 Code Graph Analysis (3)lib/runtime/src/lib.rs (1)
lib/llm/src/http/service/health.rs (2)
lib/runtime/src/instances.rs (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
🔇 Additional comments (15)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
|
Thanks @heisenberglit ! |
I missed this in my review of #2011
Overview:
This PR enhances the
/healthendpoint by including a list of currently registered model instances retrieved from etcd.Details:
/healthroute handler to fetch and return model instances using theetcd_clientif available.Statestruct to store an optionaletcd::Client.etcd_clientintoHttpServiceConfigBuilderand passed it through the shared state.etcd_clientis configured.Where should the reviewer start?
src/http/service/health.rs– to review the changes to the/healthendpoint logic.src/http/service/service_v2.rs– to review the integration ofetcd_clientinto theState.runtime/src/instances.rs- to review logic to fetch all instancesRelated Issues:
Summary by CodeRabbit
New Features
Improvements