8.4.3. 过载保护2

配置项 运行时动态设置 默认值 写法例子 说明
cl.sql.parser.auto.add.limit 不可以 true 如果SQL没写limit自动是否自动补limit
cl.sql.parser.auto.add.limit.default.rows 不可以 1024 自动补的limit的大小,用户SQL不写limit,默认限制的返回条数
syskv='sys.forbid.sql.auto.limit:true' 可以 在sql中动态添加该参数,可以显示禁用自动添加limit,注意这里设置false无效
cl.mdrill.max.forbid.limit.rows 不可以 10000000 在sql中能够使用的最大limit的大小,超过改值会被禁用,并报错
cl.mdrill.max.allow.limit.rows 不可以 30000 mdrill模式最多允许的limit大小,offset+rows的和,超过了,就不能翻页,只能走spark了
cl.groupby.combine.max.hashmap.size 可以 5000 mdrill方式能够进行的最大分组数,如果超过此值,则会通过spark进行分组
cl.highpriority.partition 不可以 null 在mdrill模式的检索里 ,按照日期分区分批次返回 配置 如何分区返回 ,以及配置 cl.highpriority.facet.count 控制 数量达到多少即可停止不在继续请求 在facet逻辑里也可以 通常与cl.facet.group.max.count 组合使用,来绝对每个分组统计值 达到多少后就不在继续统计,从而节省计算资源 select s1 from common_example001 where partition like '%' and s1 like '3*' and syskv='cl.facet.fl:s1' and syskv='cl.highpriority.partition:day_1@day_4@day_16@day_64' and syskv='cl.highpriority.facet.count:30000' and syskv='cl.facet.group.max.count:5000' limit 5
Copyright © lucene.xin 2020 all right reserved修改时间: 2021-07-02 11:42:23

results matching ""

    No results matching ""