文档首页/ 云搜索服务 CSS/ 常见问题/ 集群管理/ 参数配置/ Elasticsearch集群如何设置search.max_buckets参数?
更新时间:2024-07-02 GMT+08:00

Elasticsearch集群如何设置search.max_buckets参数?

问题描述

CSS默认聚合操作中允许的最大bucket数量为10000,如果执行聚合操作时需要返回超过10000个bucket,可以通过修改search.max_buckets的值来允许更多的bucket返回。但是需要注意,增加search.max_buckets的值也会增加集群的负载和内存使用,因此需要谨慎使用。

解决方案

在Kibana的“Dev Tools”页面执行如下命令:
PUT _cluster/settings
{
    "persistent": {
        "search.max_buckets": 20000
    }
}