Skip to content
Snippets Groups Projects
Commit def468fe authored by Simon Ehrenstein's avatar Simon Ehrenstein
Browse files

Use fomat strings

parent fbe13d8b
No related branches found
No related tags found
4 merge requests!39Add Support for Benchmarking Strategies,!36Implement Benchmarking Strategy: Heuristic 2 (Binary Search Strategy),!35Implement Benchmarking Strategy: Heuristic 1 (Step Strategy),!26Add Support for Benchmarking Strategies
...@@ -9,7 +9,7 @@ def execute(config): ...@@ -9,7 +9,7 @@ def execute(config):
for dim_value in config.dim_values: for dim_value in config.dim_values:
for replica in config.replicas: for replica in config.replicas:
subexperiment_counter+=1 subexperiment_counter+=1
print("Run subexperiment " + str(subexperiment_counter) + "/" + str(subexperiments_total) + " with config " + str(dim_value) + " " + str(replica)) print("Run subexperiment {}/{} with dimension value {} and {} replicas.".format(subexperiment_counter, subexperiments_total, dim_value, replica))
subexperiment_config = SubexperimentConfig(config.use_case, subexperiment_counter, dim_value, replica, config.partitions, config.cpu_limit, config.memory_limit, config.kafka_streams_commit_interval_ms, config.execution_minutes, config.subexperiment_executor) subexperiment_config = SubexperimentConfig(config.use_case, subexperiment_counter, dim_value, replica, config.partitions, config.cpu_limit, config.memory_limit, config.kafka_streams_commit_interval_ms, config.execution_minutes, config.subexperiment_executor)
......
...@@ -5,4 +5,4 @@ import os ...@@ -5,4 +5,4 @@ import os
dirname = os.path.dirname(__file__) dirname = os.path.dirname(__file__)
os.chdir(dirname+"/../../") os.chdir(dirname+"/../../")
def execute(subexperiment_config): def execute(subexperiment_config):
os.system("./run_uc"+subexperiment_config.use_case+"-new.sh "+str(subexperiment_config.counter)+" "+str(subexperiment_config.dim_value)+" "+str(subexperiment_config.replicas)+" "+str(subexperiment_config.partitions)+" "+subexperiment_config.cpu_limit+" "+subexperiment_config.memory_limit+" "+str(subexperiment_config.kafka_streams_commit_interval_ms)+" "+str(subexperiment_config.execution_minutes)) os.system("./run_uc{}-new.sh {} {} {} {} {} {} {} {}".format(subexperiment_config.use_case, subexperiment_config.counter, subexperiment_config.dim_value, subexperiment_config.replicas, subexperiment_config.partitions, subexperiment_config.cpu_limit, subexperiment_config.memory_limit, subexperiment_config.kafka_streams_commit_interval_ms, subexperiment_config.execution_minutes))
\ No newline at end of file
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