-
Notifications
You must be signed in to change notification settings - Fork 1
/
marathon_test.sh
executable file
·30 lines (17 loc) · 1.13 KB
/
marathon_test.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
#!/bin/bash
source vars.sh
echo "##### Simple job, no containers"
echo "# Submission and execution of the framework (use launch_marathon.sh)"
curl -u $MARPRINCIPAL:$MARSECRET -i -L -H 'Content-Type: application/json' -X POST -d@"marathon_simple.json" $MESOSCLUSTER:$MARATHONPORT/v2/apps
sleep $PAUSETIME
echo "##### Simple job, with containers"
echo "# Submission and execution of the framework"
curl -u $MARPRINCIPAL:$MARSECRET -i -L -H 'Content-Type: application/json' -X POST -d@"marathon_docker_simple.json" $MESOSCLUSTER:$MARATHONPORT/v2/apps
sleep $PAUSETIME
echo "##### Linpack job, with containers"
echo "# Submission and execution of the framework"
curl -u $MARPRINCIPAL:$MARSECRET -i -L -H 'Content-Type: application/json' -X POST -d@"linpack_marathon.json" $MESOSCLUSTER:$MARATHONPORT/v2/apps
echo "# Wait for the first execution to be completed (5 minutes)"
sleep 300
echo "# Add more CPU and memory (Use update_marathon.sh for that)"
curl -u $MARPRINCIPAL:$MARSECRET -i -L -H 'Content-Type: application/json' -X PUT -d@"linpack_marathon_scaled.json" $MESOSCLUSTER:$MARATHONPORT/v2/apps/product/service/linpackmartest?force=true