`
jiaoronggui
  • 浏览: 1337859 次
  • 性别: Icon_minigender_1
  • 来自: 合肥
博客专栏
B7c2eb31-a8ea-3973-a517-d00141f39b89
项目管理软件-redmin...
浏览量:116772
4a63e153-250f-30f6-a051-97cfc67cb3d3
IT职业规划
浏览量:199882
社区版块
存档分类
最新评论

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)
 
1
0
分享到:
评论

相关推荐

    Rails 中mongrel的安装

    Mongrel可以通过`mongrel_cluster` gem进行集群配置,以实现负载均衡和故障转移。安装`mongrel_cluster`: ```bash gem install mongrel_cluster ``` 然后创建一个配置文件,例如`config/mongrel_cluster.yml`,...

    Nginx+Mongrel实践过程

    在IT行业中,Nginx和Mongrel是两种常见的服务器软件,它们在系统部署和管理中扮演着重要的角色。本文将深入探讨Nginx+Mongrel实践过程中的关键知识点,帮助你理解如何利用这两种技术实现高效且稳定的系统运行。 ...

    Linux系统上配置Nginx Mongrel cluster

    接着,安装Mongrel和Mongrel Cluster插件。通过Ruby的gem包管理器执行以下命令: ```bash gem install mongrel mongrel_cluster ``` 配置Mongrel Cluster需要创建一个配置文件。进入你的Rails应用的根目录(例如:...

    mongel for linux安装

    $DAEMON cluster --port $PORT --log /var/log/redmine_mongrel.log --pidfile $PIDFILE start ;; stop) echo "Stopping Redmine with Mongrel..." kill `cat $PIDFILE` ;; restart) echo "Restarting ...

    ubuntu下安装ruby on rails

    sudo gem install mongrel_cluster ``` **1.5 安装其他依赖库** 安装 OpenSSL 和 GD 库等其他依赖库,以便支持更多的功能: ```bash sudo apt-get install libopenssl-ruby libgd-ruby1.8 libyaml-ruby libzlib-...

Global site tag (gtag.js) - Google Analytics