-
Notifications
You must be signed in to change notification settings - Fork 11
/
presto.yaml
90 lines (89 loc) · 2.38 KB
/
presto.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
apiVersion: v1
kind: Service
metadata:
name: presto-coordinator
spec:
ports:
- name: client
port: 8080
selector:
app: presto-coordinator
---
apiVersion: v1
kind: ReplicationController
metadata:
name: presto-coordinator
spec:
replicas: 1
template:
metadata:
labels:
app: presto-coordinator
spec:
containers:
- name: presto-coordinator
image: thiagodiogo/docker-presto:0.214
imagePullPolicy: Always
env:
- name: CONFIG_CONF_DISCOVERY___SERVER_ENABLED
value: "true"
- name: JVM_CONF_XMS
value: "8G"
- name: JVM_CONF_XMX
value: "12G"
- name: HIVE_CONF_HIVE_METASTORE_URI
value: thrift://hive-metastore.presto:9083
- name: LOG_CONF_COM_FACEBOOK_PRESTO
value: INFO
ports:
- containerPort: 8080
- containerPort: 8889
resources:
requests:
memory: "8Gi"
limits:
memory: "12Gi"
---
apiVersion: v1
kind: ReplicationController
metadata:
name: presto-worker
spec:
replicas: 6 #16
template:
metadata:
labels:
app: presto
spec:
containers:
- name: presto-worker
image: thiagodiogo/docker-presto:0.214
imagePullPolicy: Always
env:
- name: CONFIG_CONF_COORDINATOR
value: "false"
- name: CONFIG_CONF_QUERY_MAX___MEMORY___PER___NODE
value: 35GB
- name: CONFIG_CONF_QUERY_MAX___TOTAL___MEMORY___PER___NODE
value: 35GB
- name: CONFIG_CONF_MEMORY_HEAP___HEADROOM___PER___NODE
value: 4GB
- name: CONFIG_CONF_RESOURCES_RESERVED___SYSTEM___MEMORY
value: 4GB
- name: CONFIG_CONF_DISCOVERY_URI
value: http://presto-coordinator.presto:8080
- name: JVM_CONF_XMS
value: "40G"
- name: JVM_CONF_XMX
value: "50G"
- name: HIVE_CONF_HIVE_METASTORE_URI
value: thrift://hive-metastore.presto:9083
- name: LOG_CONF_COM_FACEBOOK_PRESTO
value: INFO
resources:
requests:
memory: "40Gi"
limits:
memory: "50Gi"
ports:
- containerPort: 8889