Skip to Content
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
Explore Skills
Cloud Computing
Microsoft Azure
Amazon Web Services (AWS)
Google Cloud
Cloud Migration
Cloud Deployment
Cloud Platforms
Data Engineering
Data Warehouse
SQL
Apache Spark
Microsoft SQL Server
MySQL
Kafka
Data Lake
Streaming & Messaging
NoSQL Databases
Relational Databases
Data Science
Pandas
R
MATLAB
SAS
D3
Power BI
Tableau
Statistics
Exploratory Data Analysis
Data Visualization
AI & ML
Generative AI
Machine Learning
Artificial Intelligence (AI)
Deep Learning
Reinforcement Learning
Natural Language Processing
TensorFlow
Scikit-Learn
Hyperparameter Tuning
MLOps
Programming Languages
Java
JavaScript
Spring
Python
Go
C#
C++
C
Swift
Rust
Functional Programming
Software Architecture
Object-Oriented
Distributed Systems
Domain-Driven Design
Architectural Patterns
IT/Ops
Kubernetes
Docker
GitHub
Terraform
Continuous Delivery
Continuous Integration
Database Administration
Computer Networking
Operating Systems
IT Certifications
Security
Network Security
Application Security
Incident Response
Zero Trust Model
Disaster Recovery
Penetration Testing / Ethical Hacking
Governance
Malware
Security Architecture
Security Engineering
Security Certifications
Design
Web Design
Graphic Design
Interaction Design
Film & Video
User Experience (UX)
Design Process
Design Tools
Business
Agile
Project Management
Product Management
Marketing
Human Resources
Finance
Team Management
Business Strategy
Digital Transformation
Organizational Leadership
Soft Skills
Professional Communication
Emotional Intelligence
Presentation Skills
Innovation
Critical Thinking
Public Speaking
Collaboration
Personal Productivity
Confidence / Motivation
Features
All features
Verifiable skills
AI Academy
Courses
Certifications
Interactive learning
Live events
Superstreams
Answers
Insights reporting
Radar Blog
Buy Courses
Plans
Sign In
Try Now
O'Reilly Platform
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
|
227
借助
task.max-worker-threads
属性来增加线程数,以此提高
CPU
利用率和性能。建议
尝试慢慢增加这个值,因为将其设置得过高会带来更高的内存使用和额外的上下文切换
成本,这反而会带来负面效果。
任务的算子并发数
Join
和
Aggregation
之类的算子通过本地数据分区和并行执行算子来实现并行处理。例
如,数据先在本地根据
GROUP BY
的列进行分区,之后多个
Aggregation
算子会并行地进
行处理。这些并行操作的默认并发数是
16
,你可以通过设定
task.concurrency
属性来
调整它。如果你运行很多并发的查询,上下文切换的成本可能会导致性能下降。对于只
运行少量并发查询的集群,更高的并发数可以提高并行度并因此提高性能。
12.5
工作节点调度
你可以通过调整某些调度相关属性的默认值来提高
Presto
集群的性能。通常有
3
个常见的
配置可以调整:
•
每个任务的切片数;
•
每个节点的切片数;
•
本地调度策略。
Presto
文档还介绍了许多其他相关属性。
12.5.1
根据任务或节点调度切片
每个工作节点能处理的切片数量有上限,默认情况下其最大值是
100
。你可以通过
node-
scheduler.max-splits-per-node
属性调整这个值。当发现工作节点上的切片数已经达到此
限制但仍没有充分利用资源时,你可以考虑调整这个值。提高该值通常会提高性能,特别
是存在很多切片的情况下。此外,你还可以提高
node-scheduler.max-pending-splits-per- ...
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
数据库系统内幕
Alex Petrov
云原生:运用容器、函数计算和数据构建下一代应用
Boris Scholl, Trent Swanson, Peter Jausovec
Google系统架构解密: 构建安全可靠的系统
Heather Adkins, Betsy Beyer, Paul Blankinship, Piotr Lewandowski, Ana Oprea, Adam Stubblefield
Publisher Resources
ISBN: 9787115560056