Mongrel

from Wikipedia, the free encyclopedia
Mongrel
Basic data

developer Zed A. Shaw
Current  version 1.1.5
( May 22, 2008 )
operating system platform independent
programming language Ruby
category Web server
License Ruby license
German speaking No
https://rubygems.org/gems/mongrel

Mongrel is a web server for Ruby -based web applications. It mainly uses HTTP instead of FastCGI or SCGI to communicate with other (upstream) servers. It currently supports Ruby on Rails , Camping and the IOWA framework.

Mongrel was originally written by Zed A. Shaw in the Ruby and C programming languages.

Areas of application

Live system

A frequently encountered configuration is the use of the Apache 2.2 web server as a load balancer using the mod_proxy_balancer module in conjunction with several Mongrel instances. Each of these instances runs on a different port address. The configuration can be done with the so-called Mongrel cluster management utility. The Apache web server distributes the requests to the individual Mongrel instances and can even deliver static content at the same time.

Instead of Apache, it is also possible to use other web servers. For this offer to nginx or lighttpd on. For example, pound or a hardware-based solution is recommended as a load balancer .

Replacement for WEBrick

Mongrel can also serve websites in stand-alone mode instead of WEBrick , the standard Ruby on Rails web server . However, since Mongrel is a "single-threaded" application, this is only useful for tasks with little server load (development, intranet).

business

To start Mongrel, you have to call the following from the base directory of the Rails application:

mongrel_rails start -p 80 -e production -d
-p sets the server to port 80.
-e ensures the use of the "production" settings.
-d lets the server run as a service / daemon in the background.

Web links

Individual evidence

  1. github.com .