[RayService][Refactor] Change the data structure of ServeConfigs
to avoid iterating the whole map
#2550
Labels
ServeConfigs
to avoid iterating the whole map
#2550
Search before asking
Description
kuberay/ray-operator/controllers/ray/rayservice_controller.go
Lines 517 to 535 in f3353b2
Currently, the key of
ServeConfigs
is${RAY_SERVICE_NAMESPACE}/${RAY_SERVICE_NAME}/${RAY_CLUSTER_NAME}
. Hence,cleanUpServeConfigCache
needs to iterate the whole map to find the keys which belong to this RayService CR.Maybe we can change the key to
${RAY_SERVICE_NAMESPACE}/${RAY_SERVICE_NAME}/
, and the value to a map where the key is${RAY_CLUSTER_NAME}
and the value isServeConfigV2
.Use case
No response
Related issues
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: