Skip to content
mdennebaum edited this page Oct 23, 2011 · 4 revisions

Running Whirlwind in Production

Good advice for production setup can be found here:
http://www.tornadoweb.org/documentation/overview.html

We recommend running whirlwind behind nginx.

One thing that gets a bit annoying with running tornado apps is starting up all the instances that your load balancer will to proxy too. There are a bunch of approaches that people have come up with. Most of which are overcomplicated. So we created an init.d script that should help with this. Look here https://github.com/trendrr/whirlwind/tree/master/etc. Basically you have a config file that lives in etc. This defines the ports you want to start whirlwind instances on and then a start up script that lives in your /etc/init.d directory. Then it's a simple matter of:

/etc/init.d/whirlwind start 
/etc/init.d/whirlwind restart 
/etc/init.d/whirlwind stop 

Please note that this init.d script will not work on windows.

Clone this wiki locally