generated from render-examples/temporal
-
Notifications
You must be signed in to change notification settings - Fork 1
/
render.yaml
291 lines (289 loc) · 6.46 KB
/
render.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
databases:
- name: temporal-db
databaseName: temporal
user: temporal
plan: Starter
region: oregon
envVarGroups:
- name: temporal-shared
envVars:
- key: DYNAMIC_CONFIG_FILE_PATH
value: /etc/temporal/dynamicconfig_es.yaml
- key: ENABLE_ES
value: true
- key: ES_VERSION
value: v7
- key: ES_USER
value: elastic
- key: DB
value: postgresql
services:
- type: pserv
name: temporal-elasticsearch
autoDeploy: false
plan: Starter
region: oregon
env: docker
dockerfilePath: ./temporal-cluster/elasticsearch/Dockerfile
envVars:
- key: PORT
value: 9200
- key: ES_JAVA_OPTS
value: "-Xms100m -Xmx100m"
- key: xpack.security.enabled
value: true
- key: ELASTIC_PASSWORD
generateValue: true
- key: cluster.routing.allocation.disk.threshold_enabled
value: true
- key: cluster.routing.allocation.disk.watermark.low
value: 512mb
- key: cluster.routing.allocation.disk.watermark.high
value: 256mb
- key: cluster.routing.allocation.disk.watermark.flood_stage
value: 128mb
- key: discovery.type
value: single-node
- type: pserv
name: temporal-frontend
autoDeploy: false
plan: Starter
region: oregon
env: docker
dockerfilePath: ./temporal-cluster/server/auto-setup/Dockerfile
scaling:
minInstances: 1
maxInstances: 3
targetMemoryPercent: 80
targetCPUPercent: 80
envVars:
- fromGroup: temporal-shared
- key: SERVICES
value: frontend
- key: SKIP_POSTGRES_DB_CREATION
value: true
- key: SKIP_VISIBILITY_DB_SETUP
value: true
- key: ES_SEEDS
fromService:
name: temporal-elasticsearch
type: pserv
property: host
- key: ES_PWD
fromService:
name: temporal-elasticsearch
type: pserv
envVarKey: ELASTIC_PASSWORD
- key: DBNAME
fromDatabase:
name: temporal-db
property: database
- key: DB_PORT
fromDatabase:
name: temporal-db
property: port
- key: POSTGRES_USER
fromDatabase:
name: temporal-db
property: user
- key: POSTGRES_PWD
fromDatabase:
name: temporal-db
property: password
- key: POSTGRES_SEEDS
fromDatabase:
name: temporal-db
property: host
- type: pserv
name: temporal-history
autoDeploy: false
plan: Starter
region: oregon
env: docker
dockerfilePath: ./temporal-cluster/server/Dockerfile
scaling:
minInstances: 1
maxInstances: 3
targetMemoryPercent: 80
targetCPUPercent: 80
envVars:
- fromGroup: temporal-shared
- key: SERVICES
value: history
- key: TEMPORAL_FRONTEND_HOST
fromService:
name: temporal-frontend
type: pserv
property: host
- key: ES_SEEDS
fromService:
name: temporal-elasticsearch
type: pserv
property: host
- key: ES_PWD
fromService:
name: temporal-elasticsearch
type: pserv
envVarKey: ELASTIC_PASSWORD
- key: DBNAME
fromDatabase:
name: temporal-db
property: database
- key: POSTGRES_USER
fromDatabase:
name: temporal-db
property: user
- key: POSTGRES_PWD
fromDatabase:
name: temporal-db
property: password
- key: POSTGRES_SEEDS
fromDatabase:
name: temporal-db
property: host
- type: pserv
name: temporal-matching
autoDeploy: false
plan: Starter
region: oregon
env: docker
dockerfilePath: ./temporal-cluster/server/Dockerfile
scaling:
minInstances: 1
maxInstances: 3
targetMemoryPercent: 80
targetCPUPercent: 80
envVars:
- fromGroup: temporal-shared
- key: SERVICES
value: matching
- key: TEMPORAL_FRONTEND_HOST
fromService:
name: temporal-frontend
type: pserv
property: host
- key: ES_SEEDS
fromService:
name: temporal-elasticsearch
type: pserv
property: host
- key: ES_PWD
fromService:
name: temporal-elasticsearch
type: pserv
envVarKey: ELASTIC_PASSWORD
- key: DBNAME
fromDatabase:
name: temporal-db
property: database
- key: POSTGRES_USER
fromDatabase:
name: temporal-db
property: user
- key: POSTGRES_PWD
fromDatabase:
name: temporal-db
property: password
- key: POSTGRES_SEEDS
fromDatabase:
name: temporal-db
property: host
- type: pserv
autoDeploy: false
name: temporal-worker
plan: Starter
region: oregon
env: docker
dockerfilePath: ./temporal-cluster/server/Dockerfile
scaling:
minInstances: 1
maxInstances: 3
targetMemoryPercent: 80
targetCPUPercent: 80
envVars:
- fromGroup: temporal-shared
# The worker service needs to wait for the history service to be up first,
# otherwise it will fail with "error starting scanner".
- key: DEPENDS_ON_HISTORY
fromService:
name: temporal-history
type: pserv
property: host
- key: SERVICES
value: worker
- key: TEMPORAL_FRONTEND_HOST
fromService:
name: temporal-frontend
type: pserv
property: host
- key: ES_SEEDS
fromService:
name: temporal-elasticsearch
type: pserv
property: host
- key: ES_PWD
fromService:
name: temporal-elasticsearch
type: pserv
envVarKey: ELASTIC_PASSWORD
- key: DBNAME
fromDatabase:
name: temporal-db
property: database
- key: POSTGRES_USER
fromDatabase:
name: temporal-db
property: user
- key: POSTGRES_PWD
fromDatabase:
name: temporal-db
property: password
- key: POSTGRES_SEEDS
fromDatabase:
name: temporal-db
property: host
- type: web
name: temporal-ui
autoDeploy: false
plan: Starter
region: oregon
env: docker
dockerfilePath: ./temporal-cluster/web/Dockerfile
envVars:
- key: PORT
value: 8088
- key: TEMPORAL_PERMIT_WRITE_API
value: true
- key: TEMPORAL_GRPC_HOST
fromService:
name: temporal-frontend
type: pserv
property: host
- type: web
repo: https://github.com/render-examples/sample-temporal-app
name: app-workflow-trigger
plan: Starter
region: oregon
env: go
buildCommand: go build start/main.go
startCommand: ./main
envVars:
- key: TEMPORAL_CLUSTER_HOST
fromService:
name: temporal-frontend
type: pserv
property: host
- type: worker
repo: https://github.com/render-examples/sample-temporal-app
name: app-worker
plan: Starter
region: oregon
env: go
buildCommand: go build worker/main.go
startCommand: ./main
envVars:
- key: TEMPORAL_CLUSTER_HOST
fromService:
name: temporal-frontend
type: pserv
property: host