close-ml.asciidoc 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. [testenv="platinum"]
  2. ////////////
  3. Take us out of upgrade mode after running any snippets on this page.
  4. [source,js]
  5. --------------------------------------------------
  6. POST _ml/set_upgrade_mode?enabled=false
  7. --------------------------------------------------
  8. // CONSOLE
  9. // TEARDOWN
  10. ////////////
  11. If your {ml} indices were created earlier than the previous major version, they
  12. must be reindexed. In those circumstances, there must be no machine learning
  13. jobs running during the upgrade.
  14. In all other circumstances, there is no requirement to close your {ml} jobs.
  15. There are, however, advantages to doing so. If you choose to leave your jobs
  16. running during the upgrade, they are affected when you stop the {ml} nodes. The
  17. jobs move to another {ml} node and restore the model states. This scenario has
  18. the least disruption to the active {ml} jobs but incurs the highest load on the
  19. cluster.
  20. To close all {ml} jobs before you upgrade, see
  21. {stack-ov}/stopping-ml.html[Stopping {ml}]. This method persists the model
  22. state at the moment of closure, which means that when you open your jobs after
  23. the upgrade, they use the exact same model. This scenario takes the most time,
  24. however, especially if you have many jobs or jobs with large model states.
  25. To temporarily halt the tasks associated with your {ml} jobs and {dfeeds} and
  26. prevent new jobs from opening, use the <<ml-set-upgrade-mode,set upgrade mode API>>:
  27. [source,js]
  28. --------------------------------------------------
  29. POST _ml/set_upgrade_mode?enabled=true
  30. --------------------------------------------------
  31. // CONSOLE
  32. This method does not persist the absolute latest model state, rather it uses the
  33. last model state that was automatically saved. By halting the tasks, you avoid
  34. incurring the cost of managing active jobs during the upgrade and it's quicker
  35. than stopping {dfeeds} and closing jobs.