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实战
66
5
接下来介绍
Presto
服务端的一些基础设置属性。在之后的章节中,当讨论认证、授权和资
源组等特性时,我们将介绍额外的可选属性。
coordinator=true|false
设置
Presto
实例是否作为协调器运行,这样可以接受来自客户端的查询请求并管理查询
执行。默认值为
true
,值设为
false
会使服务端程序作为工作节点运行。
node-scheduler.include-coordinator=true|false
设置是否将调度工作运行于协调器上,默认为
true
。对于更大的集群,我们建议将此
属性设为
false
。在协调器上执行的处理工作会影响查询性能,因为服务端的资源可能
被其占用而无法进行服务调度、管理和监控查询执行等重要工作。
http-server.http.port=8080
http-server.https.port=8443
指定服务端使用的
HTTP/HTTPS
连接端口。
Presto
使用
HTTP
进行内部和外部通信。
query.max-memory=5GB
查询可以使用的分布式内存的最大值,第
12
章会详细介绍。
query.max-memory-per-node=1GB
查询在单个机器上可以使用的用户内存的最大值,第
12
章会详细介绍。
query.max-total-memory-per-node=2GB
查询在任何一台服务器上可以使用的用户内存和系统内存加起来的最大值。系统内存是
在执行过程中由读取器、写入器和网络缓冲等组件所使用的内存,第
12
章会详细介绍。
discovery-server.enabled=true ...
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