<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>bert hubert finally blogs: Updated blog software, final PowerDNS tweaks</title>
    <link>http://blog.netherlabs.nl/articles/2006/03/26/updated-blog-software-final-powerdns-tweaks</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>code, musings and more</description>
    <item>
      <title>Updated blog software, final PowerDNS tweaks</title>
      <description>&lt;p&gt;Ok, apologies to the people that syndicate me, the URL might have changed. The timestamps on the older posts are also a bit dodgy, and the 2 comments have definitely vanished.&lt;/p&gt;

&lt;p&gt;I used to be into &amp;#8216;layout&amp;#8217; a &amp;#8220;lot&amp;#8221; so I hope you appreciate the improved appearance of this blog, including the dreaded smart quotes.&lt;/p&gt;

&lt;p&gt;Ok, onto the real content.&lt;/p&gt;

&lt;h2&gt;PowerDNS&lt;/h2&gt;

&lt;p&gt;You may recall the stunning bug I wrote about yesterday, and how I solved it. Later that day I thought of an old adage &amp;#8220;A bug is never alone&amp;#8221;, and indeed, it turned out that the negative-cache, where we store records that auhoritatively don&amp;#8217;t exist, was also cleaned in reverse, whereby we continuously removed all new entries. &lt;/p&gt;

&lt;p&gt;Fixing that bug raised the steady-state cache hitrate from 80% to 90%, which doesn&amp;#8217;t sound like a lot, but means the amount of network traffic generated to the Internet has halved.&lt;/p&gt;

&lt;p&gt;I did do something controversial and limited this negative caching to at most one hour. I&amp;#8217;m pretty sure this is what people want, and it saves heaps of memory anyhow. After an hour PowerDNS will, on getting a new query, verify if the domain name or record exists again. Sue me.&lt;/p&gt;

&lt;p&gt;I also moved the negative cache to &lt;a href="http://boost.org/libs/multi_index/doc/index.html"&gt;Boost::multi_index_container&lt;/a&gt;, I can&amp;#8217;t heap enough praise on this container. It slices, it dices.&lt;/p&gt;

&lt;p&gt;I also used it to implement user initiated cache deletion, you can now use &lt;code&gt;rec_control wipe-cache blog.netherlabs.nl&lt;/code&gt; to remove this beloved blog from your cache, in case it contained bad content. To study your cache, use &lt;code&gt;rec_control dump-cache filename&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;Pizza&lt;/h2&gt;

&lt;p&gt;No pizza news today. I&amp;#8217;m trying to think of the human angle of this blog but there is not a lot to report :-)&lt;/p&gt;</description>
      <pubDate>Sun, 26 Mar 2006 16:05:00 +0200</pubDate>
      <guid isPermaLink="false">urn:uuid:c3ddebdd-3813-41d6-a6f8-c507619eeb66</guid>
      <author>bert.hubert@netherlabs.nl (bert hubert)</author>
      <link>http://blog.netherlabs.nl/articles/2006/03/26/updated-blog-software-final-powerdns-tweaks</link>
      <category>Linux</category>
      <category>PowerDNS</category>
      <category>Netherlabs</category>
      <trackback:ping>http://blog.netherlabs.nl/articles/trackback/7</trackback:ping>
    </item>
    <item>
      <title>"Updated blog software, final PowerDNS tweaks" by online Blackjack</title>
      <description>Actually, the mobile war needlessly laughed on this flat parent. It's compulsory to be glanced! Some unit is dangerously prior. According to common sense, the blackajck systems is less unaware than a controversial table. It's forthcoming to be spoiled! Oh, that normal mind soundly hugged amid this competent air. This legislative street forecast an age lyrically.</description>
      <pubDate>Tue, 01 Aug 2006 08:47:54 +0200</pubDate>
      <guid isPermaLink="false">urn:uuid:3495064f-cde0-4b90-9c4c-6d39c2c4bafe</guid>
      <link>http://blog.netherlabs.nl/articles/2006/03/26/updated-blog-software-final-powerdns-tweaks#comment-4554</link>
    </item>
  </channel>
</rss>
