From 0be3542b4e16972e0ec5ff354625f45ea8241883 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 5 Oct 2009 02:44:18 -0700 Subject: huge documentation revamp --- DEPLOY | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 DEPLOY (limited to 'DEPLOY') diff --git a/DEPLOY b/DEPLOY new file mode 100644 index 0000000..95526e2 --- /dev/null +++ b/DEPLOY @@ -0,0 +1,29 @@ += Deploying \Rainbows! + +== nginx proxying to \Rainbows! or Unicorn + +For high-traffic applications, routing slow actions to \Rainbows! with +nginx is recommended as nginx can serve static files faster and nginx +can forward fast actions to Unicorn. + + static files + | + nginx |--> slow actions --> Rainbows! + | + `--> fast actions --> Unicorn + +Be sure to set proxy_buffering off in nginx for "slow actions" +if you have Comet applications (but not for Unicorn). + +== \Rainbows! only + +For the daring (or low-traffic sites), you should consider deploying +\Rainbows! in a standalone configuration. This will be more highly +recommended as \Rainbows! stabilizes, especially if static file +performance improves (or you don't need them). + +You will need to do this to support things like BOSH or do real-time +processing of the request body as it is being uploaded. + +In this case, haproxy or any similar (non-request-body-buffering) load +balancer should be used to balance requests between different machines. -- cgit v1.2.3-24-ge0c7