Read more
1 The core concept
Component type :
Coordinator:- analysis sql
- Generate query plan
- Manage and schedule
Worker. meanwhile , It can also serve asWorker
Worker- from
ConnectorGet data in , And calculate according to the execution plan
- from

2 Deploy
One Presto The cluster contains at least one Coordinator And a Worker, among Coordinator It can also be used as Coordinator and Worker( It is better not to do this in the production environment )
2.1 Configuration profile
Presto The configuration related directory structure is as follows :
etc/catalog: eachConnectorConfiguration of , You can refer to Connectorsconfig.properties: The core configurationjvm.config:Java Virtual machine related configurationlog.properties: Log related configurationnode.properties: Configuration related to node metadata
1 | etc |
2.2 Deploy Coordinator
Reference resources Deploying Presto
2.2.1 config.properties
coordinator: It has to be fortruenode-scheduler.include-coordinator:trueIt means that we shouldCoordinatorAt the same time asWorker, Single nodePrestoThe cluster or test environment can be configured astruehttp-server.http.port: Monitoringhttpport , For interaction between nodesdiscovery-server.enabled:trueIndicates that the current node is discovered as a serviceserverdiscovery.uri: Service discoveryserverOfuri, In general , useCoordinatorAsserver, therefore ,uriUsually it ishttp://<coordinator_host>:<coordinator_http-server.http.port>
1 | coordinator=true |
2.2.2 jvm.config
Java Virtual machine configuration
1 | -server |
2.2.3 log.properties
It is generally used to configure the log level
1 | =INFO |
2.2.4 node.properties
node.id: Each machine is differentnode.data-dir: Data directory , Including logs and runtime data
1 | node.environment=production |
2.3 Deploy Worker
Reference resources Deploying Presto
2.3.1 config.properties
coordinator: It has to be for falsehttp-server.http.port: Monitoringhttpport , For interaction between nodesdiscovery.uri: Service discoveryserverOfuri, In general , useCoordinatorAsserver, therefore ,uriUsually it ishttp://<coordinator_host>:<coordinator_http-server.http.port>
1 | coordinator=false |
2.3.2 jvm.config
Java Virtual machine configuration
1 | -server |
2.3.3 log.properties
It is generally used to configure the log level
1 | =INFO |
2.3.4 node.properties
node.id: Each machine is differentnode.data-dir: Data directory , Including logs and runtime data
1 | node.environment=production |


![[chromium] win10 vs2019 environment chromium configuration and compilation.](/img/20/428e6b22ed6955a732dd14d5ff0e3d.jpg)




![[C language series] - initial C language (4)](/img/3b/b20d6e0194f2114f8c27a17d58369a.jpg)

![[high concurrency] deeply analyze the callable interface](/img/17/93056547aa1a2b342e1b159b7c41c2.jpg)