forked from TheMonocledHamster/Counsel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_counsel.sh
55 lines (46 loc) · 2.09 KB
/
run_counsel.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
51
52
53
54
55
#!/bin/bash
#SBATCH --job-name=loadserver # Job name
#SBATCH --output=counsel.txt
#SBATCH --error=counsel_error.txt
#SBATCH -N 1
#SBATCH -p small
#SBATCH --cpus-per-task=48
# module load your_module_name_here
module load DL/conda-python/3.7
module load openmpi/4.1.4
module load gcc/10.2
module load gnu8/8.3.0
eval "$(conda shell.bash hook)"
conda activate venv
cd /home/aman.gupta/Thesis/Counsel/load-gen/
# run fastapi server
uvicorn loadserver:app --host 0.0.0.0 --port 8000 --log-level warning &
uvicorn loadserver:app --host 0.0.0.0 --port 8001 --log-level warning &
uvicorn loadserver:app --host 0.0.0.0 --port 8002 --log-level warning &
uvicorn loadserver:app --host 0.0.0.0 --port 8003 --log-level warning &
uvicorn loadserver:app --host 0.0.0.0 --port 8004 --log-level warning &
uvicorn loadserver:app --host 0.0.0.0 --port 8005 --log-level warning &
cd /home/aman.gupta/Thesis/Counsel
# Under, Over and Expert Provisioning
python3 traina3c.py -n std -k 0.05 -nw 6 -e 1000 &&
python3 traina3c.py -n op -k 0.015 -nw 6 -e 1000 &&
python3 traina3c.py -n up -k 0.085 -nw 6 -e 1000
# Varying Chain Length and VM Configuration Counts
# python3 traina3c.py -n std-f5-c3 -ncf 5 -ncp 3 -nw 5 -e 1000 &&
# python3 traina3c.py -n std-f10-c3 -ncf 10 -ncp 3 -e 1000 &&
# python3 traina3c.py -n std-f25-c3 -ncf 25 -ncp 3 -e 1000 &&
# python3 traina3c.py -n std-f50-c3 -ncf 50 -ncp 3 -e 1000 &&
# python3 traina3c.py -n std-f100-c3 -ncf 100 -ncp 3 -e 1000
# python3 traina3c.py -n std-f5-c5 -ncf 5 -ncp 5 -e 1000
# python3 traina3c.py -n std-f5-c10 -ncf 5 -ncp 10 -e 1000
# python3 traina3c.py -n std-f5-c20 -ncf 5 -ncp 20 -e 1000
# # hyperparameter evaluation
# python3 traina3c.py -n std01 -c 0.1 -k 0.05 -e 500
# python3 traina3c.py -n std02 -c 0.2 -k 0.05 -e 500
# python3 traina3c.py -n std03 -c 0.3 -k 0.05 -e 500
# python3 traina3c.py -n op01 -c 0.1 -k 0.02 -e 500
# python3 traina3c.py -n op02 -c 0.2 -k 0.02 -e 500
# python3 traina3c.py -n op03 -c 0.3 -k 0.02 -e 500
# python3 traina3c.py -n up01 -c 0.1 -k 0.07 -e 500
# python3 traina3c.py -n up02 -c 0.2 -k 0.07 -e 500
# python3 traina3c.py -n up03 -c 0.3 -k 0.07 -e 500