
introduction to Elastic Cloud Enterprise for IT companies
This comprehensive guide, written by our experienced IT architects at Insitu, takes you step-by-step through the installation and configuration of Elastic Cloud Enterprise (ECE). Whether you're a novice or an expert in managing Elastic environments, this guide details all the steps required to efficiently configure ECE, from initial installation to advanced management of multi-cluster deployments. Discover how to optimize your operations and simplify the complexity of your Elastic environments thanks to the best practices shared by our experts. Follow our step-by-step instructions for a successful implementation and benefit from our expertise to maximize the benefits of Elastic Cloud Enterprise.
Contact us today to find out how we can help you make the most of Elastic Cloud Enterprise.
Why Elastic Cloud Enterprise?
Since its launch, the ElasticSearch stack has continued to grow in popularity and functionality, offering concrete solutions to a multitude of use cases, from log analysis and machine learning to system, network and security observability. However, managing these different use cases often requires the deployment of several distinct clusters to respect the principles of isolation, role separation and data governance.
For infrastructure teams, managing the lifecycle of these clusters-from initial deployment to upgrading, scalability, adding new functionality and decommissioning-can represent a considerable challenge. While managed-service deployment in the cloud is an optimal solution for some companies, it's not for everyone. So what can you do to benefit from the same ease of management as an Elastic-as-a-Service solution, but with on-premise deployment?
That's where Elastic Cloud Enterprise (ECE) comes in, a solution launched by Elastic in 2017. ECE enables enterprises to centralize the management, monitoring, and provisioning of multiple Elastic Suite clusters, while simplifying the deployment of advanced features like X-Pack (security, alerting, monitoring, Graph, reporting, and machine learning). ECE is a flexible solution, agnostic of the underlying infrastructure: it can be deployed on physical servers, in virtual environments, on a private cloud, or in private or public zones of clouds such as Google Cloud, Azure, or AWS.
Architectures in Elastic Cloud Enterprise
ECE's architecture is modular and containerized, separating the control plane from the data plane.
The control plane includes the following management services:
ZooKeeper's role in IT identity and access management
- ZooKeeper is a distributed, highly consistent data store.
- Contains essential information on ECE components: proxy routing tables, memory capacity announced by allocators, modifications validated via the administration console, etc.
- Acts as a message bus for communication between services.
- Communicates with ECE components via STunnel.
- Stores the status of the ECE installation and the status of all ECE deployments.
Director: Data store management and secure communications with ZooKeeper
- Manages the ZK data store and signs CSRs (certificate signing requests) for internal clients wishing to communicate with ZooKeeper.
- Maintains stunnels used by ZooKeeper for communication and establishes quorum when new ZooKeeper nodes are created.
Constructor : Resource planning and IT infrastructure optimization
- Works as a scheduler that monitors requests from the administration console.
- Determines what needs to be changed and writes the changes to the ZooKeeper nodes monitored by the allocators.
- Allocates cluster nodes to allocators.
- Maximizes the use of underlying allocators to reduce the need to spin up additional hardware for new deployments.
- Places cluster nodes and instances in different availability zones to ensure that the deployment can survive a zone-wide outage at any time.
Cloud UI & API: User interface for ECE IT service management
- Provides web and API access for administrators to manage and monitor the ECE installation.
Proxy: Traffic management and high availability in IT environments
- Manages user requests, mapping deployment IDs passed in container request URLs to actual Elasticsearch cluster nodes and other instances. The association of deployment IDs with a container is stored in ZooKeeper, cached by the proxies. If ZooKeeper goes down, the platform can still respond to requests from existing deployments using the cache.
- Keeps track of zone status and availability, if you have a highly available Elasticsearch cluster. If one of the zones fails, the proxy will not route any requests to it.
- Help for scaling and upgrading without downtime. Before performing an upgrade, a snapshot is taken and data is migrated to the new nodes. Once the migration is complete, a proxy switches traffic to the new nodes and disconnects the old ones.
- Several proxies are usually configured behind a load balancer to ensure that the system remains available (the load balancer is not supplied by ECE and must be provisioned by the customer).
Allocator: IT resource allocation and node lifecycle management
- Run on all machines hosting Elasticsearch nodes and Kibana instances.
- Controls the cluster node lifecycle by:
o Creating new containers and starting Elasticsearch nodes on demand
o Restarting a node if it stops responding
o Deleting a node if it is no longer needed
- Announces the memory capacity of the underlying host machine to ZooKeeper so that the builder can make an informed decision on where to deploy.
ECE Deployment Guide: Configuring cloud solutions for enterprises
A ECE deployment requires a number of prerequisites, available here. The size of your deployment and the prerequisites will change according to the use-cases you wish to implement, your data sources, your ingestion frequency and volumetry, but also the budgets you can allocate to the infrastructure.
An adjustment may be necessary for multi-tier implementation of Elasticsearch, the tiers = hot, warm, cold and frozen. And, throughout their lifecycle, data flows through them in this order. It's not necessary to implement all of them; only the warm level is present in most use cases, as it serves as an entry point. The diagram below shows a multi-tier example

