176 lines
3.6 KiB
HTML
176 lines
3.6 KiB
HTML
|
<HTML
|
||
|
><HEAD
|
||
|
><TITLE
|
||
|
>Farming</TITLE
|
||
|
><META
|
||
|
NAME="GENERATOR"
|
||
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
|
||
|
"><LINK
|
||
|
REL="HOME"
|
||
|
TITLE="Jabber Server Farming How-To"
|
||
|
HREF="index.html"><LINK
|
||
|
REL="UP"
|
||
|
TITLE="Introduction to Jabberd and Farming"
|
||
|
HREF="introduction.html"><LINK
|
||
|
REL="PREVIOUS"
|
||
|
TITLE="Jabberd - The Jabber.org Jabber Server"
|
||
|
HREF="jabberserver.html"><LINK
|
||
|
REL="NEXT"
|
||
|
TITLE="Implementing the Farm"
|
||
|
HREF="implementation.html"></HEAD
|
||
|
><BODY
|
||
|
CLASS="section"
|
||
|
BGCOLOR="#FFFFFF"
|
||
|
TEXT="#000000"
|
||
|
LINK="#0000FF"
|
||
|
VLINK="#840084"
|
||
|
ALINK="#0000FF"
|
||
|
><DIV
|
||
|
CLASS="NAVHEADER"
|
||
|
><TABLE
|
||
|
SUMMARY="Header navigation table"
|
||
|
WIDTH="100%"
|
||
|
BORDER="0"
|
||
|
CELLPADDING="0"
|
||
|
CELLSPACING="0"
|
||
|
><TR
|
||
|
><TH
|
||
|
COLSPAN="3"
|
||
|
ALIGN="center"
|
||
|
>Jabber Server Farming How-To</TH
|
||
|
></TR
|
||
|
><TR
|
||
|
><TD
|
||
|
WIDTH="10%"
|
||
|
ALIGN="left"
|
||
|
VALIGN="bottom"
|
||
|
><A
|
||
|
HREF="jabberserver.html"
|
||
|
ACCESSKEY="P"
|
||
|
>Prev</A
|
||
|
></TD
|
||
|
><TD
|
||
|
WIDTH="80%"
|
||
|
ALIGN="center"
|
||
|
VALIGN="bottom"
|
||
|
>Chapter 2. Introduction to Jabberd and Farming</TD
|
||
|
><TD
|
||
|
WIDTH="10%"
|
||
|
ALIGN="right"
|
||
|
VALIGN="bottom"
|
||
|
><A
|
||
|
HREF="implementation.html"
|
||
|
ACCESSKEY="N"
|
||
|
>Next</A
|
||
|
></TD
|
||
|
></TR
|
||
|
></TABLE
|
||
|
><HR
|
||
|
ALIGN="LEFT"
|
||
|
WIDTH="100%"></DIV
|
||
|
><DIV
|
||
|
CLASS="section"
|
||
|
><H1
|
||
|
CLASS="section"
|
||
|
><A
|
||
|
NAME="farming">2.2. Farming</H1
|
||
|
><P
|
||
|
> This is an interesting topic. When you think of a
|
||
|
server you tend to think of a single machine running
|
||
|
a single program. Farming is the idea of multiple machines
|
||
|
running multiple programs that all act together to
|
||
|
appear to be one machine/program.
|
||
|
</P
|
||
|
><P
|
||
|
> Why farming? Two reasons with equal importance. Scalability
|
||
|
and Reliability.
|
||
|
</P
|
||
|
><P
|
||
|
> Scalability is the idea of allowing something to handle
|
||
|
many many more connections/transactions at the same time.
|
||
|
A typcial web server can handle say 1000 connections a
|
||
|
second, but 10 web servers acting together can provide
|
||
|
10,000 connections per second.
|
||
|
</P
|
||
|
><P
|
||
|
> Reliability is the idea that even if a piece of the system
|
||
|
goes down, the system does not. There is no single point
|
||
|
of failure, and there is built in redundancy to ensure
|
||
|
that something is there to pick up the slack if something
|
||
|
goes down. In the web server example, if one web server
|
||
|
goes down you could not send any connections to it until
|
||
|
it is back up, thus ensuring that your web site is always
|
||
|
up.
|
||
|
</P
|
||
|
><P
|
||
|
> Both of these ideas are crucial to a successful Farming
|
||
|
strategy. Each wants to push the design into a different
|
||
|
direction, but they can be reconciled into a single
|
||
|
design that can scale and is reliable at the same time.
|
||
|
</P
|
||
|
></DIV
|
||
|
><DIV
|
||
|
CLASS="NAVFOOTER"
|
||
|
><HR
|
||
|
ALIGN="LEFT"
|
||
|
WIDTH="100%"><TABLE
|
||
|
SUMMARY="Footer navigation table"
|
||
|
WIDTH="100%"
|
||
|
BORDER="0"
|
||
|
CELLPADDING="0"
|
||
|
CELLSPACING="0"
|
||
|
><TR
|
||
|
><TD
|
||
|
WIDTH="33%"
|
||
|
ALIGN="left"
|
||
|
VALIGN="top"
|
||
|
><A
|
||
|
HREF="jabberserver.html"
|
||
|
ACCESSKEY="P"
|
||
|
>Prev</A
|
||
|
></TD
|
||
|
><TD
|
||
|
WIDTH="34%"
|
||
|
ALIGN="center"
|
||
|
VALIGN="top"
|
||
|
><A
|
||
|
HREF="index.html"
|
||
|
ACCESSKEY="H"
|
||
|
>Home</A
|
||
|
></TD
|
||
|
><TD
|
||
|
WIDTH="33%"
|
||
|
ALIGN="right"
|
||
|
VALIGN="top"
|
||
|
><A
|
||
|
HREF="implementation.html"
|
||
|
ACCESSKEY="N"
|
||
|
>Next</A
|
||
|
></TD
|
||
|
></TR
|
||
|
><TR
|
||
|
><TD
|
||
|
WIDTH="33%"
|
||
|
ALIGN="left"
|
||
|
VALIGN="top"
|
||
|
>Jabberd - The Jabber.org Jabber Server</TD
|
||
|
><TD
|
||
|
WIDTH="34%"
|
||
|
ALIGN="center"
|
||
|
VALIGN="top"
|
||
|
><A
|
||
|
HREF="introduction.html"
|
||
|
ACCESSKEY="U"
|
||
|
>Up</A
|
||
|
></TD
|
||
|
><TD
|
||
|
WIDTH="33%"
|
||
|
ALIGN="right"
|
||
|
VALIGN="top"
|
||
|
>Implementing the Farm</TD
|
||
|
></TR
|
||
|
></TABLE
|
||
|
></DIV
|
||
|
></BODY
|
||
|
></HTML
|
||
|
>
|