-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.sh
executable file
·50 lines (37 loc) · 1.34 KB
/
start.sh
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
#!/bin/bash
cd "$PWD/shell-scripts/"
source config.sh
if [[ "$DOCKER_DEPLOYMENT" = "false" ]]; then
cd "$PROJECT_HOME/shell-scripts"
./standalone.sh start
fi
if [[ "$DOCKER_DEPLOYMENT" = "true" ]]; then
# Comment out the following line if you do not want to rebuild the jar job
cd "$PROJECT_HOME/shell-scripts/" && ./create-jobs.sh
cd "$PROJECT_HOME/docker-app" && sudo ./start.sh
fi
# For testing only
# Comment out the following lines to extract the throughput
# sleep 300
# if [[ "$DOCKER_DEPLOYMENT" = "false" ]]; then
# cd "$PROJECT_HOME/shell-scripts" && ./extract-throughput.sh
# cd "$PROJECT_HOME" && ./stop.sh
# fi
# if [[ "$DOCKER_DEPLOYMENT" = "true" ]]; then
# cd "$PROJECT_HOME"
# sudo docker logs flink-taskmanager-2 > result.txt
# cd "$PROJECT_HOME/shell-scripts" && ./extract-throughput.sh
# cd "$PROJECT_HOME" && ./stop.sh
# fi
# Comment out the following lines to extract the end-to-end latency
# sleep 300
# if [[ "$DOCKER_DEPLOYMENT" = "false" ]]; then
# cd "$PROJECT_HOME/shell-scripts" && ./extract-latency.sh
# cd "$PROJECT_HOME" && ./stop.sh
# fi
# if [[ "$DOCKER_DEPLOYMENT" = "true" ]]; then
# cd "$PROJECT_HOME"
# sudo docker logs flink-taskmanager-2 > result.txt
# cd "$PROJECT_HOME/shell-scripts" && ./extract-latency.sh
# cd "$PROJECT_HOME" && ./stop.sh
# fi