forked from faasm/faasm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-compute.yml
136 lines (130 loc) · 3.66 KB
/
docker-compose-compute.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
version: "3"
services:
# Compute
redis-queue:
image: kubasz51/faasm-redis:${REDIS_VERSION}
ports:
- "6379:6379"
# Compute
worker:
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
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/debug_shared_store/
- ./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
- 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
- S3_HOST=${STORAGE_NODE}
- LD_LIBRARY_PATH=/build/faasm/third-party/lib:/usr/local/lib
- ENDPOINT_HOST=${COMPUTE_NODE}
- ENDPOINT_NUM_THREADS=4
- OVERRIDE_CPU_COUNT=${OVERRIDE_CPU_COUNT:-26}
- 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"
# Compute
nginx:
image: nginx:latest
volumes:
- ./deploy/conf/nginx-local.conf:/etc/nginx/nginx.conf:ro
depends_on:
- worker
ports:
- "8081:8080"
# Both
cpp:
image: ${CPP_CLI_IMAGE}
working_dir: /code/cpp
stdin_open: true
tty: true
depends_on:
- worker
environment:
- UPLOAD_HOST=${STORAGE_NODE}
- INVOKE_HOST=${COMPUTE_NODE}
- S3_HOST=${STORAGE_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}
working_dir: /code/python
stdin_open: true
tty: true
depends_on:
- worker
environment:
- UPLOAD_HOST=${STORAGE_NODE}
- INVOKE_HOST=${COMPUTE_NODE}
- S3_HOST=${STORAGE_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
- nginx
environment:
- UPLOAD_HOST=${STORAGE_NODE}
- INVOKE_HOST=${COMPUTE_NODE}
- LOG_LEVEL=${LOG_LEVEL:-debug}
- REDIS_QUEUE_HOST=${COMPUTE_NODE}
- REDIS_STATE_HOST=${STORAGE_NODE}
- S3_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