elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.67k stars 8.23k forks source link

[ML] Trained Model: Fix start deployment with ML autoscaling and 0 active nodes #201256

Open darnautov opened 3 days ago

darnautov commented 3 days ago

Summary

During my testing, I used the current user with all required privileges but failed to notice that, after switching to the internalkibana_system user, it lacked the manage_autoscaling privilege required for the GET /_autoscaling/policy API.

As a result, the isMlAutoscalingEnabled flag, which we rely on in the Start Deployment modal, was always set to false. This caused a bug in scenarios with zero active ML nodes, where falling back to deriving available processors from ML limits was not possible.

You can check the created deployment, it correctly identifies ML autoscaling:

image

Checklist

Check the PR satisfies following conditions.

elasticmachine commented 3 days ago

Pinging @elastic/ml-ui (:ml)

elasticmachine commented 3 days ago

:green_heart: Build Succeeded

Metrics [docs]

✅ unchanged

History

cc @darnautov