Elastic Cloud Enterprise comes with some deployment templates already built in, but you can create new deployment templates to address particular use cases that you might have.
For example: You might decide to create a new deployment template, if you have a specific search use case that requires Elasticsearch data nodes in a specific configuration that also includes machine learning for anomaly detection. If you need to create these deployments fairly frequently, you can create a deployment template once and deploy it as many times as you like. Or, create a single template for both your test and production deployments to ensure they are exactly the same.
Before you start creating your own deployment templates, you should have: tagged your allocators to tell ECE what kind of hardware you have available for Elastic Stack deployments. If the default instance configurations don’t provide what you need, you might also need to create your own instance configurations first.
To create deployment templates in the UI:
- Log into the Cloud UI.
- From the Platform menu, select Templates.
- Click Create template.
Configure Elasticsearch by picking the node configurations that will be available in the template and by assigning their initial resources. You can:
- Adjust the memory or storage assigned to instance configurations using our sliders. Increasing memory or storage also improves performance by increasing the CPU resources that get assigned relative to the size of the instance, meaning that a 32 GB instance gets twice as much CPU resources as a 16 GB one. These resources are just template defaults that can be adjusted further before you create actual deployments.
- Add fault tolerance (high availability) by using more than one availability zones.
- Add Elasticsearch user settings.
Add and configure additional features, such as:
- Dedicated master nodes
- Dedicated ingest nodes
Machine learning nodes
For example: You can could create your template with a large Elasticsearch data node to handle data indexing, include a basic machine learning configuration to allow enabling anomaly detection later on, and then add Kibana to the template to enable data visualization.
To create templates that support a hot-warm architecture, include more than one instance configuration for data nodes by clicking Add data configuration. The option to edit index curation settings becomes available when at least two data configurations are part of the template.
- Click Next.
If you added multiple Elasticsearch data nodes on the previous page, such as
Specify how you want your indices to be curated. New indices get created on hot nodes first and are moved to warm nodes later on. You must:
- Select where new indices get created on hot nodes
- Select where old indices will be moved to on warm nodes
Specify the index patterns that determines what indices are curated. By default, the pattern is
*, which means that all indices get curated. For logging use cases, you could specify to curate only the
filebeat-*index patterns, for example.
- Click Next.
- Configure how Kibana gets included in your template. You can select if Kibana is included at all, what high availability options and sizes are available, and what user settings should always be specified.
- Give your deployment template a name and include a description that reflects its intended use.
- Click Save and create template.
After you have saved your new template, you can start creating new deployments with it.