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

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实践过程

    # mongrel_cluster是你定义的upstream,下面会定义 } upstream mongrel_cluster { server 127.0.0.1:3000; # 第一个Mongrel实例的地址和端口 server 127.0.0.1:3001; # 第二个Mongrel实例的地址和端口 # 可以...

    mongrel_service 安装包

    相信安装Redmine时会用到它们 win32-service-0.5.2.gem gem_plugin-0.2.3.gem mongrel_service-0.3.4-i386-mswin32.gem

    Linux系统上配置Nginx Mongrel cluster

    gem install mongrel mongrel_cluster ``` 配置Mongrel Cluster需要创建一个配置文件。进入你的Rails应用的根目录(例如:/usr/rails),然后运行: ```bash mongrel_rails cluster::configure ``` 这将在`config...

    Web服务器Mongrel2.zip

    基本架构是:a、非阻塞IOb、通过libtask实现event IO和每Connection一个coroutinec、和Mongrel一样用Ragel实现HTTP协议解析d、将Request编码为JSON或TNetString发送到ZeroMQe、ZeroMQ的客户端作为Handler接收Request...

    net.sf.mongrel_1.0.0.zip

    Mongrel 是一个 Eclipse 插件,用来在 Eclipse 环境中开发和运行基于 Tomcat 的Web应用。可方便进行配置、调试 Tomcat 会话,基于 Sysdeo Tomcat 插件开发。 安装方法:下载后将压缩包解压到 Eclipse 的 plugins ...

    Mongrel

    在“Mongrel”这个主题下,我们主要讨论的是MongoDB的特性和使用场景。首先,MongoDB使用一种称为BSON的数据格式,它是Binary JSON的缩写,提供了与JSON相似的数据表示,但以二进制形式存储,提高了存储效率和读取...

    基于Ubuntu Nginx Mongrel Mysql部署rails monit-5.0

    在Rails环境里,Monit确保了Nginx、Mongrel和MySQL等关键服务的健康运行。 在部署这个环境时,首先需要在Ubuntu上安装必要的软件包,包括Ruby、Rails、Nginx、MySQL以及Monit。然后,配置Nginx作为反向代理来分发...

    mongrel-1.1.5.gem

    Mongrel是一种快速的针对Ruby的Http 服务器,专门为部署发布rails应用而产生的。 可以替代mod_ruby/fastcgi,可以用于生产部属环境。

    mongrel2:Mongrel2 Web服务器项目

    Mongrel2:与语言无关的Web服务器Mongrel2是与应用程序,语言和网络体系结构无关的Web服务器,其重点是使用现代浏览器技术的Web应用程序。特征语言不可知论者,带有一个简单的后端协议,支持Mongrel2粉丝编写的17种...

    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 ...

    mongrel_service

    将RedMine安装为Windows服务所需的文件,有了这个文件,就可以非上网机上安装了。

    nim-mongrel2:Mongrel2 Web服务器的处理程序框架

    **nim-mongrel2:Mongrel2 Web服务器的处理程序框架** nim-mongrel2是用Nim语言实现的Mongrel2 Web服务器的处理程序框架。Mongrel2是一款高性能、轻量级且设计独特的Web服务器,由Zed A. Shaw创建,它将HTTP协议...

    mongrel-1.1.4-x86-mswin32-60.gem

    mongrel-1.1.4-x86-mswin32-60.gem 的gem包

    Ruby on Rails安装指南(Ruby 1.8.6+Rails 2.0.2)

    Ruby on Rails 安装指南 Ruby on Rails 安装指南是指安装 Ruby 1.8.6 和 Rails 2.0.2 的详细步骤。首先,需要下载 Ruby One-Click Installer ...同时,也可以学习到 Ruby、Rails 和 Mongrel 的基本概念和使用方法。

    seraph:[废弃] 用 PHP 为 Mongrel2 编写处理程序的框架

    我认为处理程序是长时间运行的应用程序,它发布对使用几个ØMQ套接字从 Mongrel2 服务器拉出的请求的响应。 我写Seraph是因为我想强调的是,在 Mikko Koppanen 的“php-zmq”PHP 扩展的帮助下,PHP 不再受 Apache ...

    m2php:Mongrel2 PHP 的东西

    m2php - 在 PHP 中开发 Mongrel2 处理程序的库Mongrel2: ://mongrel2.org Mongrel2 Python 库: ://sheddingbikes.com/posts/1279007133.html要求ZeroMQ 2.0.7 或更高版本: ://... 只需为您的项目创建一个 composer....

    基于Ubuntu Nginx Mongrel Mysql部署rails

    博文链接:https://swachian.iteye.com/blog/175033

Global site tag (gtag.js) - Google Analytics