<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: HA EC2 Part #2: Load Balancing the Load Balancer</title>
	<atom:link href="http://blog.apokalyptik.com/2006/11/13/ha-ec2-part-2-load-balancing-the-load-balancer/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.apokalyptik.com/2006/11/13/ha-ec2-part-2-load-balancing-the-load-balancer/</link>
	<description>The random things that spew forth from my brain...</description>
	<lastBuildDate>Mon, 16 Jan 2012 18:43:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-alpha-19620</generator>
	<item>
		<title>By: David Masover</title>
		<link>http://blog.apokalyptik.com/2006/11/13/ha-ec2-part-2-load-balancing-the-load-balancer/comment-page-2/#comment-7636</link>
		<dc:creator>David Masover</dc:creator>
		<pubDate>Tue, 29 Jan 2008 11:50:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.apokalyptik.com/?p=154#comment-7636</guid>
		<description>Here&#039;s an idea I&#039;m toying with: 
 
ANY dns service (dyndns.com, zoneedit.com, xname.org, etc) which can run in slave mode. 
 
Then, use some EC2 instance -- probably your load balancers -- as a powerdns master. I chose powerdns because, after looking at just about every DNS server and library I could find, it&#039;s the closest to a pluggable/scriptable server. 
 
Mainly, it has a &#039;pipe&#039; API, in which it communicates via stdin/stdout with a simple, tab-delimited format. It&#039;s not entirely documented, but I was able to get the SOA field working by using spaces to delimit the actual SOA data. 
 
This will not perform incredibly well, but it doesn&#039;t have to. All it really has to do is implement AXFR, and maybe do some local resolution for your other EC2 instances. 
 
