-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstack.yml
More file actions
53 lines (51 loc) · 1.57 KB
/
stack.yml
File metadata and controls
53 lines (51 loc) · 1.57 KB
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
version: 1.0
provider:
name: openfaas
gateway: ${OPENFAAS_URL}
configuration:
templates:
- name: python3-http
functions:
customer-processor-capacity:
lang: python3-http
handler: ./customer-processor
image: ${SERVER:-ttl.sh}/${OWNER:-alexellis}/customer-processor-capacity:${TAG:-latest}
environment:
max_inflight: "1"
ready_path: /ready
exec_timeout: 5m
read_timeout: 5m1s
write_timeout: 5m1s
labels:
com.openfaas.scale.min: "1"
com.openfaas.scale.max: "20"
com.openfaas.scale.target: "1"
com.openfaas.scale.type: capacity
com.openfaas.scale.target-proportion: "0.95"
annotations:
com.openfaas.retry.attempts: "100"
com.openfaas.retry.codes: "429,500,502,503,504,408"
com.openfaas.retry.min_wait: "1s"
com.openfaas.retry.max_wait: "60s"
customer-processor-queue:
lang: python3-http
handler: ./customer-processor
image: ${SERVER:-ttl.sh}/${OWNER:-alexellis}/customer-processor-queue:${TAG:-latest}
environment:
max_inflight: "1"
ready_path: /ready
exec_timeout: 5m
read_timeout: 5m1s
write_timeout: 5m1s
labels:
com.openfaas.scale.min: "1"
com.openfaas.scale.max: "20"
com.openfaas.scale.target: "1"
com.openfaas.scale.type: queue
com.openfaas.scale.mode: queue
com.openfaas.scale.target-proportion: "1"
annotations:
com.openfaas.retry.attempts: "100"
com.openfaas.retry.codes: "429,500,502,503,504,408"
com.openfaas.retry.min_wait: "1s"
com.openfaas.retry.max_wait: "60s"