	<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US">
        <title>Nomoa.com</title>
        <subtitle>Paving the way for .NET in Tonga</subtitle>
        <link rel="alternate" type="text/html" href="http://nomoa.com/" title="Nomoa.com" /> 
        <link href="http://nomoa.com/articles/Load_Balancing_with_OpenBSD?theme=atom" rel="self"/>
		<author>
			<name>Administrator</name> 
		</author>
		<id></id>
        <generator uri="http://www.xaraya.com" version="1.00">Xarayar</generator>
		<updated>2008-03-13T01:57:42Z</updated>
		
<!-- show a header for the current publication type -->


<div class="xar-mod-head"><span class="xar-mod-title">Mind Dumps Go Here + Totally Disconnected Writings + OpenBSD</span></div>

<table border="0" cellpadding="1" cellspacing="0">
<tr>
    <td valign="top">
        Browse in :
   </td>
   <td valign="top">

                                    <a href="http://nomoa.com/frontpage/">All</a>

                 &gt;                     <a href="http://nomoa.com/articles/c1/">Soap Box</a>
<br />

                                    <a href="http://nomoa.com/frontpage/">All</a>

                 &gt;                     <a href="http://nomoa.com/articles/c1/">Soap Box</a>

                 &gt;                     <a href="http://nomoa.com/articles/c10/">Meanderings</a>
<br />

                                    <a href="http://nomoa.com/frontpage/">All</a>

                 &gt;                     <a href="http://nomoa.com/articles/c1/">Soap Box</a>

                 &gt;                     <a href="http://nomoa.com/articles/c6/">OpenBSD</a>
<br />

                                    <a href="http://nomoa.com/articles/c1-10-6/">Any of these categories</a>

                -                    <a href="http://nomoa.com/articles/c1+10+6/">All of these categories</a>
<br />
</td>
</tr>
</table>






<div class="xar-norm-outline xar-standard-box-padding xar-overflow-auto">
    <h1>Load Balancing with OpenBSD    </h1>
    <div class="xar-floatright"><a href="http://nomoa.com/articles/c1/"><img src="modules/categories/xarimages/soapbox.gif" alt="Soap Box" /></a></div>
   <div class="xar-sub">
Posted by: 
            <a href="http://nomoa.com/roles/7">Samiuela LV Taufa</a> on July 24, 2009 12:00:11 PM (4215 Reads)    </div>
    <div><p>Rolled out my first load-balanced service today and OpenBSD just makes the whole thing so much simpler. I wanted to spread the load of sending/receiving email between to Mail Servers (MX) primarily so if either machine fails, the service is not disrupted and I have time to ‘fix’ replace the broken machine.</p>  <h3>Requirement</h3>  <p>Due to compliance requirements to ‘eliminate’ Single Points of Failure I’m required to put up warm backups or services for most of our company servers.</p>  <p>Having a ‘warm’ backup server (that sits around powered on, doing nothing but waiting to be pushed into production) is such a waste of resources, so we wanted to put anything that’s a backup into ‘live’ systems.</p>  <p>There are many advantages to having a live failover instead of a warm backup, and suffice it to say OpenBSD gives us different ‘simple’ to configure options. Two solutions released ‘out-of-the-box’ with the base OS are:</p>  <ul>   <li>carp, and </li>    <li>relayd </li> </ul>  <h3>CARP </h3>  <p>We use CARP on our firewalls, which essentially means that you have two machines set up to handle the work of a single machine. In a firewall situation, CARP provides instant failover from one host to the other in the event one of the machines fail.</p>  <p>For example, machine 1 as MASTER handles all traffic but also pushes needed information to machine 2 so that if machine 1 blows up, the backup machine #2 can take over the work without any users noticing the change.</p>  <p>CARP allows multiple servers to share the same ‘face’/IP so external hosts see only one machine although 2 or more machines may be behind the CARP configuration.</p>  <p>Major/Minor requirement: All hosts support CARP.</p>  <h3>RELAYD</h3>  <p>relayd takes advantage of OpenBSD’s firewall facilities so the firewall can act as a gateway between the ‘world’ and your disparate servers.</p>  <p>For example: use relayd infront of 10 web servers, so users always see the same IP.</p>  <p>Nice things about relayd.</p>  <ol>   <li>Target Servers do not have to be OpenBSD boxes, and don’t even have to be running exactly the same thing.      <ol>       <li>One of our future goals is to provide seamless load balancing for a few Windows Hosted servers. </li>     </ol>   </li>    <li>Low overhead </li>    <li>Relayd monitors the target servers to make sure they are up before forwarding connections to them. </li>    <li>Relayd configuration rules are nice and simple, with simple default examples. </li> </ol>  <p>Read It, Learn It, Live It, Love It.</p></div>
    <div></div>
</div>
<div class="xar-normal xar-overflow-auto">
        <a class="xar-floatleft" href="http://nomoa.com/news/Kava_kuo_heka">&lt;
prev</a>&#160;            <a class="xar-floatright" href="http://nomoa.com/news/Angakehe_mo_e_faitoo">
next&gt;</a>
</div>




<p>
There are no comments attached to this item.</p>
<script type="text/javascript" src="modules/base/xartemplates/includes/submitonce.js"></script>
<dl class="xar-tabs">
       <dt class="help">
Options:
       </dt>
            <dd>
                <a href="http://nomoa.com/articles/map/">
                    View Article Map               </a>
           </dd>
            <dd>
                <a href="http://nomoa.com/articles/archive/">
                    View Archives               </a>
           </dd>
</dl>
	</feed>
