ml-commons
ml-commons copied to clipboard
[BUG] Models are not auto-redeployed when all the nodes starts at the same time
What is the bug? During disaster recovery, all the nodes go down and need to restart. After all the nodes starts and join the cluster, models are failed to be auto-redeployed
How can one reproduce the bug? Steps to reproduce the behavior:
- Stop all the nodes
- Start all the nodes at the same time
- All the models that were deployed are not able to be redeployed
What is the expected behavior? Models should re re-deploy
Root cause Model auto-deployment is triggered when nodes join the cluster but during that time the model index are not available to be queried
Proposal Instead of query the models from model index immediately, we can wait for the model config health turn to yellow
What is your host/environment?
- OS: Linux
- Version [e.g. 22]
- Plugins
Do you have any screenshots? If applicable, add screenshots to help explain your problem.
Do you have any additional context? Add any other context about the problem.
@khoaisohd Is the error ClusterBlockException? Also, deploying the model automatically can be complicated in this case(cluster status not ready and query runs), this is an issue to solve this case: https://github.com/opensearch-project/ml-commons/issues/1148(deploy model automatically when inferencing), please take a look on this issue and comment if you have more concern.