Skip to content
Snippets Groups Projects
Commit d580a525 authored by Sören Henning's avatar Sören Henning
Browse files

Prepare configurable execution duration

parent f111fa75
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@ exp_id = sys.argv[1]
benchmark = sys.argv[2]
dim_value = sys.argv[3]
instances = sys.argv[4]
execution_minutes = 5
time_diff_ms = int(os.getenv('CLOCK_DIFF_MS', 0))
#http://localhost:9090/api/v1/query_range?query=sum%20by(job,topic)(kafka_consumer_consumer_fetch_manager_metrics_records_lag)&start=2015-07-01T20:10:30.781Z&end=2020-07-01T20:11:00.781Z&step=15s
......@@ -21,7 +22,7 @@ print(f"Now Local: {now_local}")
print(f"Now Used: {now}")
end = now
start = now - timedelta(minutes=5)
start = now - timedelta(minutes=execution_minutes)
#print(start.isoformat().replace('+00:00', 'Z'))
#print(end.isoformat().replace('+00:00', 'Z'))
......
......@@ -4,6 +4,7 @@ EXP_ID=$1
DIM_VALUE=$2
INSTANCES=$3
PARTITIONS=$4
EXECUTION_MINUTES=5
# Start up Kafka
# TODO
......@@ -26,7 +27,7 @@ kubectl apply -f uc1-application/aggregation-deployment.yaml
kubectl scale deployment titan-ccp-aggregation --replicas=$REPLICAS
# Execute for certain time
sleep 5m
sleep ${EXECUTION_MINUTES}m
# Run eval script
source ../.venv/bin/activate
......
......@@ -4,6 +4,7 @@ EXP_ID=$1
DIM_VALUE=$2
INSTANCES=$3
PARTITIONS=$4
EXECUTION_MINUTES=5
# Maybe start up Kafka
......@@ -23,7 +24,7 @@ kubectl apply -f uc2-application/aggregation-deployment.yaml
kubectl scale deployment titan-ccp-aggregation --replicas=$REPLICAS
# Execute for certain time
sleep 5m
sleep ${EXECUTION_MINUTES}m
# Run eval script
source ../.venv/bin/activate
......
......@@ -4,6 +4,7 @@ EXP_ID=$1
DIM_VALUE=$2
INSTANCES=$3
PARTITIONS=$4
EXECUTION_MINUTES=5
# Maybe start up Kafka
......@@ -23,7 +24,7 @@ kubectl apply -f uc3-application/aggregation-deployment.yaml
kubectl scale deployment titan-ccp-aggregation --replicas=$REPLICAS
# Execute for certain time
sleep 5m
sleep ${EXECUTION_MINUTES}m
# Run eval script
source ../.venv/bin/activate
......
......@@ -4,6 +4,7 @@ EXP_ID=$1
DIM_VALUE=$2
INSTANCES=$3
PARTITIONS=$4
EXECUTION_MINUTES=10
# Maybe start up Kafka
......@@ -23,7 +24,7 @@ kubectl apply -f uc4-application/aggregation-deployment.yaml
kubectl scale deployment titan-ccp-aggregation --replicas=$REPLICAS
# Execute for certain time
sleep 5m
sleep ${EXECUTION_MINUTES}m
# Run eval script
source ../.venv/bin/activate
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment