|
@@ -1,13 +1,18 @@
|
|
import subprocess
|
|
import subprocess
|
|
import setup_util
|
|
import setup_util
|
|
|
|
+import multiprocessing
|
|
|
|
+import os
|
|
|
|
+
|
|
|
|
+bin_dir = os.path.expanduser('~/FrameworkBenchmarks/installs/py2/bin')
|
|
|
|
+NCPU = multiprocessing.cpu_count()
|
|
|
|
|
|
proc = None
|
|
proc = None
|
|
|
|
|
|
|
|
|
|
def start(args):
|
|
def start(args):
|
|
proc = subprocess.Popen(
|
|
proc = subprocess.Popen(
|
|
- "gunicorn hello:app -k meinheld.gmeinheld.MeinheldWorker -b 0.0.0.0:8080 -w " +
|
|
|
|
- str((args.max_threads * 2)) + " --preload --log-level=critical", shell=True, cwd="wsgi")
|
|
|
|
|
|
+ bin_dir + "/gunicorn hello:app -k meinheld.gmeinheld.MeinheldWorker -b 0.0.0.0:8080 -w " +
|
|
|
|
+ str(NCPU) + " --preload --log-level=critical", shell=True, cwd="wsgi")
|
|
return 0
|
|
return 0
|
|
|
|
|
|
def stop():
|
|
def stop():
|