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版
84
|
5
通过更新
YAML
配置文件并再次运行
helm
upgrade
命令,可以对集群进行进一步的
更改。
可以看到
Kubernetes
Helm chat
提供了一种非常通用和高效的方法来安装和管理
Trino
集群。
Kubernetes
平台管理了所有底层基础设施,如硬件、网络等。这样使用者就可以
集中精力配置连接数据源的
catalog
和编写
SQL
查询了。
5.11
考虑集群规模
部署
Trino
的一个重要方面是集群的规模。长期来看,你甚至可能会运行多个针对不同
使用场景的集群。调整
Trino
集群的规模是一项复杂的任务,并遵循与其他应用程序一
样的模式和步骤:
1.
基于粗略估计和可用基础设施来决定集群的初始规模;
2.
确保集群的工具和基础设施能够支持集群伸缩;
3.
启动集群并逐步增加使用率;
4.
监控利用率和性能;
5.
根据发现的结果调整集群的规模和配置。
理解
Trino
的架构对于初始规模至关重要。具体来说,
Trino
不是一个典型的横向扩展应
用程序,它依赖于集群中的许多小型无状态服务节点。
Trino
协调器和工作节点是整个
查询处理架构的有状态部分。大量数据从数据源传输到工作节点,然后在工作节点之间
传输,最后传输给协调器。这些传输和相关的数据处理在所有工作节点上并行执行,也
在每个节点的
JVM
中的许多线程中并行执行。
由于以上这些要求,典型节点的初始推荐大小要比无状态架构的大得多。节点通常具
16
vCPUs
64 GiB
内存或更多。与许多较小的节点相比,具有较少数量的高性
能节点通常是更好的。通常的生产部署应该从至少 ...
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