-
Notifications
You must be signed in to change notification settings - Fork 0
/
linux-docker-compose.yml
63 lines (63 loc) · 2.06 KB
/
linux-docker-compose.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
services:
# Apache Flink Job Manager
jobmanager:
build:
context: .
dockerfile: linux-Dockerfile
args:
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
AWS_REGION: ${AWS_REGION}
AWS_S3_BUCKET: ${AWS_S3_BUCKET}
AWS_SESSION_TOKEN: ${AWS_SESSION_TOKEN}
ports:
- 8081:8081
- 9092:9092
- 8443:443
- 8501:8501
command: jobmanager
environment:
- |
FLINK_PROPERTIES=
jobmanager.rpc.address: jobmanager
rest.flamegraph.enabled: true
web.backpressure.refresh-interval: 10000
classloader.check-leaked-classloader: false
python.executable: /opt/flink/python_apps/.venv/bin/python
- AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY
- AWS_SESSION_TOKEN=$AWS_SESSION_TOKEN
- AWS_REGION=$AWS_REGION
- AWS_DEFAULT_REGION=$AWS_DEFAULT_REGION
- AWS_S3_BUCKET=${AWS_S3_BUCKET}
# Apache Flink Task Manager
taskmanager:
build:
context: .
dockerfile: linux-Dockerfile
args:
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
AWS_REGION: ${AWS_REGION}
AWS_S3_BUCKET: ${AWS_S3_BUCKET}
depends_on:
- jobmanager
command: taskmanager
scale: 3
environment:
- |
FLINK_PROPERTIES=
jobmanager.rpc.address: jobmanager
taskmanager.numberOfTaskSlots: 2
taskmanager.memory.task.off-heap.size: 256m
taskmanager.memory.process.size: 2048m
taskmanager.memory.network.fraction: 0.2
python.fn-execution.memory.limit: 512mb
classloader.check-leaked-classloader: false
python.executable: /opt/flink/python_apps/.venv/bin/python
- AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY
- AWS_SESSION_TOKEN=$AWS_SESSION_TOKEN
- AWS_REGION=$AWS_REGION
- AWS_DEFAULT_REGION=$AWS_DEFAULT_REGION
- AWS_S3_BUCKET=${AWS_S3_BUCKET}