# Xpack computation

**URL:** <https://discuss.elastic.co/t/xpack-computation/248000>\
**Category:** Elasticsearch\
**Created:** [September 9, 2020, 12:25pm UTC](https://discuss.elastic.co/t/xpack-computation/248000 "2020-09-09T12:25:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![whiletruelearn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/whiletruelearn/32/43331_2.png) [@whiletruelearn](https://discuss.elastic.co/u/whiletruelearn)\
**Post date:** [September 9, 2020, 12:25pm UTC](https://discuss.elastic.co/t/xpack-computation/248000/1 "2020-09-09T12:25:05Z")

</div>

Hi,

I read about the concept of ml nodes for xpack. But since xpack itself is a form of a plugin , i was curious to know where the actual compute is happening?

Is it internally some form of a rest service where data is pulled from elastic datastore and compute happening inside the ml nodes?

---

<div class="post-metadata">

**Author:** ![Emanuil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emanuil/32/36783_2.png) [@Emanuil](https://discuss.elastic.co/u/Emanuil)\
**Post date:** [September 9, 2020, 1:03pm UTC](https://discuss.elastic.co/t/xpack-computation/248000/2 "2020-09-09T13:03:03Z")

</div>

> [@whiletruelearn](#):
>
> But since xpack itself is a form of a plugin , i was curious to know where the actual compute is happening?

It is in the plugins. Each node with the plugin does compute. I think you might like to look at the [github repo of the C++ components](https://github.com/elastic/ml-cpp) and the [Java plugin that uses the C++ core](https://github.com/elastic/elasticsearch/tree/master/x-pack/plugin/ml), it'll take you a while but you can see there how it integrates with the Java architecture.

EDIT: it's kind of general but you can see in [this blog post [Elastic Stack Integration at the bottom]](https://www.elastic.co/blog/introducing-machine-learning-for-the-elastic-stack) that the ML jobs are just Elasticsearch data that gets treated the same way as any other data in ES. So the plugin writes/reads its internal state in ES, and it accesses "target" data for analysis the same way.

> [@whiletruelearn](#):
>
> Is it internally some form of a rest service where data is pulled from elastic datastore and compute happening inside the ml nodes?

Not sure I get what you mean - plugins can access data in Elasticsearch.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 7, 2020, 1:03pm UTC](https://discuss.elastic.co/t/xpack-computation/248000/3 "2020-10-07T13:03:09Z")

</div>

Closed on October 7, 2020, 1:03pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
