mongrel和mongrel_cluster的区别是什么

Ask:

   mongrel和mongrel_cluster的区别是什么

 

Answer1:

    Mongrel是一个 Web服务器 , 同一时间 只能处理 一个请求 。 为了 处理 多个请求 ,你想 运行多个副本 。
    Mongrel集群 是 管理 正在运行的mongre的启动、 停止、 重新启动 ,并 让客户的请求转发到合适mongrel 环境 中 运行,相当于所有正在运行的mongrel的资源管理经理一样,自动根据mongre的负载将相应的请求转移到负载最小的mongrel应用上。

Mongrel is a web server that can handle one request at a time. In order to handle multiple requests, you want to run multiple mongrels. A proxy server (i.e. apache) will sit in front of the servers and listen on port 80 and then relay the web requests to an available mongrel. Mongrel cluster is a gem that manages the launching of the mongrels, stopping, restarting and running it in the right environment with the right user. It abstracts the individual mongrels as workers so you don't need to worry about them (until things go wrong). All of that is managed by a configuration file usually located with the application. 
 

Answer2:

mongrel_cluster相当于mongrel的多实例,并自动处理进入的请求

Mongrel cluster is multiple mongrel instances. Then the web server rotates amongst them to handle incoming calls.

But these days the cool kids tend to use Passenger (and often the related Enterprise Ruby too)
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值