Of course, you have to tell them (somehow) if the master changes, and it may take a bit longer for those changes to propagate. But it means that you can do pretty much anything with your DNS. It also means that rather than learn a whole new API for your entire DNS implementation, you only have to learn it for the one operation of updating the master IP address -- could be as simple as a single POST. </description>
		<content:encoded><![CDATA[<p>Here&#039;s an idea I&#039;m toying with:</p>
<p>ANY dns service (dyndns.com, zoneedit.com, xname.org, etc) which can run in slave mode.</p>
<p>Then, use some EC2 instance &#8212; probably your load balancers &#8212; as a powerdns master. I chose powerdns because, after looking at just about every DNS server and library I could find, it&#039;s the closest to a pluggable/scriptable server.</p>
<p>Mainly, it has a &#039;pipe&#039; API, in which it communicates via stdin/stdout with a simple, tab-delimited format. It&#039;s not entirely documented, but I was able to get the SOA field working by using spaces to delimit the actual SOA data.</p>
<p>This will not perform incredibly well, but it doesn&#039;t have to. All it really has to do is implement AXFR, and maybe do some local resolution for your other EC2 instances.</p>
<p>Of course, you have to tell them (somehow) if the master changes, and it may take a bit longer for those changes to propagate. But it means that you can do pretty much anything with your DNS. It also means that rather than learn a whole new API for your entire DNS implementation, you only have to learn it for the one operation of updating the master IP address &#8212; could be as simple as a single POST.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manuel Simoni</title>
		<link>http://blog.apokalyptik.com/2006/11/13/ha-ec2-part-2-load-balancing-the-load-balancer/comment-page-2/#comment-5792</link>
		<dc:creator>Manuel Simoni</dc:creator>
		<pubDate>Sun, 25 Feb 2007 06:10:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.apokalyptik.com/?p=154#comment-5792</guid>
		<description>OK, thanks. BTW, great site!</description>
		<content:encoded><![CDATA[<p>OK, thanks. BTW, great site!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: apokalyptik</title>
		<link>http://blog.apokalyptik.com/2006/11/13/ha-ec2-part-2-load-balancing-the-load-balancer/comment-page-2/#comment-5790</link>
		<dc:creator>apokalyptik</dc:creator>
		<pubDate>Sat, 24 Feb 2007 07:07:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.apokalyptik.com/?p=154#comment-5790</guid>
		<description>yes, you can definately do that. lb1 and lb2 names are mainly there for ease of administration.  It&#039;s a lot handier to just &quot;ssh lb1.foo.com&quot; than listing your instances and finding the one which is a load balancer. </description>
		<content:encoded><![CDATA[<p>yes, you can definately do that. lb1 and lb2 names are mainly there for ease of administration.  It&#039;s a lot handier to just &quot;ssh lb1.foo.com&quot; than listing your instances and finding the one which is a load balancer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manuel Simoni</title>
		<link>http://blog.apokalyptik.com/2006/11/13/ha-ec2-part-2-load-balancing-the-load-balancer/comment-page-1/#comment-5788</link>
		<dc:creator>Manuel Simoni</dc:creator>
		<pubDate>Sat, 24 Feb 2007 00:08:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.apokalyptik.com/?p=154#comment-5788</guid>
		<description>Instead of the extra addresses lb1.example.com and lb2.example.com, wouldn&#039;t it be possible that each load balancer just regularly checks whether lb.example.com works, and when it doesn&#039;t, register its own IP via the DNS API? </description>
		<content:encoded><![CDATA[<p>Instead of the extra addresses lb1.example.com and lb2.example.com, wouldn&#039;t it be possible that each load balancer just regularly checks whether lb.example.com works, and when it doesn&#039;t, register its own IP via the DNS API?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: apokalyptik</title>
		<link>http://blog.apokalyptik.com/2006/11/13/ha-ec2-part-2-load-balancing-the-load-balancer/comment-page-1/#comment-4064</link>
		<dc:creator>apokalyptik</dc:creator>
		<pubDate>Sun, 07 Jan 2007 12:58:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.apokalyptik.com/?p=154#comment-4064</guid>
		<description>Yes, theres a reason that DNS has been used for so long: It&#039;s robust, and it works.   
 
This is the kind of deviation from standards which make life difficult in large paradigm shifts like this. I&#039;m sure that whoever implemented this thought to themselves &quot;a DNS entry worth hard coding is not likely to ever change anyway...&quot; However now that we&#039;re moving into the compute-as-a-service era the above statement no longer holds anywhere near true.   
 
I expect that this will eventually be addressed as services like EC2 become more widespread in use especially now that JAVA is going OSS.  (This is exactly the kind of &quot;bug&quot; fixing that OSS is exceptionally well suited to deal with) </description>
		<content:encoded><![CDATA[<p>Yes, theres a reason that DNS has been used for so long: It&#039;s robust, and it works.  </p>
<p>This is the kind of deviation from standards which make life difficult in large paradigm shifts like this. I&#039;m sure that whoever implemented this thought to themselves &quot;a DNS entry worth hard coding is not likely to ever change anyway&#8230;&quot; However now that we&#039;re moving into the compute-as-a-service era the above statement no longer holds anywhere near true.  </p>
<p>I expect that this will eventually be addressed as services like EC2 become more widespread in use especially now that JAVA is going OSS.  (This is exactly the kind of &quot;bug&quot; fixing that OSS is exceptionally well suited to deal with)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Loughran</title>
		<link>http://blog.apokalyptik.com/2006/11/13/ha-ec2-part-2-load-balancing-the-load-balancer/comment-page-1/#comment-4055</link>
		<dc:creator>Steve Loughran</dc:creator>
		<pubDate>Sun, 07 Jan 2007 12:38:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.apokalyptik.com/?p=154#comment-4055</guid>
		<description>Its documented on Sun&#039;s site:  &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/guide/net/properties.html&quot; rel=&quot;nofollow&quot;&gt;http://java.sun.com/j2se/1.5.0/docs/guide/net/pro...&lt;/a&gt;  
 
networkaddress.cache.ttl (default: -1) 
networkaddress.cache.negative.ttl (default: 10) 
 
The infinite cache was added to stop long lived applets getting access to hosts behind a firewall through DNS abuse, but it stays in apps too. really old jvms (1.2 and maybe 1.3) saved negative dns entries forever. this is bad news as a temporary outage of a DNS server would never be recovered from.  
 
TTLs -they are there for a reason, and it is the duty of client side apps to remember them.  
 
I wonder if proxies have similar behaviour? Interesting thought... </description>
		<content:encoded><![CDATA[<p>Its documented on Sun&#039;s site:<br />
  <a href="http://java.sun.com/j2se/1.5.0/docs/guide/net/properties.html" rel="nofollow">http://java.sun.com/j2se/1.5.0/docs/guide/net/pro&#8230;</a>  </p>
<p>networkaddress.cache.ttl (default: -1)</p>
<p>networkaddress.cache.negative.ttl (default: 10)</p>
<p>The infinite cache was added to stop long lived applets getting access to hosts behind a firewall through DNS abuse, but it stays in apps too. really old jvms (1.2 and maybe 1.3) saved negative dns entries forever. this is bad news as a temporary outage of a DNS server would never be recovered from. </p>
<p>TTLs -they are there for a reason, and it is the duty of client side apps to remember them. </p>
<p>I wonder if proxies have similar behaviour? Interesting thought&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: apokalyptik</title>
		<link>http://blog.apokalyptik.com/2006/11/13/ha-ec2-part-2-load-balancing-the-load-balancer/comment-page-1/#comment-4014</link>
		<dc:creator>apokalyptik</dc:creator>
		<pubDate>Sat, 06 Jan 2007 10:47:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.apokalyptik.com/?p=154#comment-4014</guid>
		<description>oooh interesting caveat. (I&#039;m not a java guy personally...) </description>
		<content:encoded><![CDATA[<p>oooh interesting caveat. (I&#039;m not a java guy personally&#8230;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Loughran</title>
		<link>http://blog.apokalyptik.com/2006/11/13/ha-ec2-part-2-load-balancing-the-load-balancer/comment-page-1/#comment-4012</link>
		<dc:creator>Steve Loughran</dc:creator>
		<pubDate>Sat, 06 Jan 2007 10:41:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.apokalyptik.com/?p=154#comment-4012</guid>
		<description>Except that the default TTL of nslookups in a JVM is *forever*, so unless your clients start their JVMs with java.net.ttl=1000 (or whatever) you&#039;re in trouble. As long as your clients arent JVMs or Java applets (whose hostname caches cannot be changed for security reasons) this is an non issue. </description>
		<content:encoded><![CDATA[<p>Except that the default TTL of nslookups in a JVM is *forever*, so unless your clients start their JVMs with java.net.ttl=1000 (or whatever) you&#039;re in trouble. As long as your clients arent JVMs or Java applets (whose hostname caches cannot be changed for security reasons) this is an non issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Kerswill</title>
		<link>http://blog.apokalyptik.com/2006/11/13/ha-ec2-part-2-load-balancing-the-load-balancer/comment-page-1/#comment-3982</link>
		<dc:creator>Tom Kerswill</dc:creator>
		<pubDate>Fri, 05 Jan 2007 18:02:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.apokalyptik.com/?p=154#comment-3982</guid>
		<description>Certainly will! Am in the process of setting all  the DNS stuff up at the mo. I love the idea of being able to keep firing up instances as a backup if the main server fails. 
 
Actually I&#039;m quite optimistic about using the DNS failover in this way. What I&#039;m now less sure about is using S3 as the backup, to store home directories, etc. Loading in all the volatile data (eg. html files, php, etc) from S3 to the EC2 seems to take hours --- far too long to make it viable as a switch-on-and-go backup :-( Though each time I test it, it seems to get faster... which is at least encouraging! </description>
		<content:encoded><![CDATA[<p>Certainly will! Am in the process of setting all  the DNS stuff up at the mo. I love the idea of being able to keep firing up instances as a backup if the main server fails.</p>
<p>Actually I&#039;m quite optimistic about using the DNS failover in this way. What I&#039;m now less sure about is using S3 as the backup, to store home directories, etc. Loading in all the volatile data (eg. html files, php, etc) from S3 to the EC2 seems to take hours &#8212; far too long to make it viable as a switch-on-and-go backup <img src='http://blog.apokalyptik.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />  Though each time I test it, it seems to get faster&#8230; which is at least encouraging!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: apokalyptik</title>
		<link>http://blog.apokalyptik.com/2006/11/13/ha-ec2-part-2-load-balancing-the-load-balancer/comment-page-1/#comment-3968</link>
		<dc:creator>apokalyptik</dc:creator>
		<pubDate>Fri, 05 Jan 2007 12:27:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.apokalyptik.com/?p=154#comment-3968</guid>
		<description>Very interesting! I hope you&#039;ll send some of your findings on the DNS service my way? </description>
		<content:encoded><![CDATA[<p>Very interesting! I hope you&#039;ll send some of your findings on the DNS service my way?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using memcached
Page Caching using memcached
Database Caching using memcached
Object Caching 356/357 objects using memcached

Served from: blog.apokalyptik.com @ 2012-02-08 17:40:02 -->
