After you enable the scenario-based configuration feature, you can use the related template to modify the dynamic settings of a cluster. This topic describes how to modify the dynamic settings of a cluster.

For more information about how to modify the dynamic settings of a cluster, see Use a scenario-based template to modify the configurations of a cluster. The following table describes the related parameters.
Parameter Description
cluster.routing.allocation.balance.index The weight factor for the number of shards per index that are allocated to a specific node. Default value: 0.55f. A large value indicates a high tendency to balance the number of shards per index among all nodes in a cluster. For example, you increase the value to 0.8f for search scenarios. This achieves more even distribution of shards for each index among nodes and improves query performance.
cluster.routing.allocation.balance.shard The weight factor for the total number of shards that are allocated to a node. Default value: 0.45f. A large value indicates a high tendency to balance the number of shards among all nodes in a cluster.
search.max_buckets The maximum number of buckets that are allowed in a single response. This parameter is available in Elasticsearch 6.2 and later. The default value of this parameter is -1, which indicates that the maximum number is not limited. However, if a response contains more than 10,000 buckets, a deprecation alert is logged. In Elasticsearch 7.x, the default value of this parameter is 10000.