diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-10-05 23:54:31 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-10-05 23:58:47 -0700 |
commit | 6a08ae739570ec49046b48339a84997c3bff0cbb (patch) | |
tree | f3f542f8d5abd7e8e0846ad05312117a0595563b /lib | |
parent | c9cb89612517c433b41c77de63f72a8e5c308a1b (diff) | |
download | rainbows-6a08ae739570ec49046b48339a84997c3bff0cbb.tar.gz |
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rainbows.rb | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/rainbows.rb b/lib/rainbows.rb index 4ba4b97..94246f5 100644 --- a/lib/rainbows.rb +++ b/lib/rainbows.rb @@ -17,18 +17,23 @@ module Rainbows end end - # configures Rainbows! with a given concurrency model to +use+ and + # configures \Rainbows! with a given concurrency model to +use+ and # a +worker_connections+ upper-bound. This method may be called # inside a Unicorn/Rainbows configuration file: # # Rainbows! do # use :Revactor # this may also be :ThreadSpawn or :ThreadPool - # worker_connections 128 + # worker_connections 400 # end # + # # the rest of the Unicorn configuration + # worker_processes 8 + # # See the documentation for the respective Revactor, ThreadSpawn, # and ThreadPool classes for descriptions and recommendations for - # each of them. + # each of them. The total number of clients we're able to serve is + # +worker_processes+ * +worker_connections+, so in the above example + # we can serve 8 * 400 = 3200 clients concurrently. def Rainbows!(&block) block_given? or raise ArgumentError, "Rainbows! requires a block" HttpServer.setup(block) |