开发者

nginx + tornado for a cpu intensive server

开发者 https://www.devze.com 2023-04-10 04:33 出处:网络
I have a setup in which I use three instances of a tornado webserver(which does cpu intensive computation) and i have it listen on three ports. I use nginx to balance the load among the three ports.

I have a setup in which I use three instances of a tornado webserver(which does cpu intensive computation) and i have it listen on three ports. I use nginx to balance the load among the three ports.

  1. This is an experimental setup so is there something obviously wrong with it?

What I am looking for here is not a solution to a problem; I just wish to know if such a setup might end up causing any kind of开发者_开发百科 scaling issues in the future.


I suspect it won't really scale beyond having it listen on one port to be honest.

A better approach would be something like I outlined here: https://github.com/chaselee/tornado-linode

The actual directions on how to set it up are in the Readme.

Hope that helps!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号