Skip to Content
Presto实战
book

Presto实战

by Matt Fuller, Manfred Moser, Martin Traverso
March 2021
Intermediate to advanced
265 pages
6h 50m
Chinese
Posts & Telecom Press
Content preview from Presto实战
生产环境中的
Presto
233
子资源组也必须指定
query_priority
权重调度
schedulingPolicy
设置为
weighted_fair
用于选择启动下一个查询的子资源组。此
策略需要配合
schedulingWeight
属性使用:调度器将基于子资源组的
schedulingWeight
按比例选择查询。
12.8.3
 选择器规则定义
选择器规则
selector
rule
)必须定义
group
属性,此属性决定将查询分配到哪个资源组。
最好将文件中的最后一个选择器设置为只有
group
属性的规则,它将为所有查询显式指定
一个默认组。
可以使用可选属性和正则表达式定义选择器规则。
user
匹配用户名。可以使用正则表达式来匹配多个名称。
source
匹配查询来源,例如
presto-cli
presto-jdbc
。可以使用正则表达式进行匹配。
queryType
匹配查询类型,可选项包括
DATA_DEFINITION
DELETE
DESCRIBE
EXPLAIN
INSERT
SELECT
clientTags
匹配提交查询的客户端指定的客户端标签。
你可以使用
--source
--client-tags
选项在
PrestoCLI
上指定查询来源和客户端标签:
$ presto --user mfuller --source mfuller-cli
$ presto --user mfuller --client-tags adhoc-queries
12.9
 小结
恭喜!你已经和
Presto
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

大数据项目管理:从规划到实现

大数据项目管理:从规划到实现

Ted Malaska, Jonathan Seidman
Google系统架构解密: 构建安全可靠的系统

Google系统架构解密: 构建安全可靠的系统

Heather Adkins, Betsy Beyer, Paul Blankinship, Piotr Lewandowski, Ana Oprea, Adam Stubblefield

Publisher Resources

ISBN: 9787115560056