生产现场可以使用贴纸吗?

发布于 2024-10-14 10:31:54 字数 282 浏览 13 评论 0原文

我正在尝试在生产服务器上设置 Mediacore (这是一个 Pylons 应用程序)。文档建议使用 apache mod_fastcgi 或 mod_wsgi 作为网络服务器,但我尝试不惜一切代价避免使用 apache,因为它是 RAM 贩子。另一方面,当我将 mediacore 与 Paster 一起使用时,它工作得很好,所以我想知道忽略 apache 并使用 Paster 作为我的生产 Web 服务器有什么优点/缺点?

I am trying to set up Mediacore (which is a Pylons app) on a production server. The docs suggest either apache mod_fastcgi or mod_wsgi as webserver but I try to avoid apache at any cost because of its being RAM-monger. On the other hand mediacore works just fine when I use it with paster, so I am wondering what are pros/cons of just ignoring apache and use paster as my production web server?

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

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

发布评论

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

评论(1

全部不再 2024-10-21 10:31:54

随着负载的增长,您可能会达到 CPU 或 DB 限制。典型的答案是使用多个并行后端。然后,nginx 或 lighttpd 或任何轻型 HTTP 服务器将派上用场,并允许您将负载分配到多个 Paster 服务器并以低廉的价格提供静态文件。

在那之前,您可能可以安全地仅运行 Paster,特别是如果您有多余的 CPU 浪费在服务静态文件上。

As your load grows, you may hit the CPU or DB limit. The typical answer is using several parallel backends. Then an nginx or lighttpd or whatever light HTTP server will come in handy and will allow you to distribute load to several paster servers and serve static files cheaply.

Up until then you're probably safe to run just paster, especially if you have excess CPU to waste on serving static files.

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