<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>[ t h e f r a g g l e . c o m ] &#187; FreeBSD</title>
	<atom:link href="http://www.thefraggle.com/category/freebsd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thefraggle.com</link>
	<description>technology, photography and anything else that springs to mind.</description>
	<lastBuildDate>Tue, 22 Sep 2009 15:02:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>the number of servers you run &#8230;</title>
		<link>http://www.thefraggle.com/2007/04/13/the-number-of-servers-you-run/</link>
		<comments>http://www.thefraggle.com/2007/04/13/the-number-of-servers-you-run/#comments</comments>
		<pubDate>Fri, 13 Apr 2007 17:34:32 +0000</pubDate>
		<dc:creator>Chris Ganderton</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[General Life]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://www.thefraggle.com/2007/04/13/the-number-of-servers-you-run/</guid>
		<description><![CDATA[Well reading popeys blog entry on how many servers he has, and what he uses them for made me feel a bit better than I did previously, about running more than one server of my own for personal use. I only have three servers, and a workstation and a laptop; maybe I don&#8217;t waste as [...]]]></description>
			<content:encoded><![CDATA[<p>Well reading <a href="http://www.popey.com" title="www.popey.com" target="_blank">popeys</a> blog entry on <a href="http://popey.com/What_are_you_using_machines_for" title="http://popey.com/What_are_you_using_machines_for" target="_blank">how many servers he has, and what he uses them for</a> made me feel a bit better than I did previously, about running more than one server of my own for personal use. I only have three servers, and a workstation and a laptop; maybe I don&#8217;t waste as much electricity as I thought I did <img src='http://www.thefraggle.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<ul>
<li>etch.thefraggle.com &#8211; Debian etch, xen vps from <a href="http://www.bitfolk.com">bitfolk</a>; general webserver for www.thefraggle.com, and master mail server.</li>
<li>sarge.thefraggle.com &#8211; Debian etch, xen vps from <a href="http://www.bitfolk.com">bitfolk</a>; run&#8217;s IRCd&#8217;s for <a href="http://www.blitzed.org/" title="Blitzed IRC Network">blitzed.org</a> and nixhelp.org and tertiary mail exchanger.</li>
<li>beastie.thefraggle.com &#8211; FreeBSD-6.2-stable on an old p2 400mhz 128mb ram; used to run an ircd for nixhelp, and thefraggle.com website, but now has been retired to being a development machine and tertiary mail exchanger.</li>
<li>laptop &#8211; centrino duo 1.7ghz 1gb ram; work laptop with winxp / debian etch for work stuff</li>
</ul>
<p>There&#8217;s actually another box there, my dads p4 3ghz, that I have pretty much nicked off him for day to day internetting <img src='http://www.thefraggle.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . I suppose the fact that I have three servers kind of means I am pretty geeky?</p>
<p>Would be interesting if anyone reading this also commented with what they use <img src='http://www.thefraggle.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<script type='text/javascript'>
<!--
digg_url='http://www.thefraggle.com/2007/04/13/the-number-of-servers-you-run/';
digg_skin = 'compact';
digg_bgcolor = '#FFFFFF';
digg_title = 'the number of servers you run ...';
digg_bodytext = '';
digg_topic = '';
//-->
</script>
<script type='text/javascript' src='http://digg.com/tools/diggthis.js'></script>
]]></content:encoded>
			<wfw:commentRss>http://www.thefraggle.com/2007/04/13/the-number-of-servers-you-run/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>http load balancing with squid</title>
		<link>http://www.thefraggle.com/2007/04/09/http-load-balancing-with-squid/</link>
		<comments>http://www.thefraggle.com/2007/04/09/http-load-balancing-with-squid/#comments</comments>
		<pubDate>Mon, 09 Apr 2007 17:54:17 +0000</pubDate>
		<dc:creator>Chris Ganderton</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[load balancing]]></category>
		<category><![CDATA[squid]]></category>

		<guid isPermaLink="false">http://www.thefraggle.com/2007/04/09/http-load-balancing-with-squid/</guid>
		<description><![CDATA[A while back at work I had to create a configuration for an internal squid http accelerator, and thought &#8220;hey, wouldn&#8217;t it be neat if I could load balance thefraggle.com with this method&#8221;.
Now, usually Squid is used to act as a caching proxy server, which means that client http requests are sent to the proxy [...]]]></description>
			<content:encoded><![CDATA[<p>A while back at work I had to create a configuration for an internal squid http accelerator, and thought &#8220;hey, wouldn&#8217;t it be neat if I could load balance thefraggle.com with this method&#8221;.</p>
<p>Now, usually Squid is used to act as a caching proxy server, which means that client http requests are sent to the proxy server, the proxy server then goes out onto the web and attempts to grab the request, and returns the entry back to the client; in the process caching the pages (depending on the way the cache has been set up).</p>
<p><span id="more-40"></span></p>
<p>Another neat feature that squid supports, is that it can be configured to act as a caching http accellerator. This means that you can sit a squid instance masqerading itself as your website, infront of your multiple webservers/application servers, and it will serve traffic on their behalf, performing basic round robin load balancing, and caching results based on your cache configuration.</p>
<p>The way I decided to setup this load balancing, was to use my existing main server (beastie.thefraggle.com) as the squid and primary webserver, and to use my new VPS with <a href="http://www.bitfolk.com" target="_blank" title="BitFolk VPS">bitfolk</a> (etch.thefraggle.com), as the secondary webserver. From reading the <a href="http://wiki.squid-cache.org/SquidFaq/ReverseProxy" title="SquidFAQ" target="_blank"> </a><a href="http://wiki.squid-cache.org/SquidFaq/ReverseProxy" title="SquidFAQ" target="_blank">SquidFAQ</a> I managed to come up with the following configuration:</p>
<blockquote><p><code><br />
http_port 81.171.136.148:80 defaultsite=www.thefraggle.com vhost<br />
cache_peer 127.0.0.1 parent 80 0 no-query originserver round-robin<br />
cache_peer 212.13.198.106 parent 80 0 no-query originserver round-robin</code></p></blockquote>
<p>The rest of the configuration was as standard, but if you want to see the entire thing I&#8217;ve included the file to this post:</p>
<p><a href="http://www.thefraggle.com/wp-content/uploads/2007/04/squidconf.txt" title="Squid Configuration">Squid Configuration</a></p>
<p>As you can see it&#8217;s not the most pretty configuration ever, but it was a starting point <img src='http://www.thefraggle.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>HTTP ACCEL is a pretty neat feature huh? However, I&#8217;m not sure of how useful it may be in the future, as from what I can see there is now an extension to mod_proxy in apache2, called mod_proxy_balancer; This may be able to manage this same simple kind of http load balancing. Future posts may well include how to use this, and how to do simple mysql balancing/replication <img src='http://www.thefraggle.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<script type='text/javascript'>
<!--
digg_url='http://www.thefraggle.com/2007/04/09/http-load-balancing-with-squid/';
digg_skin = 'compact';
digg_bgcolor = '#FFFFFF';
digg_title = 'http load balancing with squid';
digg_bodytext = '';
digg_topic = '';
//-->
</script>
<script type='text/javascript' src='http://digg.com/tools/diggthis.js'></script>
]]></content:encoded>
			<wfw:commentRss>http://www.thefraggle.com/2007/04/09/http-load-balancing-with-squid/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
