# Elasticsearch Machine Learning Architecture and Requirements

**URL:** https://discuss.elastic.co/t/elasticsearch-machine-learning-architecture-and-requirements/379358
**Category:** Elasticsearch
**Tags:** elastic-stack-machine-learning
**Created:** [June 20, 2025, 8:31am UTC](https://discuss.elastic.co/t/elasticsearch-machine-learning-architecture-and-requirements/379358 "2025-06-20T08:31:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Wei\_Li](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wei_li/32/140638_2.png) [@Wei\_Li](https://discuss.elastic.co/u/Wei_Li)
#### Post date: [June 20, 2025, 8:31am UTC](https://discuss.elastic.co/t/elasticsearch-machine-learning-architecture-and-requirements/379358/1 "2025-06-20T08:31:21Z")

</div>

Hi,

I'm looking into integrating machine learning capabilities with Elasticsearch and have a few questions regarding architectural considerations and prerequisites for ML features.

1.Architectural Placement of ML Components:  
How are machine learning components typically integrated into an Elasticsearch architecture? What's a general guideline for the ratio of ML nodes to Elasticsearch data nodes?

2.Prerequisites for Anomaly Detection and Root Cause Analysis:  
What are the necessary prerequisites and configurations for utilizing ML features like anomaly detection and root cause analysis in Elasticsearch?

Are there any official Elastic documentation or best practice guides that address these specific questions?

Thanks.

---

<div class="post-metadata">

### Author: ![marciw-elastic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marciw-elastic/32/143802_2.png) [@marciw-elastic](https://discuss.elastic.co/u/marciw-elastic)
#### Post date: [June 23, 2025, 6:47pm UTC](https://discuss.elastic.co/t/elasticsearch-machine-learning-architecture-and-requirements/379358/2 "2025-06-23T18:47:10Z")

</div>

Hi @Wei_Li, and thanks for exploring Elasticsearch ML features.

I'm sure someone with more expertise will respond soon, but in the meantime, here are some Elastic docs that might be helpful:

Setting up machine learning

> **[Setting up machine learning | Elastic Docs](https://www.elastic.co/docs/explore-analyze/machine-learning/setting-up-machine-learning)**
>
> To use the Elastic Stack machine learning features, you must have: the appropriate subscription level or the free trial period activated, xpack.ml.enabled...

Working with anomaly detection at scale

> **[Working with anomaly detection at scale | Elastic Docs](https://www.elastic.co/docs/explore-analyze/machine-learning/anomaly-detection/anomaly-detection-scale)**
>
> There are many advanced configuration options for anomaly detection jobs, some of them affect the performance or resource usage significantly. This guide...

Anomaly detection how-tos and blog posts

> **[How-tos | Elastic Docs](https://www.elastic.co/docs/explore-analyze/machine-learning/anomaly-detection/anomaly-how-tos)**
>
> Though it is quite simple to analyze your data and provide quick machine learning results, gaining deep insights might require some additional planning...

Machine learning settings in Elasticsearch

> **[Machine learning settings in Elasticsearch | Reference](https://www.elastic.co/docs/reference/elasticsearch/configuration-reference/machine-learning-settings)**
>
> You do not need to configure any settings to use machine learning. It is enabled by default. These settings are for advanced use cases; the default values...

Hope these help as a starting point.
