-
Notifications
You must be signed in to change notification settings - Fork 692
chore: envvars for http paths and live health endpoint #1846
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
WalkthroughNew liveness and readiness HTTP health check routers were introduced, each with their own endpoints and handlers. The liveness router returns a static JSON indicating the service is live, while the readiness router reuses the existing health handler. These routers are now registered in the service's route initialization. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant Router
participant ServiceState
Client->>Router: GET /v1/health/live
Router->>ServiceState: (extract state, unused)
Router-->>Client: 200 OK {"status":"live"}
Client->>Router: GET /v1/health/ready
Router->>ServiceState: Check model endpoint availability
Router-->>Client: 200 OK {"status":"ready"} or 503 Service Unavailable
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (2)
🧰 Additional context used🧠 Learnings (2)lib/llm/src/http/service/service_v2.rs (2)lib/llm/src/http/service/health.rs (3)🧬 Code Graph Analysis (2)lib/llm/src/http/service/service_v2.rs (1)
lib/llm/src/http/service/health.rs (2)
⏰ 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). (5)
🔇 Additional comments (5)
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
|
120f10b to
46e7a53
Compare
8cdedfb to
ff285d6
Compare
Signed-off-by: Greg Clark <[email protected]>
Signed-off-by: Greg Clark <[email protected]>
Signed-off-by: Greg Clark <[email protected]>
Signed-off-by: Greg Clark <[email protected]>
ff285d6 to
ff46273
Compare
Overview:
Add
/liveendpointAdd environment variables to set http paths. useful if we need to move health or metrics to conform with existing schemas. move
/healthto/v1/health/readyfor exampleDetails:
Where should the reviewer start?
health.rs
Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)
Summary by CodeRabbit
/v1/health/liveand/v1/health/ready.