SIGINT/SIGTERM shuts down instantly in workers
[rainbows.git] / DEPLOY
blob95526e24d9cdcf2da8aab31cc28d7937fcfc33e2
1 = Deploying \Rainbows!
3 == nginx proxying to \Rainbows! or Unicorn
5 For high-traffic applications, routing slow actions to \Rainbows! with
6 nginx is recommended as nginx can serve static files faster and nginx
7 can forward fast actions to Unicorn.
9           static files
10             |
11       nginx |--> slow actions --> Rainbows!
12             |
13             `--> fast actions --> Unicorn
15 Be sure to set <tt>proxy_buffering off</tt> in nginx for "slow actions"
16 if you have Comet applications (but not for Unicorn).
18 == \Rainbows! only
20 For the daring (or low-traffic sites), you should consider deploying
21 \Rainbows! in a standalone configuration.  This will be more highly
22 recommended as \Rainbows! stabilizes, especially if static file
23 performance improves (or you don't need them).
25 You will need to do this to support things like BOSH or do real-time
26 processing of the request body as it is being uploaded.
28 In this case, haproxy or any similar (non-request-body-buffering) load
29 balancer should be used to balance requests between different machines.