-
Notifications
You must be signed in to change notification settings - Fork 421
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
[RayService][Refactor] Change the ServeConfigs to nested map #2591
[RayService][Refactor] Change the ServeConfigs to nested map #2591
Conversation
cc @rueian would you mind reviewing the PR? |
cacheKey := rayServiceInstance.Namespace + "/" + rayServiceInstance.Name | ||
serveConfigs, exist := r.ServeConfigs.Get(cacheKey) | ||
if !exist { | ||
return "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible that the config is indeed an empty string?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 040d475. Only cache the serveConfig when it is not empty.
@@ -57,7 +57,7 @@ type RayServiceReconciler struct { | |||
Recorder record.EventRecorder | |||
// Currently, the Ray dashboard doesn't cache the Serve deployment config. | |||
// To avoid reapplying the same config repeatedly, cache the config in this map. | |||
ServeConfigs cmap.ConcurrentMap[string, string] | |||
ServeConfigs cmap.ConcurrentMap[string, cmap.ConcurrentMap[string, string]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment to explain the definitions of key and value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in b2cb82a
Closes: ray-project#2550 Signed-off-by: Chi-Sheng Liu <[email protected]>
Closes: ray-project#2550 Signed-off-by: Chi-Sheng Liu <[email protected]>
040d475
to
ca8482b
Compare
Closes: ray-project#2550 Signed-off-by: Chi-Sheng Liu <[email protected]>
ca8482b
to
b2cb82a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: It should be "serve application configs" instead of "serve deployment configs."
Closes: ray-project#2550 Signed-off-by: Chi-Sheng Liu <[email protected]>
Why are these changes needed?
See the description in the corresponding issue for details.
Related issue number
Closes: #2550
Checks