Service limits
To ensure reliable operation, Alibaba Cloud Elasticsearch Serverless (ES Serverless) enforces resource and usage limits on each application. If a task fails due to an insufficient quota or a service limit, you can request to increase the application's quotas or limits.
Service limits
Service limits are system-level restrictions on the ES Serverless platform. They apply to an application's indexes, shards, data, and read and write requests. If a request exceeds a limit, ES Serverless rejects it or applies circuit breaking to the application.
-
The service limits listed below are the default values for new applications. For existing applications, the values displayed in the console take precedence.
-
You can request an increase to the service limits. For more information, see Modify quotas and service limits.
-
For explanations of the basic concepts mentioned in this topic, see Basic concepts.
|
Parameter |
Description |
Default value |
|
index.mapping.depth.limit |
The maximum nesting depth for a JSON object. |
[1 - 20] |
|
index.mapping.field_name_length.limit |
The maximum length of a field name. |
[1 - 100] |
|
index.mapping.total_fields.limit |
The maximum number of fields in a single index. |
[1 - 1000] |
|
index.max_adjacency_matrix_filters |
The maximum number of filters in an adjacency matrix aggregation within a single index. |
[0 - 100] |
|
index.max_docvalue_fields_search |
The maximum number of |
[1 - 100] |
|
index.max_inner_result_window |
The maximum number of results for inner hits. |
[1 - 100] |
|
index.max_ngram_diff |
The maximum difference between |
[0 - 1] |
|
index.max_refresh_listeners |
The maximum number of concurrent requests waiting for a refresh. |
[0 - 20] |
|
index.max_regex_length |
The maximum length of a regular expression. |
[0 - 50] |
|
index.max_rescore_window |
The maximum number of results for rescoring. |
[1 - 10000] |
|
index.max_result_window |
The maximum number of results for a query. |
[1 - 10000] |
|
index.max_script_fields |
The maximum number of |
[1 - 32] |
|
index.max_shingle_diff |
The maximum difference between |
[0 - 3] |
|
index.max_terms_count |
The maximum number of terms in a single query. |
[0 - 1024] |
|
index_quota |
The maximum total number of indexes. |
500 |
|
max_cu_per_search |
The maximum CU consumption for a single query. |
600 |
|
max_cu_per_shard |
The maximum CU consumption per shard for a single query. |
10 |
|
max_doc_size |
The maximum size of a single document (MB). |
1 |
|
max_index_metadata_update_qps |
The maximum rate of index metadata updates (requests per 30 seconds). |
1000 |
|
max_pipeline_num |
The maximum number of ingest pipelines. |
100 |
|
max_prefix_length |
The maximum length of the prefix string in a prefix query. |
[0 - 50] |
|
max_refresh_qps |
The maximum refresh rate (requests per second). |
5 |
|
max_size_per_request |
The maximum size of a single request (MB). |
30 |
|
max_storage_per_cu |
The maximum storage-to-CU ratio. A higher ratio can degrade query and write performance. Adjust this value with caution. |
1600 |
|
max_timeout |
The maximum timeout duration (seconds). |
300 |
|
max_timeout_per_request |
The maximum execution time for a single query (seconds). |
300 |
|
max_wildcard_length |
The maximum length of the string in a wildcard query. |
[0 - 50] |
|
max_write_size_per_request |
The maximum size of a single write request (MB). |
5 |
|
search.max_buckets |
The maximum number of buckets for a single aggregation. |
10000 |
|
search.max_keep_alive |
The maximum keep-alive time for a search context (seconds). |
900 |
Vector usage limits
Elasticsearch Serverless does not limit the number of vectors. The index.apack.metadata.index_dense_vector_value_count_limit setting is an internal reserved parameter. It cannot be modified and does not specify a vector limit for an index or shard.
Elasticsearch Serverless imposes the following resource limits on vector data:
|
Limit |
Default value |
|
Memory usage of vector data |
2 GB |
|
Application storage capacity |
100 GB |
Ngram tokenizer and index.max_ngram_diff
The ngram tokenizer splits text into tokens of a specified length by using a sliding window. If the difference between min_gram and max_gram exceeds the default value of 1 for index.max_ngram_diff, index creation fails and returns the following error: The difference between max_gram and min_gram in NGram Tokenizer must be less than or equal to: [1] but was [N].
To use a larger difference, explicitly set the index.max_ngram_diff parameter in the index settings:
PUT /test_index
{
"settings": {
"index.max_ngram_diff": 31,
"analysis": {
"analyzer": {
"my_ngram_analyzer": {
"tokenizer": "my_ngram_tokenizer"
}
},
"tokenizer": {
"my_ngram_tokenizer": {
"type": "ngram",
"min_gram": 1,
"max_gram": 32
}
}
}
}
}
A large max_ngram_diff value can rapidly increase the size of the inverted index, severely impacting performance and storage. Set this value carefully based on your business needs.
Modifying application quotas and service limits
-
Log on to the Elasticsearch Serverless console.
-
In the top navigation bar, select the region of your application.
-
In the navigation pane on the left, click Application Management.
-
In the application list, click the name of the target application.
-
In the left-side navigation pane, choose .
-
Request to modify the service limits.
-
On the Quota Overview tab, click Modify Quota.
-
For the limit you want to change, click the
icon in the Current Value column. In the dialog box, enter the new value and click OK. -
After making your changes, click Submit Changes at the top of the page.
NoteRequests to modify service limits require manual approval, which is typically completed within one business day. If your request is urgent, you can submit a ticket or join the Elasticsearch Serverless user group on DingTalk (Group ID: 11205017670 or 72335013004) for assistance.
-
-
(Optional) Click the Request History tab to view your request history, status, and effective values.
-
In the Status column, check the status of your request.
-
In the Application Item column, click Application Item to view the historical, requested, and effective values.
Note-
The effective value may differ from your requested value. Always check the effective value after your request is approved.
-
A request may be rejected if the value is considered unreasonable or could negatively impact service stability. If your request is rejected, we recommend trying an alternative solution or submitting a ticket for assistance.
-
-
If you need to change your request before it is approved, you can click Revoke in the Actions column and then submit a new request.
NoteYou cannot submit another request to modify an application's quota or service limits until the current request is complete.
-
Basic concepts
|
Concept |
Description |
|
application |
An application is the basic unit in ES Serverless for resource isolation and access control. Each application has a unique endpoint, username, and password, letting you manage and store data separately for different services or projects. |
|
index |
An index is a collection of documents with a similar structure. It acts as a logical namespace that points to one or more shards and is used to separate different data sets within the same service. |
|
document |
A document is the smallest unit of information in Elasticsearch that can be indexed and searched. |
|
shard |
In a distributed search environment, Elasticsearch stores a complete index across multiple shards. |
|
replica |
Both primary shards and replica shards can handle query requests, but only primary shards can handle indexing requests. Replicas provide fault tolerance if a primary shard fails and can also increase query throughput. |