Browse Source

Making it more flexible to change the max number of threads with multiple runs.

pakunoda 12 years ago
parent
commit
c211b1f163
2 changed files with 2 additions and 2 deletions
  1. 1 1
      unfiltered/setup_unfiltered.py
  2. 1 1
      unfiltered/src/main/resources/application.conf

+ 1 - 1
unfiltered/setup_unfiltered.py

@@ -6,7 +6,7 @@ import os
 
 def start(args):
   setup_util.replace_text("unfiltered/src/main/resources/application.conf", "jdbc:mysql:\/\/.*:3306", "jdbc:mysql://" + args.database_host + ":3306")
-  setup_util.replace_text("unfiltered/src/main/resources/application.conf", "{threads}", args.max_threads)
+  setup_util.replace_text("unfiltered/src/main/resources/application.conf", "maxThreads = \\d+", "maxThreads = " + str(args.max_threads))
 
   subprocess.check_call("chmod u+x sbt", shell=True, cwd="unfiltered")
   subprocess.check_call("./sbt assembly", shell=True, cwd="unfiltered")

+ 1 - 1
unfiltered/src/main/resources/application.conf

@@ -5,4 +5,4 @@ db.default.password = "benchmarkdbpass"
 db.default.minConnections = 4
 db.default.maxConnections = 125
 
-unfiltered.maxThreads = {threads}
+unfiltered.maxThreads = 16