Skip to Content
Trino 权威指南:原书第2版
book

Trino 权威指南:原书第2版

by Matt Fuller, Manfred Moser, Martin Traverso
July 2023
Intermediate to advanced
278 pages
5h 40m
Chinese
China Machine Press
Content preview from Trino 权威指南:原书第2版
生产环境部署
|
75
接下来介绍
Trino
服务端的一些基础配置属性。在之后的章节中,当讨论认证、授权和
资源组等特性时,我们将介绍额外的可选属性。
coordinator=true|false
设置
Trino
实例是否作为协调器运行,这样可以接受来自客户端的查询请求并管理
查询的执行。默认值为
true
。如果设置为
false
值,会使服务端程序只作为工作节点
运行。
node-scheduler.include-coordinator=true|false
设置是否可以将调度工作运行在协调器上,默认值为
true
。对于更大的集群,建议
将此属性设置为
false
。在协调器上执行处理工作会影响查询性能,因为服务端的资
源会因此不可用,而无法进行调度、管理和监控查询执行等重要工作。
http-server.http.port=8080
http-server.https.port=8443
指定服务端使用的
HTTP/HTTPS
连接端口。
Trino
使用
HTTP
进行内部和外部通信。
discovery.uri=http://localhost:8080
发现服务的
URI
,相当于协调器并应包含正确的端口。这个
URI
地址可以是协调器
和集群节点网络的本地地址,另外,这个
URI
不能以斜杠结尾。
5.3
日志
可选的
Trino
日志配置文件
etc/log.properties
允许为指定的
Logger
(日志记录器)层级
设置最低日志级别。每个
Logger
都有名称,通常是使用这个
Logger
Java
类的完全
限定名。
Logger
使用
Java ...
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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

What Successful Brick-and-Mortar Retailers Get Right

What Successful Brick-and-Mortar Retailers Get Right

Rob Angell
Three Essentials for Agentic AI Security

Three Essentials for Agentic AI Security

Paolo Dal Cin, Daniel Kendzior, Yusof Seedat, Renato Marinho
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer

Publisher Resources

ISBN: 9787111731603