From 6a08ae739570ec49046b48339a84997c3bff0cbb Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 5 Oct 2009 23:54:31 -0700 Subject: doc: better "Rainbows!" RDoc examples and linkage --- lib/rainbows.rb | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'lib') 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) -- cgit v1.2.3-24-ge0c7