ml-settings.asciidoc 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. [role="xpack"]
  2. [[ml-settings]]
  3. === Machine Learning Settings in Elasticsearch
  4. ++++
  5. <titleabbrev>Machine Learning Settings</titleabbrev>
  6. ++++
  7. You do not need to configure any settings to use {ml}. It is enabled by default.
  8. [float]
  9. [[general-ml-settings]]
  10. ==== General Machine Learning Settings
  11. `node.ml`::
  12. Set to `true` (default) to identify the node as a _machine learning node_. +
  13. +
  14. If set to `false` in `elasticsearch.yml`, the node cannot run jobs. If set to
  15. `true` but `xpack.ml.enabled` is set to `false`, the `node.ml` setting is
  16. ignored and the node cannot run jobs. If you want to run jobs, there must be at
  17. least one machine learning node in your cluster. +
  18. +
  19. IMPORTANT: On dedicated coordinating nodes or dedicated master nodes, disable
  20. the `node.ml` role.
  21. `xpack.ml.enabled`::
  22. Set to `true` (default) to enable {ml} on the node. +
  23. +
  24. If set to `false` in `elasticsearch.yml`, the {ml} APIs are disabled on the node.
  25. Therefore the node cannot open jobs, start {dfeeds}, or receive transport (internal)
  26. communication requests related to {ml} APIs. It also affects all {kib} instances
  27. that connect to this {es} instance; you do not need to disable {ml} in those
  28. `kibana.yml` files. For more information about disabling {ml} in specific {kib}
  29. instances, see
  30. {kibana-ref}/ml-settings-kb.html[{kib} Machine Learning Settings].
  31. +
  32. IMPORTANT: If you want to use {ml} features in your cluster, you must have
  33. `xpack.ml.enabled` set to `true` on all master-eligible nodes. This is the
  34. default behavior.
  35. `xpack.ml.max_open_jobs`::
  36. The maximum number of jobs that can run on a node. Defaults to `20`.
  37. The maximum number of jobs is also constrained by memory usage, so fewer
  38. jobs than specified by this setting will run on a node if the estimated
  39. memory use of the jobs would be higher than allowed.
  40. `xpack.ml.max_machine_memory_percent`::
  41. The maximum percentage of the machine's memory that {ml} may use for running
  42. analytics processes. (These processes are separate to the {es} JVM.) Defaults to
  43. `30` percent. The limit is based on the total memory of the machine, not current
  44. free memory. Jobs will not be allocated to a node if doing so would cause the
  45. estimated memory use of {ml} jobs to exceed the limit.
  46. `xpack.ml.max_model_memory_limit`::
  47. The maximum `model_memory_limit` property value that can be set for any job on
  48. this node. If you try to create a job with a `model_memory_limit` property value
  49. that is greater than this setting value, an error occurs. Existing jobs are not
  50. affected when you update this setting. For more information about the
  51. `model_memory_limit` property, see <<ml-apilimits>>.
  52. `xpack.ml.node_concurrent_job_allocations`::
  53. The maximum number of jobs that can concurrently be in the `opening` state on
  54. each node. Typically, jobs spend a small amount of time in this state before
  55. they move to `open` state. Jobs that must restore large models when they are
  56. opening spend more time in the `opening` state. Defaults to `2`.