Skip to content

add background health check to miles native router#260

Merged
zhaochenyang20 merged 9 commits intoradixark:mainfrom
Ratish1:health-router
Jan 5, 2026
Merged

add background health check to miles native router#260
zhaochenyang20 merged 9 commits intoradixark:mainfrom
Ratish1:health-router

Conversation

@Ratish1
Copy link
Contributor

@Ratish1 Ratish1 commented Nov 26, 2025

This PR implements a background health check for the router component, resolving the TODO in miles/router/router.py. A background asyncio task is started on startup that periodically (default 30s) pings all registered workers. Workers that return a non-200 status or fail to connect are removed from the active pool. This ensures that traffic is not routed to unhealthy or dead workers. #259 @fzyzcjy

@Ratish1
Copy link
Contributor Author

Ratish1 commented Nov 29, 2025

@fzyzcjy Does this look good or I need to change my approach?. Thanks.

@Ratish1
Copy link
Contributor Author

Ratish1 commented Dec 2, 2025

A gentle remainder about this @fzyzcjy if you were busy. Thanks

@zhaochenyang20
Copy link
Collaborator

/gemini review

@zhaochenyang20 zhaochenyang20 changed the title add background health check to router add background health check to miles native router Dec 30, 2025
Ratish1 and others added 2 commits December 31, 2025 12:10
Clarified TODO comment regarding re-enabling dead workers and model version synchronization.
Copy link
Collaborator

@zhaochenyang20 zhaochenyang20 left a comment

Choose a reason for hiding this comment

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

All my feadback is resolved. Let me ask Chengxing for a final look.

@zhaochenyang20
Copy link
Collaborator

@yitianlian approved this change

@yueming-yuan
Copy link
Collaborator

lgtm~

@zhaochenyang20
Copy link
Collaborator

@Ratish1 Will merge this PR after the code sync,.

@zhaochenyang20 zhaochenyang20 merged commit 7434e9a into radixark:main Jan 5, 2026
3 checks passed
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