Browse Source

change to use Starlet and add some Starlet's options

Masahiro Nagano 11 years ago
parent
commit
ce312b3e48
3 changed files with 3 additions and 3 deletions
  1. 1 1
      plack/benchmark_config
  2. 1 1
      plack/cpanfile
  3. 1 1
      plack/setup.py

+ 1 - 1
plack/benchmark_config

@@ -13,7 +13,7 @@
       "language": "Perl",
       "orm": "Raw",
       "platform": "Plack",
-      "webserver": "Starman",
+      "webserver": "Starlet",
       "os": "Linux",
       "database_os": "Linux",
       "display_name": "plack",

+ 1 - 1
plack/cpanfile

@@ -1 +1 @@
-map requires($_), qw(JSON::XS EV HTTP::Parser::XS Plack DBI DBD::mysql DBI Monoceros Starman);
+map requires($_), qw(JSON::XS HTTP::Parser::XS Plack DBI DBD::mysql DBI Starlet);

+ 1 - 1
plack/setup.py

@@ -8,7 +8,7 @@ def start(args, logfile, errfile):
   try:
     subprocess.check_call("curl -L http://cpanmin.us | perl - App::cpanminus", shell=True, cwd="plack", stderr=errfile, stdout=logfile)
     subprocess.check_call("cpanm --installdeps .", shell=True, cwd="plack", stderr=errfile, stdout=logfile)
-    pid = subprocess.Popen("plackup -E production -s Monoceros -l :8080 --max-workers=" + str(args.max_threads) + " app.psgi", shell=True, cwd="plack", stderr=errfile, stdout=logfile).pid
+    pid = subprocess.Popen("plackup -E production -s Starlet -l :8080 --max-keepalive-reqs 5000 --max-reqs-per-child 50000 --max-reqs-per-child 40000 --max-workers=" + str(args.max_threads+4) + " app.psgi", shell=True, cwd="plack", stderr=errfile, stdout=logfile).pid
     open('plack/app.pid', 'w').write(str(pid))
     return 0
   except subprocess.CalledProcessError: