-
Notifications
You must be signed in to change notification settings - Fork 640
[SkyServe] Cache output of sky serve status --endpoint
#2915
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
Comments
This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
@cblmemo just wondering if this is still relevant |
Yes |
Could I try to work on this? |
Sounds great! cc @Michaelvll for a look here |
Perfect. @cblmemo if you could assign this issue to me, I'll get started starting this weekend |
Done |
@cblmemo
|
cc @Michaelvll for a look here |
Currently, every time we run
sky serve status --endpoint
, it will contact the sky serve controller to get the endpoint. It is not friendly for a bash-based script that calls this CLI multiple times, saycurl $(sky serve status --endpoint svc1)/v1/models
. We should have a local database serve as a cache for the service endpoint since it will not change while the service is running.Notice that we still use the remote database on the SkyServe controller as the only source of truth. If we don't find the service endpoint in the local cache, then we contact the SkyServe controller for the endpoint.
The text was updated successfully, but these errors were encountered: