-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefine-scaling-sweep.sh
executable file
·28 lines (19 loc) · 1.11 KB
/
define-scaling-sweep.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
#!/bin/bash
set -euo pipefail
duration_seconds=1200
repetitions=15
echo "Defining the scaling scenarios..."
for service_mesh in istio none; do
for min_replicas in 1 5 10 15 20; do
for clients in $(seq 1 20); do
think_time_milliseconds=20
scenario_id="scaling-${min_replicas}-pods-${clients}-clients-${service_mesh}-mesh-${think_time_milliseconds}-thinktime-${duration_seconds}-duration"
description="Scaling starting at ${min_replicas} pods using ${service_mesh} service mesh for ${duration_seconds} seconds duration and think time set to ${think_time_milliseconds} milliseconds"
psql -d experiments -c "INSERT INTO scenarios (scenario_id, description, min_replicas, max_replicas, clients, duration_seconds, think_time_milliseconds, service_mesh, service_mesh_version) VALUES ('${scenario_id}','${description}','${min_replicas}','20','${clients}','${duration_seconds}','${think_time_milliseconds}','${service_mesh}','1.1.5');"
echo "Defining ${repetitions} experiments of ${scenario_id} to run..."
for rep in $(seq ${repetitions}); do
./define-experiment.sh "${scenario_id}"
done
done
done
done