forked from faasm/faasm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-storage.yml
176 lines (169 loc) · 4.85 KB
/
docker-compose-storage.yml
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
version: "3"
services:
# Storage
redis-state:
image: kubasz51/faasm-redis:${REDIS_VERSION}
ports:
- "6379:6379"
# Storage
minio:
image: kubasz51/faasm-minio:${FAASM_VERSION}
ports:
- "9000:9000"
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio123
extra_hosts:
- "luna-fast:192.168.3.10"
- "saturno-fast:192.168.3.20"
- "kone-fast:192.168.3.30"
volumes:
- ./dev/minio/data:/data/minio
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9000/minio/health/live" ]
interval: 5s
timeout: 3s
retries: 3
# Storage
upload:
image: kubasz51/faasm-upload:${FAASM_VERSION}
ports:
- "8002:8002"
depends_on:
- redis-state
- minio
volumes:
- ./:/usr/local/code/faasm/
- ./dev/faasm/build/:${FAASM_BUILD_MOUNT}
- ./dev/faasm-local/wasm/:/usr/local/faasm/wasm
- ./dev/faasm-local/object/:/usr/local/faasm/object
environment:
- CODEGEN_TARGETS=x86_64:skylake;aarch64:thunderx2t99
- DELTA_SNAPSHOT_ENCODING=pages=64
- LOG_LEVEL=${LOG_LEVEL:-debug}
- PYTHON_CODEGEN=${PYTHON_CODEGEN:-off}
- REDIS_QUEUE_HOST=${COMPUTE_NODE}
- REDIS_STATE_HOST=${STORAGE_NODE}
- LD_LIBRARY_PATH=/build/faasm/third-party/lib:/usr/local/lib
extra_hosts:
- "luna-fast:192.168.3.10"
- "saturno-fast:192.168.3.20"
- "kone-fast:192.168.3.30"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8002/ping" ]
interval: 5s
timeout: 3s
retries: 10
# Storage
worker-storage:
image: kubasz51/faasm-worker:${FAASM_VERSION}
security_opt:
- seccomp:unconfined
# Allows for tracy thread&ctx switch tracking to work better
pid: "host"
ulimits:
nofile:
soft: 1073741824
hard: 1073741824
depends_on:
- upload
ports:
- "8080:8080"
- "5000:5000"
- "8003-8010:8003-8010"
- "8086:8086"
privileged: true
volumes:
- ./:/usr/local/code/faasm/
- /tmp/faasm-monitor:/var/faasm-monitor
- ./dev/faasm/build/:${FAASM_BUILD_MOUNT}
- ./dev/faasm-local/:${FAASM_LOCAL_MOUNT}
- ./dev/container/shared_store/:/usr/local/faasm/shared/
- ./bin/entrypoint_worker.sh:/entrypoint.sh
- /sys/kernel/debug:/sys/kernel/debug
- /sys/kernel/debug/tracing:/sys/kernel/debug/tracing
environment:
- TINI_SUBREAPER=1
- CODEGEN_TARGETS=x86_64:skylake;aarch64:thunderx2t99
- CAPTURE_STDOUT=off
- CGROUP_MODE=off
- DELTA_SNAPSHOT_ENCODING=pages=64
- IS_STORAGE_NODE=1
- GLOBAL_MESSAGE_TIMEOUT=30000
- LOG_LEVEL=${LOG_LEVEL:-debug}
- NETNS_MODE=off
- REDIS_QUEUE_HOST=${COMPUTE_NODE}
- REDIS_STATE_HOST=${STORAGE_NODE}
- SCHEDULER_MONITOR_FILE=/var/faasm-monitor
- STATE_MODE=redis
- LD_LIBRARY_PATH=/build/faasm/third-party/lib:/usr/local/lib
- ENDPOINT_HOST=${STORAGE_NODE}
- ENDPOINT_NUM_THREADS=4
- OVERRIDE_CPU_COUNT=${OVERRIDE_CPU_COUNT:-12}
- VM_ARENA_MODE=${VM_ARENA_MODE:-}
extra_hosts:
- "luna-fast:192.168.3.10"
- "saturno-fast:192.168.3.20"
- "kone-fast:192.168.3.30"
# Both
cpp:
image: ${CPP_CLI_IMAGE}
working_dir: /code/cpp
stdin_open: true
tty: true
depends_on:
- upload
environment:
- UPLOAD_HOST=${STORAGE_NODE}
- INVOKE_HOST=${COMPUTE_NODE}
extra_hosts:
- "luna-fast:192.168.3.10"
- "saturno-fast:192.168.3.20"
- "kone-fast:192.168.3.30"
volumes:
- ./clients/cpp:/code/cpp
# Both
python:
image: ${PYTHON_CLI_IMAGE}
init: true
working_dir: /code/python
stdin_open: true
tty: true
depends_on:
- upload
environment:
- UPLOAD_HOST=${STORAGE_NODE}
- INVOKE_HOST=${COMPUTE_NODE}
extra_hosts:
- "luna-fast:192.168.3.10"
- "saturno-fast:192.168.3.20"
- "kone-fast:192.168.3.30"
volumes:
- ./clients/python:/code/python
# --- Local cluster dev ---
# The following containers are only needed for local cluster dev
# Both
faasm-cli:
image: ${FAASM_CLI_IMAGE}
working_dir: /usr/local/code/faasm
stdin_open: true
tty: true
privileged: true
depends_on:
- worker-storage
environment:
- UPLOAD_HOST=${STORAGE_NODE}
- INVOKE_HOST=${COMPUTE_NODE}
- LOG_LEVEL=${LOG_LEVEL:-debug}
- REDIS_QUEUE_HOST=${COMPUTE_NODE}
- REDIS_STATE_HOST=${STORAGE_NODE}
- LD_LIBRARY_PATH=/build/faasm/third-party/lib:/usr/local/lib
extra_hosts:
- "luna-fast:192.168.3.10"
- "saturno-fast:192.168.3.20"
- "kone-fast:192.168.3.30"
volumes:
- ./:/usr/local/code/faasm/
- ./dev/faasm/build/:/build/faasm/
- ./dev/faasm-local:/usr/local/faasm
- ${CONAN_CACHE_MOUNT_SOURCE:-./dev/faasm/conan/}:/root/.conan