生产现场可以使用贴纸吗?
我正在尝试在生产服务器上设置 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
随着负载的增长,您可能会达到 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.