ericmoritz / wsdemo

A Cowboy Websocket demo
Other
405 stars 58 forks source link

Python Tornado server #4

Closed dvirsky closed 12 years ago

dvirsky commented 12 years ago

hey Eric. I've written a tornado python websocker server, which may be faster (it spawns several processes to utilize all CPUs, and it's non blocking). I haven't tested it on AWS but it does work with the test client, I'm curious to see how it performs. to be able to run it just sudo easy_intsall tornado

dvirsky commented 12 years ago

cool. you can tune how many processes it spawns, by default it detects the number of CPUs and spawns as much processes (sharing the same socket). you can change that number manually in the line tornado.process.fork_processes(None). just change None to a number.