Browse Source

wsgi: reduce processes.

INADA Naoki 11 years ago
parent
commit
c19a38b0c0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      wsgi/setup.py

+ 1 - 1
wsgi/setup.py

@@ -27,7 +27,7 @@ def start(args, logfile, errfile):
                           cwd="wsgi", stderr=errfile, stdout=logfile, shell=True)
                           cwd="wsgi", stderr=errfile, stdout=logfile, shell=True)
 
 
     with open("wsgi/circus.ini", "w") as f:
     with open("wsgi/circus.ini", "w") as f:
-        f.write(CIRCUS_INI.format(BIN=bin_dir, PROCS=NCPU*3))
+        f.write(CIRCUS_INI.format(BIN=bin_dir, PROCS=NCPU*2))
 
 
     proc = subprocess.Popen([bin_dir + "/circusd", "circus.ini"],
     proc = subprocess.Popen([bin_dir + "/circusd", "circus.ini"],
 		            cwd="wsgi", stderr=errfile, stdout=logfile)
 		            cwd="wsgi", stderr=errfile, stdout=logfile)