如何找到 Passenger 可以创建的最大并发进程数?
我在 Rackspace 云服务器上运行 REE 乘客。有没有办法找出乘客可以使用所提供的基础设施/硬件创建/处理的最大并发进程是多少?
I'm running passenger with REE on a Rackspace cloud server. Is there any way to find out what is the maximum concurrent processes Passenger can create/handle with the provided infrastructure/hardware?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
默认情况下,生成的 Passenger 实例的最大数量为 6。您可以在配置中对此进行调整。 Phusion 在其文档中提供了设置此值的优秀指南:
Nginx - http:// /www.modrails.com/documentation/Users%20guide%20Nginx.html#PassengerMaxPoolSize
Apache - http://www.modrails.com/documentation/Users%20guide%20Apache.html #_passengermaxpoolsize_lt_integer_gt
By default the maximum number of Passenger instances spawned is six. You can adjust this in the configuration. Phusion provide excellent guidelines for setting this value in their documentation:
Nginx - http://www.modrails.com/documentation/Users%20guide%20Nginx.html#PassengerMaxPoolSize
Apache - http://www.modrails.com/documentation/Users%20guide%20Apache.html#_passengermaxpoolsize_lt_integer_gt
找到了更好、更简单的选择。
我正在使用 NewRelic 监控我的应用程序和 EC2 实例(它也应该在 Rackspace 上运行)。我现在需要做的就是找到一个负载测试工具&将负载放在我的实例上。 NewRelic 显示 Passenger 正在创建和正在创建的实例数量。其资源消耗是多少(RAM、CPU 等)。
Found a better and easier option.
I'm monitoring both my Application and EC2 instance (it should also run on Rackspace) with NewRelic. All I need to do now is find a load testing tool & put the load on my instance. NewRelic shows how many instances Passenger is creating & what is the resource consumption (RAM, CPU..etc) for the same.