summary refs log tree commit homepage
path: root/lib/rainbows/xepoll_thread_pool.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-05-09 02:24:26 +0000
committerEric Wong <normalperson@yhbt.net>2011-05-09 02:32:36 +0000
commit598525843ee1d120fd9878011ca2b6328c2cf95f (patch)
tree59a305f1b82d75f4b64338085226874d6c984834 /lib/rainbows/xepoll_thread_pool.rb
parent1e3b7e9bfef992b337a9a113da6c99071dce60e1 (diff)
CoolioThreadPool has had it supported forever, but
only NeverBlock had it documented.
Diffstat (limited to 'lib/rainbows/xepoll_thread_pool.rb')
-rw-r--r--lib/rainbows/xepoll_thread_pool.rb17
1 files changed, 16 insertions, 1 deletions
diff --git a/lib/rainbows/xepoll_thread_pool.rb b/lib/rainbows/xepoll_thread_pool.rb
index 9107b5d..c1605b8 100644
--- a/lib/rainbows/xepoll_thread_pool.rb
+++ b/lib/rainbows/xepoll_thread_pool.rb
@@ -39,9 +39,24 @@ require "raindrops"
 # exactly the same for an equivalent number of active connections
 # (but independently tunable).
 #
-# Since +:pool_size+ and +worker_connections+ is independently tunable,
+# === :pool_size vs worker_connections
+#
+# Since +:pool_size+ and +worker_connections+ are independently tunable,
 # it is possible to get into situations where active connections need
 # to wait for an idle thread in the thread pool before being processed
+#
+# In your Rainbows! config block, you may specify a Thread pool size
+# to limit your application concurrency independently of
+# worker_connections.
+#
+#   Rainbows! do
+#     use :XEpollThreadPool, :pool_size => 50
+#     worker_connections 100
+#   end
+#
+# In extremely rare cases, this may be combined with Rainbows::AppPool
+# if you have different concurrency capabilities for different parts of
+# your Rack application.
 
 module Rainbows::XEpollThreadPool
   extend Rainbows::PoolSize