To test ECE, we deployed it on AWS in self-managed mode on EC2s. This is equivalent to a private deployment managed by the customer himself. Below is a guide to this installation.
1.Machine preparation: prerequisites and performance optimization for ECE
The machine has been provisioned with two disks. One disk for the OS and a Data disk which will be used to manage ECE's storage needs (tier hot storage).
We've noticed that the more powerful the Data disk and the more powerful the machine profile, the smoother and faster the installation becomes. Please refer to the Elastic documentation for RAM, CPU and disk requirements. Our test was carried out on a single ECE2 machine with 8 vCPU 64GB RAM and 100GB storage with 5000 IOPS.
Adding another machine to expand the cluster and comply with Elastic best practice is always easy and guaranteed, since the solution is scalable by definition.

For the flows required for this installation, we opened the ports shown here on EC2. As our installation is on AWS, the configuration was done at security group level. Don't forget to open port 22 for SSH access.
We also recommend setting up the VM with a static EIP (Elastic IP Address). In this case, even after rebooting or shutting down the Machine, you'll still have the same IP.
2. OS preparation for ECE installation on CentOS
For our test, we deployed on a Centos OS and followed the steps below:
2.1 Install the following OS packages; lvm2, iptables, sysstat and net-tools using the following commands :
sudo dnf install lvm2 iptables sysstat net-tools
2.2 Install Podman
sudo dnf install podman-4.8.* podman-remote-4.8.*
2.3 Install the container package networking-plugins using the following:
sudo dnf -y install containernetworking-plugins
2.4 Toggle towards the CNI stack to Netavark by copying this file /usr/share/containers/containers.conf in thos folder: /etc/containers/ by usgin thos command:
cp /usr/share/containers/containers .conf /etc/containers/
2.5 Open this file: /etc/containers/containers.conf. Reach the network section and set the network_backend to cni.
cat /etc/containers/containers.conf [...]
[network]
network_backend="cni"
[...]
2.6 Reboot the system.
2.7 Deactivate SELinux by adding this parameter to /etc/selinux/config :
SELINUX=désactivé
2.8 Refresh systemd using this command:
sudo systemctl daemon-reload
2.9 Create OS groups
sudo groupadd elastic
sudo groupadd podman
2. 10. Add user elastic to podman group
sudo useradd -g "elastic" -G "podman" elastic
2. 11. Add the following line to /etc/sudoers.d/99-ece-users
elastic ALL=(ALL) NOPASSWD:ALL
2. 12. Add the required options to the kernel boot arguments
sudo /sbin/grubby --update-kernel=ALL --args='cgroup_enable=memory cgroup.memory=nokmem swapaccount=1'
2. 13. Create the following folder
sudo mkdir -p /etc/systemd/system/podman.socket.d
2. 14. Create the file /etc/systemd/system/podman.socket.d/podman.conf with the following contents. Set the correct ownership and authorization. The ListenStream= and ListenStream=/var/run/docker.sock parameters are required!
File contents :
[Socket]
ListenStream=
ListenStream=/var/run/docker.sock
SocketMode=770
SocketUser=elastic
SocketGroup=podman
2. 15. Change file rights and permissions
sudo chown root:root /etc/systemd/system/podman.socket.d/podman.conf
sudo chmod 0644 /etc/systemd/system/podman.socket.d/podman.conf
2. 16. Create the (text) file /usr/bin/docker with the following contents. Check that the regular double quotation marks in the text file are used (code ASCII Hex 22)
#!/bin/bash
podman-remote --url unix:///var/run/docker.sock "$@"
2. 17. Set file permissions /usr/bin/docker
sudo chmod 0755 /usr/bin/docker
2. 18. Add the following two lines to the [storage] section of /etc/containers/storage.conf. Check that these parameters are defined only once. Delete or comment out potentially existing parameters
runroot = "/mnt/data/docker/runroot/"
graphroot = "/mnt/data/docker"
2. 19. Enable podman so that it and running containers start automatically after a reboot.
sudo systemctl enable podman.service
sudo systemctl enable podman-restart.service
2. 20. Activate overlay as the kernel module podman will use
echo "overlay" | sudo tee -a /etc/modules-load.d/overlay.conf
2. 21. For the second disk, which will be used for ECE storage purposes, make sure it is properly partitioned and formatted.
sudo mkfs.xfs /dev/nvme1n1
2.22 Create the folder /mnt/data with the rights to elastic. This folder will be used as the mount point for the Data disk of ECE
sudo install -o elastic -g elastic -d -m 700 /mnt/data
sudo mount /dev/nvme1n1 /mnt/data
2.23. In the /etc/fstab file, add the following line to ensure disk mounting with the correct properties:
/dev/nvme1n1 /mnt/data xfs defaults,nofail,x-systemd.automount,prjquota,pquota 0 2
2.24. Restart local-fs target
sudo systemctl daemon-reload
sudo systemctl restart local-fs.target
2. 25. Ajustez les permissions sur /mnt/data
ls /mnt/data
sudo chown elastic:elastic /mnt/data
2. 26. Create the /mnt/data/docker folder for the docker storage service
sudo install -o elastic -g elastic -d -m 700 /mnt/data/docker
2.27. Disable the firewall service. The service is not compatible with Podman and interferes with ECE installation. You must disable firewall before installing or reinstalling ECE. If firewalld does not exist on your VM, you can skip this step (firewall is disabled on AWS EC2, and managed by security groups).
sudo systemctl disable firewalld
2. 28. Configuring kernel parameters
cat <<EOF | sudo tee -a /etc/sysctl.conf
# Required by Elasticsearch
vm.max_map_count=262144
# enable forwarding so the Docker networking works as expected
net.ipv4.ip_forward=1
# Decrease the maximum number of TCP retransmissions to 5 as recommended for Elasticsearch TCP retransmission timeout.
# See https://www.elastic.co/guide/en/elasticsearch/reference/current/system-config-tcpretries.html
net.ipv4.tcp_retries2=5
# Make sure the host doesn't swap too early
vm.swappiness=1
EOF
2 29. Apply the new parameters
sudo sysctl -p
sudo systemctl restart NetworkManager
2. 30. Add New system limits to /etc/security/limits.conf.
* soft nofile 1024000
* hard nofile 1024000
* soft memlock unlimited
* hard memlock unlimited
elastic soft nofile 1024000
elastic hard nofile 1024000
elastic soft memlock unlimited
elastic hard memlock unlimited
elastic soft nproc unlimited
elastic hard nproc unlimited
root soft nofile 1024000
root hard nofile 1024000
root soft memlock unlimited
2. 31. Restart the Podman service and the entire amchine:
sudo systemctl daemon-reload
sudo systemctl restart podman
sudo reboot
2. 32. After restarting the machine, download the ECE installation script and save it as a file for later deployment.
curl -fsSL https://download.elastic.co/cloud/elastic-cloud-enterprise.sh > ece.sh
Before installing ECE, we recommend that you take a snapshot or template of this machine, which will serve as an image for adding other nodes to your cluster, or as a backup plan if your installation was unsuccessful.
3. Installing Elastic Cloud Enterprise (ECE): Steps and prerequisites
3. 1. Log in with the elastic account
From the ec2-user or root account, press
su elastic
3. 2. To launch the installation, simply run the script you downloaded in step 2.32 (note that the script won't run if you've skipped a phase, or have a missing prerequisite, or if you're running it with sudo or another elastic profile).
Bash ece.sh --availability-zone az1
Depending on the profile of your machine and the storage used, installation will take its time. In our case, it took about 30 minutes.
If installation is successful, the console will display information like this:
-- Verifying Prerequisites --
Checking runner container does not exist... PASSED
Checking host storage root volume path is not root... PASSED
Checking host storage path is accessible... PASSED
Checking host storage path contents matches whitelist... PASSED
Checking Docker version... PASSED
Checking Docker SELinux support... PASSED
Checking Docker file system... PASSED Checking Docker network settings... PASSED - The installation can proceed with ICC enabled; however, we recommend turning ICC off (with the 'icc=false' flag) as a security best practice.
Checking Docker storage driver... PASSED
Checking whether 'setuser' works inside a Docker container... PASSED
Checking memory settings... PASSED
- Option `--memory-settings` not used. Default memory settings might be insufficient for production use!
Checking runner ip connectivity... PASSED
Checking OS IPv4 IP forward setting... PASSED
Checking metadata endpoint protection... PASSED
Checking OS max map count setting... PASSED
Checking OS kernel version... PASSED
Checking minimum required memory... PASSED
Checking OS kernel cgroup.memory... PASSED
Checking OS minimum ephemeral port... PASSED
Checking OS max open file descriptors per process... PASSED
Checking OS max open file descriptors system-wide... PASSED
Checking OS file system and Docker storage driver compatibility... PASSED
Checking OS file system storage driver permissions... PASSED
Checking OS AppArmor status... PASSED
Checking OS SELinux status... PASSED -- Completed Verifying Prerequisites --
- Running Bootstrap container
- Monitoring bootstrap process
- Loaded bootstrap settings {}
- Core service started {}
- Storing default ACLs on [/default_acls] {}
- Starting local runner {}
- Started local runner {} - Waiting for runner container node {}
- Runner container node detected {}
- Waiting for coordinator candidate {}
- Detected coordinator candidate {}
- Detected pending coordinator, promoting coordinator {}
- Coordinator accepted {}
- Storing current platform version: 3.6.2 {}
- Storing Instance Types: [apm,elasticsearch,enterprise_search,integrations_server,kibana] {}
- Storing Elastic Stack versions: [6.8.23,7.17.15,8.11.1] {}
- Creating Admin Console Elasticsearch backend {}
- Applying Admin Console Elasticsearch index templates {}
- Updating dynamic Admin Console settings with Elasticsearch cluster information {}
- Waiting until Admin Console is healthy {}
- Starting reindexing Admin Console data {}
- Creating security cluster {}
- Security cluster was created successfully {}
- Creating Logging and Metrics Cluster {}
- Enabling Kibana for Logging and Metrics Cluster {}
- Updating dynamic Admin Console settings with metrics cluster information {}
- Setting up data pipelines {}
- Shutting down bootstrapper {}
- Exiting bootstrapper {}
- Waiting for bootstrap monitor process to exit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Elastic Cloud Enterprise installation completed successfully
Ready to copy down some important information and keep it safe?
To access the Cloud UI:
http://ip:12400
https://ip:12443
Admin username: admin
Password: token1
Read-only username: readonly
Passwor:dtoken2
Roles tokens for adding hosts to this installation:
Basic token (Don't forget to assign roles to new runners in the Cloud UI after installation.)
Token3
Allocator token (Simply need more capacity to run Elasticsearch clusters and Kibana? Use this token.)
Token4
Emergency token (Lost all of your coordinators? This token will save your installation.)
Token5
To add hosts to this Elastic Cloud Enterprise installation, include the following parameters when you install the software
on additional hosts: --coordinator-host ip --roles-token ‘token6’
These instructions use the basic token, but you can substitute one of the other tokens provided. You can also generate your own tokens. For example:
curl -H 'Content-Type: application/json' -u admin:rRET4zV8yUpqZrpCpgWzguOHFQnqM1TgB8MZ4pSzdVk http://ip:12300/api/v1/platform/configuration/security/enrollment-tokens -d '{ "persistent": true, "roles": [ "allocator"] }'
To learn more about generating tokens, see "Generate Role Tokens" in the documentation.
System secrets have been generated and stored in "/mnt/data/elastic/bootstrap-state/bootstrap-secrets.json".
Keep the information in the bootstrap-secrets.json file secure by removing the file and placing it into secure storage, for example.
3.3 If you wish to add another node to your cluster, to guarantee high availability by deploying on a second AZ or otherwise to guarantee scalability and add a new node with the capacity that will be used by the allocator to provision elastic clusters:
- Use the template you took in phase 2 to create a second VM with the prerequisites already present
- Make sure it's connected to the same security group, so that flows/ports can be opened.
- Then log on with the elastic user and run the following command:
Bash ece.sh install --coordinator-host ip --roles-token ‘token’
Adding this second node to the cluster will take less than 5 minutes.
4. Access to Elastic Cloud Enterprise (ECE): Interface and Deployment Management
The ECE interface looks like this. Use the credentials provided at the end of installation to log in.


Once you've logged in, you'll land on the deployment page, where you can directly manage the deployment of your Elastic clusters. Please note that each ECE installation comes with 3 clusters already deployed:
- Admin console: the console to which we connect to ECE.
- Logging-and-metrics: serves as a collection point for metrics and logs for monitoring all the clusters that will be hosted on ECE.
- Security-cluster: takes care of changing ECE's configuration, ...

Before deploying Elastic, we need to configure our cluster with the public ip address we're using. This will ensure access to Kibana and the ECE interface, even after a reboot.
In the left-hand menu, go to Platform Settings. Then enter your ip public static address in both the URL and CNAME tabs. Note that all ELK clusters created in this ECE will have a url xxxxxxxxxxx.votreip-public-ip.votredomaine. In our case, this will be xxxxxxxx. 15.157.160.141.ip.es.io

Note that this change will be executed by the security-cluster which is deployed by default in ECE

To create a deployment (a new ELK cluster for a defined use-case), click on Create deployment in the Deployments tab.
On this page, you can customize the cluster name, the ELK stack version and the components to be deployed.
Note that everything is configurable according to the ELK cluster architecture you want to deploy. For each type of instance, there are several pre-configured profiles with ratios pre-calculated by elastic to guarantee optimum performance. Choose the profiles that suit you best. And don't forget that the configurations for each instance represent the computational capacities you need to have on your ECE cluster (allocators).

For my example, I chose to create a first deployment with the following config, which you can see in progress

The cluster is created, we can access Kibana, reset elastic's mdp, edit the deployment itself to perhaps add LM nodes, or change the stokcage profile by adding Frozen nodes, or else activate auto-scalability, which in this case will ensure the deployment of new nodes to guarantee the horizontal scalability of our ELK cluster.

You can even order the upgrade of the entire cluster via a button

Each new deployment comes equipped with a number of features that make managing its lifecycle much easier. This is all the more beneficial for large organizations that will have to manage a substantial number of deployments.

This new deployment has the https://2262https//4ee84ee04ac5999a12b6e354f18b.15.157.160.141.ip.es.io:9243 endpoint, which can still be customized in production environments.

Ready to optimize your it infrastructure with Elastic Cloud Entreprise?
At Insitu, we specialize in IT solutions and the management of Elastic Cloud Enterprise (ECE) environments. Our team of experts is ready to help you optimize your IT infrastructure to ensure maximum performance and security.
Contact us today for a free consultation and find out how we can transform your IT management with solutions tailored to your specific needs.
Discover more recent posts

Complete Guide: Installing and Configuring SSL/TLS Certificates on Elasticsearch and Kibana

FAQ – Why is data essential to modern mining management?

How to Install and Configure a Master Node for Your Elastic Cluster?

