-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
28 lines (24 loc) · 1.05 KB
/
Makefile
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
.PHONY: setup mongo benchmark clean
setup:
ssh-keygen -f deployments/benchmarking_client/clientkey -P "" -q
ssh-keygen -f deployments/1Shards/clientkey -P "" -q
ssh-keygen -f deployments/2Shards/clientkey -P "" -q
ssh-keygen -f deployments/3Shards/clientkey -P "" -q
python3 workload_generation/generation.py
mongo:
$(file > number_of_shards_in_last_run.txt,$(n))
cd deployments/${n}Shards && terraform init
cd deployments/${n}Shards && terraform apply -auto-approve
benchmark:
cd deployments/benchmarking_client && terraform init
cd deployments/benchmarking_client && terraform apply -auto-approve
python3 collect_results.py
clean:
cd deployments/benchmarking_client && terraform init
cd deployments/benchmarking_client && terraform destroy -auto-approve
cd deployments/1Shards && terraform init
cd deployments/1Shards && terraform destroy -auto-approve
cd deployments/2Shards && terraform init
cd deployments/2Shards && terraform destroy -auto-approve
cd deployments/3Shards && terraform init
cd deployments/3Shards && terraform destroy -auto-approve