# How to bulid ECE in multiple EC2 instances?

**URL:** <https://discuss.elastic.co/t/how-to-bulid-ece-in-multiple-ec2-instances/83392>\
**Category:** Elastic Cloud Enterprise (ECE)\
**Created:** [April 24, 2017, 9:46am UTC](https://discuss.elastic.co/t/how-to-bulid-ece-in-multiple-ec2-instances/83392 "2017-04-24T09:46:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![weibin.wu](https://avatars.discourse-cdn.com/v4/letter/w/4491bb/32.png) [@weibin.wu](https://discuss.elastic.co/u/weibin.wu)\
**Post date:** [April 24, 2017, 9:46am UTC](https://discuss.elastic.co/t/how-to-bulid-ece-in-multiple-ec2-instances/83392/1 "2017-04-24T09:46:35Z")

</div>

Hi ECE:

I just successfully built ECE in one EC2 node in AWS. I assume we use Docker to separate the EC2 instances in many container and run ES on it? Its like building a VM on a VM. Am I right?

I would like to know how I can build ECE on multiple instances to give more performance to the cluster?

Is there any document regarding this seems I can not find any. Please advice.

---

<div class="post-metadata">

**Author:** ![uricohen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/uricohen/32/9776_2.png) [@uricohen](https://discuss.elastic.co/u/uricohen)\
**Post date:** [April 24, 2017, 10:28am UTC](https://discuss.elastic.co/t/how-to-bulid-ece-in-multiple-ec2-instances/83392/2 "2017-04-24T10:28:53Z")

</div>

Hi @weibin.wu

You're correct assuming that each Elasticsearch node is running in a separate Docker container. To install ECE on additional hosts, please follow the process described in our documentation: [https://www.elastic.co/guide/en/cloud-enterprise/current/ece-installing-elastic.html](https://www.elastic.co/guide/en/cloud-enterprise/current/ece-installing-elastic.html). This page contains a section called "Install on additional hosts" which explains how to add more hosts to an existing ECE installation. Once you add these hosts and assign them the `allocator` role, you will be able to create Elasticsearch nodes on them.

HTH  
Uri

---

<div class="post-metadata">

**Author:** ![weibin.wu](https://avatars.discourse-cdn.com/v4/letter/w/4491bb/32.png) [@weibin.wu](https://discuss.elastic.co/u/weibin.wu)\
**Post date:** [April 24, 2017, 10:33am UTC](https://discuss.elastic.co/t/how-to-bulid-ece-in-multiple-ec2-instances/83392/3 "2017-04-24T10:33:33Z")

</div>

I also use Elastic Cloud which I believe is also built on EC2.

Is Elastic Cloud also using Docker inside the infra? I am concerning building one more layer VM will lose performance of Elasticsearch.

---

<div class="post-metadata">

**Author:** ![uricohen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/uricohen/32/9776_2.png) [@uricohen](https://discuss.elastic.co/u/uricohen)\
**Post date:** [April 24, 2017, 2:58pm UTC](https://discuss.elastic.co/t/how-to-bulid-ece-in-multiple-ec2-instances/83392/4 "2017-04-24T14:58:50Z")

</div>

Hi @weibin.wu

Containerization is very different from virtualization in terms of how it works and how it affects performance. In general, the performance of Docker containers is very close the the performance of non-containerized processes. So that in itself is not expected to significantly impact Elasticsearch's performance.  
You should remember though that ECE does constrain Elasticsearch containers in terms of CPU time, memory capacity, disk capacity and I/O throughput. This helps ECE isolate cluster nodes running on the same host from one another, mitigating the noisy-neighbor effect. A native process is typically not constrained this way, so while it may run faster due to not being constrained, it will also consume more resources from the host OS at the expense of other processes.

HTH  
Uri

---

<div class="post-metadata">

**Author:** ![weibin.wu](https://avatars.discourse-cdn.com/v4/letter/w/4491bb/32.png) [@weibin.wu](https://discuss.elastic.co/u/weibin.wu)\
**Post date:** [April 25, 2017, 4:50am UTC](https://discuss.elastic.co/t/how-to-bulid-ece-in-multiple-ec2-instances/83392/5 "2017-04-25T04:50:08Z")

</div>

excellent explain. thanks

---

<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:** [May 9, 2017, 5:03am UTC](https://discuss.elastic.co/t/how-to-bulid-ece-in-multiple-ec2-instances/83392/6 "2017-05-09T05:03:40Z")

</div>

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