Mongrel

Mongrel
Mongrel
Entwickler Zed A. Shaw
Aktuelle Version 1.1.5
(22. Mai 2008)
Betriebssystem plattformunabhängig
Kategorie Webserver
Lizenz Ruby license
Deutschsprachig nein
http://rubyforge.org/projects/mongrel/

Mongrel ist ein Webserver für Ruby-basierende Webapplikationen. Er verwendet hauptsächlich HTTP an Stelle von FastCGI oder SCGI um mit anderen (vorgelagerten) Servern zu kommunizieren. Es unterstützt zur Zeit Ruby on Rails, Camping und das IOWA-Framework.

Mongrel wurde ursprünglich von Zed A. Shaw in den Programmiersprachen Ruby und C geschrieben.

Inhaltsverzeichnis

Einsatzbereiche

Live-System

Eine häufig anzutreffende Konfiguration ist die Verwendung des Webservers Apache 2.2 als Loadbalancer unter Verwendung des Moduls mod_proxy_balancer in Verbindung mit mehreren Mongrel-Instanzen. Jede dieser Instanzen läuft dabei auf einer anderen Portadresse. Die Konfiguration lässt sich mit dem so genannten Mongrel-Cluster-Management Utility bewerkstelligen. Der Apache Webserver verteilt die Anfragen auf die einzelnen Mongrel-Instanzen und kann sogar gleichzeitig noch statische Inhalte ausliefern.

Anstatt des Apache ist auch der Einsatz anderer Webserver möglich. Dafür bieten sich nginx oder Lighttpd an. Als Loadbalancer ist zum Beispiel pound empfehlenswert oder aber eine Hardware basierende Lösung.

Ersatz für WEBrick

Mongrel kann auch anstelle von WEBrick, dem Standard-Webserver von Ruby on Rails, Websites im Stand-Alone-Modus bereitstellen. Da es sich bei Mongrel jedoch um eine "single-threaded"-Applikation handelt, ist dies nur für Aufgaben mit wenig Serverbelastung (Produktionseinsatz, Intranet) sinnvoll.

Betrieb

Um Mongrel zu starten muss man aus dem Basisverzeichnis der Rails-Applikation folgendes aufrufen:

mongrel_rails start -p 80 -e production -d
-p setzt den Server auf Port 80.
-e sorgt für die Verwendung der "production"-Einstellungen.
-d lässt den Server als Dienst/Daemon im Hintergrund laufen.

Weblinks


Wikimedia Foundation.

Игры ⚽ Нужен реферат?

Schlagen Sie auch in anderen Wörterbüchern nach:

  • Mongrel — Тип Веб сервер Разработчик Zed A. Shaw Операционная система Cross platform Последняя версия 1.1.5 (2008 05 22) Лицензия Лицен …   Википедия

  • Mongrel — refers to mixed ancestry: In botany, a mongrel may refer to the offspring of varieties of a species which was in contrast to a hybrid Among pets, one whose parentage is of unknown or mixed breeds as opposed to purebred Among humans, mongrel and… …   Wikipedia

  • Mongrel — Mon grel, a. 1. (Zo[ o]l.) Not of a pure breed. [1913 Webster] 2. Of mixed kinds; as, mongrel language. [1913 Webster] …   The Collaborative International Dictionary of English

  • Mongrel — Mon grel, n. [Prob. shortened fr. mongrel, and akin to AS. mengan to mix, and E. mingle. See {Mingle}.] The progeny resulting from a cross between two breeds, as of domestic animals; anything of mixed breed. Drayton. [1913 Webster] …   The Collaborative International Dictionary of English

  • mongrel — (n.) late 15c., mixed breed dog, from obsolete mong mixture, from O.E. gemong mingling (base of AMONG (Cf. among)), from P.Gmc. *mangjan to knead together (see MINGLE (Cf. mingle)). With pejorative suffix REL (Cf. rel). Meani …   Etymology dictionary

  • mongrel — [n] animal of mixed background bastard, cross, crossbreed, cur, half blood, halfbreed, hybrid, mixed breed, mixture, mule, mutt; concept 394 …   New thesaurus

  • mongrel — ► NOUN 1) a dog of no definable breed. 2) offensive a person of mixed descent. 3) something of mixed origin or nature. ORIGIN apparently related to MINGLE(Cf. ↑mingle) and AMONG(Cf. ↑among) …   English terms dictionary

  • mongrel — [mäŋ′grəl, muŋ′grəl] n. [ME mengrell < base of OE mengan, to mix + dim. suffix rel as in COCKEREL: form infl. by ME mong, aphetic < OE gemong, mixture: see AMONG] 1. an animal or plant produced by the crossing of different breeds or… …   English World dictionary

  • mongrel — /ˈmʌŋgrəl / (say munggruhl) noun 1. any animal or plant resulting from the crossing of different breeds or varieties. 2. any cross between different things. 3. a dog of mixed or uncertain breed. 4. Colloquial (derogatory) (racist) a person of… …  

  • Mongrel — 1. mongrel dog; 2. despicable person; 3. something difficult: It s a mongrel of a job …   Dictionary of Australian slang

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”