From 8287106809a82ccd1afba674740486946509b856 Mon Sep 17 00:00:00 2001 From: zedshaw Date: Wed, 22 Mar 2006 03:31:30 +0000 Subject: Updates mongrel scripts to the new thread model with max concurrent and with throttle options. git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@120 19e92222-5c0b-0410-8929-a290d50e31e9 --- bin/mongrel_rails | 4 ++-- bin/mongrel_rails_svc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/mongrel_rails b/bin/mongrel_rails index 1682ae5..95d0970 100644 --- a/bin/mongrel_rails +++ b/bin/mongrel_rails @@ -14,8 +14,8 @@ class Start < GemPlugin::Plugin "/commands" ['-a', '--address ADDR', "Address to bind to", :@address, "0.0.0.0"], ['-l', '--log FILE', "Where to write log messages", :@log_file, "log/mongrel.log"], ['-P', '--pid FILE', "Where to write the PID", :@pid_file, "log/mongrel.pid"], - ['-n', '--num-procs INT', "Number of processor threads to use", :@num_procs, 20], - ['-t', '--timeout SECONDS', "Timeout all requests after SECONDS time", :@timeout, 120], + ['-n', '--num-procs INT', "Number of processor threads to use", :@num_procs, 1024], + ['-t', '--timeout SECONDS', "Timeout all requests after SECONDS time", :@timeout, 0], ['-m', '--mime PATH', "A YAML file that lists additional MIME types", :@mime_map, nil], ['-c', '--chdir PATH', "Change to dir before starting (will be expanded)", :@cwd, Dir.pwd], ['-r', '--root PATH', "Set the document root (default 'public')", :@docroot, "public"], diff --git a/bin/mongrel_rails_svc b/bin/mongrel_rails_svc index 5e19e82..5fa4caa 100644 --- a/bin/mongrel_rails_svc +++ b/bin/mongrel_rails_svc @@ -203,8 +203,8 @@ if ARGV[0] == 'service' :ip => '0.0.0.0', :port => 3000, :mime_map => nil, - :num_procs => 20, - :timeout => 120, + :num_procs => 1024, + :timeout => 0, :cpu => nil } -- cgit v1.2.3-24-ge0c7