Use scenario-specific configuration templates to match your business needs. Supported scenarios include general, data analytics, database acceleration, and search. Optimizing cluster and index configurations helps reduce exceptions and performance issues caused by incorrect settings.
Scope
This feature applies only to existing v2 architecture clusters.
Important Notes
Scenario-specific configuration templates vary by instance version and type. Refer to the console for actual configurations. Instances with the Indexing Service enabled support only the log scenario.
Modifying a scenario-specific template is equivalent to running the
PUT _template/aliyun_default_index_templatecommand. This change does not trigger a restart. It does not affect existing indexes or cluster status.The system-recommended index template is named aliyun_default_index_template. It has a low order priority and does not override custom templates.
The system-recommended index lifecycle policy is named aliyun_default_ilm_policy. By default, this policy applies to the aliyun_default_index_template template.
When purchasing a new instance, select a scenario on the purchase page. Commercial Edition instances default to the general scenario. Kernel-enhanced Edition instances default to the log scenario. After purchase, the corresponding template configuration automatically applies to the cluster. If the Scenario is None, you can enable it manually. After enabling, the template does not apply automatically. You must submit the configuration to apply it.
ES instance management versions vary. Scenario-specific configurations in the console may differ across instances. If the console does not display scenario-specific configuration options, use the ES API (
PUT _template/aliyun_default_index_template) to configure them.
Procedure
Log on to the Alibaba Cloud Elasticsearch console.
In the left navigation pane, click Elasticsearch Clusters.
Go to the target instance.
In the top menu bar, select a resource group and region.
On the Elasticsearch Clusters page, click the target instance ID.
In the left navigation pane, click Cluster Configuration.
In the Scenario-based Configuration section, click Modify next to Scenario.

In the Select Scenario dialog box, select a Scenario, and click OK. Modifying the scenario-specific configuration is a dynamic change. No cluster restart is required.
Modify the scenario configuration template.

The scenario configuration template includes three configuration types:
Dynamic cluster configuration: Dynamically modify cluster settings. This is equivalent to running the
PUT /_cluster/settingscommand. For more information, see Cluster update settings.Index template configuration: Define a template that automatically applies when creating a new index. Changing the template does not affect existing indexes. This is equivalent to running the
PUT _template/aliyun_default_index_templatecommand. For more information, see Index templates.Index lifecycle configuration: Instances of version 6.7.0 or later support enabling the index lifecycle template. This is equivalent to running the
PUT _ilm/policy/aliyun_default_ilm_policycommand. For more information, see Setting up a new policy.
The following steps describe modifying the Index Template Configuration. Other configuration types follow the same procedure.
Click Index Template Configuration.
On the Index Template Configuration page, click Apply.

Feature descriptions are as follows:
Apply: Apply the recommended template from the right to the current configuration on the left. Modify the current configuration only after applying the template.
Compare: View differences between the current configuration and the recommended template. This option is available only after modifying the current configuration. You cannot edit the configuration in comparison mode.
Reset: Reset the current configuration to the configuration currently applied to the cluster.
In the Current Configuration section on the left, modify the current template's configuration.
After modifying the configuration, click Compare to see the differences between the modified and recommended template configurations.

Click Cancel.
Click Submit.
After submission, the modified configuration applies to the cluster.