Learning and Operating Presto (for True ePub) by Angelica Lo Duca Vivek Bharathan and Ying Su

Learning and Operating Presto (for True ePub) by Angelica Lo Duca Vivek Bharathan and Ying Su

Author:Angelica Lo Duca, Vivek Bharathan, and Ying Su
Language: eng
Format: epub
Publisher: O'Reilly Media, Inc.
Published: 2023-02-16T00:00:00+00:00


presto-workers.yaml

This configuration file deploys one or many Presto workers as replication controllers. The configuration file for the workers is quite similar because we use the same Docker image to build it:

--- apiVersion: v1 kind: ReplicationController metadata: name: presto-worker spec: replicas: 2 template: metadata: labels: app: presto-worker spec: containers: - name: presto-worker image: prestodb:latest imagePullPolicy: Never resources: requests: memory: "4Gi" limits: memory: "4Gi" ports: - containerPort: 8080

You can change the number of workers by changing the value corresponding to the keyword replicas. In our case, we’ll create two workers.

Similar to the coordinator configuration file, in the worker configuration file, we configure the ConfigMap, except for using a different config.properties:

volumeMounts: - name: config mountPath: "/opt/presto/etc/config.properties" subPath: config.properties volumes: - name: config configMap: name: presto-config - key: "config.properties" path: "config.properties"



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.