Mongrel (web server)

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

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

Areas of application

Live system

A frequently encountered configuration is to use the Apache web server 2.2 as a load balancer using the module mod_proxy_balancer 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 simultaneously deliver even static content.

Instead of the use of other Apache Web server is possible. For nginx or lighttpd on offer. As a load balancer is recommended, for example, pound, or a hardware based solution.

Replacement for WEBrick

Mongrel can also be used instead of WEBrick, provide the default web server Ruby on Rails, Web sites in stand- alone mode. However, since it is a "single -threaded " application with Mongrel, this is only for tasks with little server load (development, intranet ) is useful.

Operation

To start Mongrel, you must call the following from the root directory of the Rails application:

Mongrel_rails start -p 80 -e production- d -p sets the server on port 80 -E provides for the use of the "production " adjustments. -d leaves the server as a service / daemon running in the background. Web Links

  • Official Website (English )
  • Accelerate the Rails development with Mongrel (2008)
  • Swiftiply (faster, more stable Mongrel with event-based networking stack, English)
  • Free Server Software
  • Web server
  • Ruby ( programming language)
579664
de