nginx +龙卷风,适用于 CPU 密集型服务器

发布于 2024-12-08 02:40:05 字数 186 浏览 3 评论 0原文

我有一个设置,其中使用龙卷风网络服务器的三个实例(进行CPU密集型计算),并且让它监听三个端口。我使用nginx来平衡三个端口之间的负载。

  1. 这是一个实验设置,所以它有明显的问题吗?

我在这里寻找的不是问题的解决方案;而是问题的解决方案。我只是想知道这样的设置是否最终会导致将来出现任何类型的扩展问题。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

谎言月老 2024-12-15 02:40:05

老实说,我怀疑除了在一个端口上监听之外,它不会真正扩展。

更好的方法就像我在这里概述的那样: https://github.com/chaselee/tornado-linode< /a>

有关如何设置的实际说明位于自述文件中。

希望有帮助!

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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文