After you create an Alibaba Cloud Elasticsearch instance, you need to configure the instance to improve the efficiency of searches and enhance the security and stability of your services.

Enable auto indexing

Notice
  • The auto indexing feature is used for testing purposes. We recommend that you do not enable auto indexing in a production environment.
  • Before you upload a document to the created Elastisearch instance, you must manually create indexes and mappings for the document. For example, if you delete the mappings for a document on the instance while uploading another document without mappings to the instance, the auto indexing feature of Elasticsearch will automatically creates mappings for both documents. The automatically created mappings may not meet your requirements and incur errors. To avoid mapping errors, auto indexing is disabled for Alibaba Cloud Elasticsearch by default. Make sure that you have created indexes and mappings before you import data to Elasticsearch.
  • The system must restart the instance to enable auto indexing. After you enable this feature, select the confirmation check box to confirm the operation.

If you are strongly reliant on auto indexing, follow these steps to enable this feature.

  1. Log on to the Alibaba Cloud Elasticsearch console, click the instance ID or name of your Elasticsearch instance in the Instance ID/Name column.
  2. On the Manage Instances page, choose Cluster Configuration in the left-side navigation pane.
  3. On the Cluster Configuration page, click Modify Configuration on the right side of YML Configuration.
  4. In the YML Configuration dialog box, set Auto Indexing to Enable.
  5. Select the This operation will restart the instance. Continue? check box, and then click OK.Enable auto indexing
    After you click OK, the Elasticsearch instance is restarted. After the instance is restarted, auto indexing is enabled for the instance.

Plug-in settings

You can configure the plug-in settings of Elasticsearch to install or remove built-in plug-ins, use the standard or rolling update method to update the IK analyzer plug-in, and upload custom plug-ins. For more information about built-in and custom plug-ins, see Configure built-in plug-ins and Configure custom plug-ins.

Security settings

You can configure the security settings of Elasticsearch to reset the password of your Elasticsearch instance, configure the VPC whitelist, enable public network access, configure the public network whitelist, and enable HTTPS.

  1. Log on to the Alibaba Cloud Elasticsearch console, click the instance ID or name of your Elasticsearch instance in the Instance ID/Name column.
  2. On the Manage Instances page, choose Security in the left-side navigation pane.
  3. On the Network Settings page, configure the relevant security settings. For more information, see Security.

Monitoring and alerting settings

Alibaba Cloud Elasticsearch allows you to monitor the following metrics of Elasticsearch instances and send alerts through SMS messages. You can customize the alert thresholds for the following metrics. For more information, see Configure Elasticsearch alerts in CloudMonitor.
  • Cluster status.
  • Cluster Index Queries (QPS)
  • Cluster Write Queries (QPS)
  • Node CPU Usage (%)
  • Node Disk Space Usage (%)
  • Node Heap Memory Usage (%)
  • Node Workload Within One Minute