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版
生产环境中的
Trino
|
249
的工程改良,
GC
停顿应该很少发生。如果真的发生了,就应该仔细检查原因。修复此
类问题的第一步通常是升级
JVM
Trino
的版本,因为二者经常更新性能。
JVM
和垃圾回收算法及其配置都是复杂话题。你可以从
Oracle
或其他
JVM
供应商那里获得
GC
调优的文档。我们强烈建议在将这些设置部署到生产环
境前,先在测试环境内微调它们。同时请注意,
Trino
现在要求使用
Java 17
版本,较新或较老的
JVM
版本以及其他供应商提供的
JVM
都可能表现出不
同的行为。
12.8
资源组
资源组是
Trino
中用于限制系统资源使用的一个非常有用的概念。资源组的配置包含两
个方面:资源组属性和选择器规则。
资源组是一系列定义可用集群资源的命名属性,你可以认为一个资源组是集群中与其他
资源组隔离的一部分资源。资源组由
CPU
和内存限制、并发数限制、队列优先级和队
列中查询的优先级权重等共同定义。
选择器规则允许
Trino
将接收到的查询请求分配到特定的资源组。
默认的资源组管理器使用基于文件的配置并通过
etc/resource-groups.properties
文件指定
类型和配置文件路径:
resource-groups.configuration-manager=file
resource-groups.config-file=etc/resource-groups.json
如你所见,真正的配置是一个
JSON
格式的文件。此文件的内容定义了资源组和选择器
规则。注意这个
JSON
文件可以放在
Trino
能访问的任何路径上 ...
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