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实战
228
|
第
12
章
的改进策略。
Presto
调度器会使用队列
50%
的空间来调度本地切片。
当
Presto
安装并放置在
HDFS
数据节点上
,或使用
RubiX
缓存(参见
11.2
节)时,适合
使用
flat
策
略。
RubiX
将分布式存储中的数据缓存在工作节点上,因此,调度本地切片会
提供更好的性能。
12.6
网络数据交换
网络配置和设置以及与数据源的距离也是影响
Presto
集群性能的重要因素。
Presto
支持一
些网络特定的属性,使你可以修改默认值并匹配特定的使用场景。
除了提高性能以外,你有时还需要调优一些其他的网络相关问题,以使你的查询运行良
好。下面将讨论可以调优的一些常见的属性。
12.6.1
并发性
Presto
的数据交换客户端负责请求上游任务产生的数据,它使用的默认线程数是
25
。你可
以通过设定
exchange.client-threads
属性来修改这个值。
使用更多的线程可以提高大规模和高并发配置集群的性能。这是因为在这些集群中,产生
数据的速度更快,提高用于消费数据并发性可以降低时延。记住,更多的线程也会需要更
多的内存。
12.6.2
缓冲区大小
在数据交换时,发送方和接收方会将收发的数据放在缓冲区中。发送方和接收方的缓冲区
大小可以分别配置。
在发送方,任务将产生的数据写入缓冲区并等待下游的数据交换客户端进行请求。默认的
缓冲区大小是
32MB
,这可以通过
sink.max-buffer-size
属性调整。提高这个值可能有助
于提高大规模集群的吞吐量。
在接收方,在下游任务处理数据前,数据先放置在缓冲区中。这个缓冲区的默认大小也是 ...
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