You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JiangYongKang
changed the title
What are the main features provided by these web servers, respectively?
Web server: Thin, Puma, Unicorn, Rainbows!, Passenger(Raptor)
Oct 19, 2017
What are the main features provided by these web servers, respectively?
Thin
Unicorn
Puma
Rainbows
Comparing Puma v.s. Unicorn, what are the pros and cons?
Puma 和 Unicorn 之间的性能差异并不是很大。感觉两个之间应用场景不同。
大型应用使用 Unicorn 更好一些,希望节省服务器资源的小型应用更适合用 Puma。
Unicorn 提供了很多通过信号控制进程的手段,方便系统管理员干预应用服务器运行。
在单进程模式下 Puma 只有1个工作进程,单 Unicorn 仍然会启动 master-worker 模式,因此Puma的单进程更节省内存。
Puma的线程可以根据请求自动伸缩,对于请求量小的应用,比较节省资源。
PS: Puma、Unicorn 的进程数量不要开太多,最好和 CPU 的核数相等即可。
我的部署代码案例
参考文档
The text was updated successfully, but these errors were encountered: