2019-09-28 07:06:26 +02:00
|
|
|
version: "3.7"
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
coordinator:
|
2019-10-21 05:49:39 +02:00
|
|
|
image: vimagick/prestosql:alpine
|
2019-09-28 07:06:26 +02:00
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
|
|
|
volumes:
|
|
|
|
- /data:/data
|
2019-10-21 05:36:26 +02:00
|
|
|
- prestosql_coordinator_conf:/opt/presto/etc
|
2019-09-28 07:06:26 +02:00
|
|
|
deploy:
|
|
|
|
replicas: 1
|
|
|
|
placement:
|
|
|
|
constraints:
|
|
|
|
- node.role == manager
|
|
|
|
- node.hostname == presto-coordinator
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
|
|
|
|
worker:
|
2019-10-21 05:49:39 +02:00
|
|
|
image: vimagick/prestosql:alpine
|
2019-09-28 07:06:26 +02:00
|
|
|
volumes:
|
|
|
|
- /data:/data
|
2019-10-21 05:36:26 +02:00
|
|
|
- prestosql_worker_conf:/opt/presto/etc
|
2019-09-28 07:06:26 +02:00
|
|
|
deploy:
|
|
|
|
replicas: 0
|
|
|
|
placement:
|
|
|
|
constraints:
|
|
|
|
- node.role == worker
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
depends_on:
|
|
|
|
- coordinator
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
2019-10-21 05:36:26 +02:00
|
|
|
prestosql_coordinator_conf:
|
2019-09-28 07:06:26 +02:00
|
|
|
driver: local
|
|
|
|
driver_opts:
|
|
|
|
type: nfs
|
|
|
|
o: "addr=10.0.0.1,nolock,soft,ro"
|
2019-10-21 05:36:26 +02:00
|
|
|
device: ":/export/prestosql/coordinator"
|
2019-09-28 07:06:26 +02:00
|
|
|
|
2019-10-21 05:36:26 +02:00
|
|
|
prestosql_worker_conf:
|
2019-09-28 07:06:26 +02:00
|
|
|
driver: local
|
|
|
|
driver_opts:
|
|
|
|
type: nfs
|
|
|
|
o: "addr=10.0.0.1,nolock,soft,ro"
|
2019-10-21 05:36:26 +02:00
|
|
|
device: ":/export/prestosql/worker"
|