<?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>LAMP with ·dotmanila &#187; Perl</title>
	<atom:link href="http://dotmanila.com/blog/category/perl/feed/" rel="self" type="application/rss+xml" />
	<link>http://dotmanila.com/blog</link>
	<description>Linux, Apache, PHP, MySQL Musings</description>
	<lastBuildDate>Wed, 01 Feb 2012 23:32:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Maatkit Parallel Dump and Restore</title>
		<link>http://dotmanila.com/blog/2011/02/maatkit-parallel-dump-restor/</link>
		<comments>http://dotmanila.com/blog/2011/02/maatkit-parallel-dump-restor/#comments</comments>
		<pubDate>Mon, 07 Feb 2011 03:18:11 +0000</pubDate>
		<dc:creator>jervin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[backups]]></category>
		<category><![CDATA[maatkit]]></category>

		<guid isPermaLink="false">http://dotmanila.com/blog/?p=175</guid>
		<description><![CDATA[Maatkit&#8217;s mk-parallel-dump and mk-parallel-restore are great tools for quickly dumping and restoring your MySQL databases. I mean &#8220;quick&#8221; because it does this via user configurable number of threads. However, if you&#8217;re new to the tools, you may encounter several issues like &#8216;Out of memory!&#8217; or MySQL error &#8216;Lost connection to MySQL during query&#8230;&#8217;. Here are [...]]]></description>
			<content:encoded><![CDATA[<p>Maatkit&#8217;s mk-parallel-dump and mk-parallel-restore are great tools for quickly dumping and restoring your MySQL databases. I mean &#8220;quick&#8221; because it does this via user configurable number of threads. However, if you&#8217;re new to the tools, you may encounter several issues like &#8216;Out of memory!&#8217; or MySQL error &#8216;Lost connection to MySQL during query&#8230;&#8217;. Here are 2 tips to avoid them:</p>
<ol>
<li>Use the &#8211;chunk-size with data size option. If you have large tables (a couple of GB), dump and restore may simply consume a lot of RAM. Using &#8211;chunk-size like 20M or 50M you use a reasonable amount of memory. The tool manual also specifies more benefits when using chunks <a href="http://www.maatkit.org/doc/mk-parallel-dump.html#chunks" target="_blank">http://www.maatkit.org/doc/mk-parallel-dump.html#chunks</a></li>
<li>Make sure your server&#8217;s max_allowed_packet is large enough to accommodate large rows. When mk-parallel-restore fails with &#8220;Packet too large&#8221; error or any other error in that case, it simply emits the whole SQL statements onto the console making it hard to catch the actual error if your console buffer is too small in turn leaving you clueless if this is indeed your first time.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://dotmanila.com/blog/2011/02/maatkit-parallel-dump-restor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mk-parallel-restore Outputs BLOB Data</title>
		<link>http://dotmanila.com/blog/2010/08/mk-parallel-restore-outputs-blob-data/</link>
		<comments>http://dotmanila.com/blog/2010/08/mk-parallel-restore-outputs-blob-data/#comments</comments>
		<pubDate>Sun, 01 Aug 2010 01:54:55 +0000</pubDate>
		<dc:creator>jervin</dc:creator>
				<category><![CDATA[BSD/Mac OSX]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[maatkit]]></category>

		<guid isPermaLink="false">http://dotmanila.com/blog/?p=142</guid>
		<description><![CDATA[Recently I was playing around with the Maatkit tools specifically mk-parallel-dump and mk-parallel-restore for refreshing development database copies with production copies. A problem arises when BLOB data is being displayed on the console and transforming my shell prompt into gibberish and missing the results of the restore. Breaking the restore as soon as the BLOB [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I was playing around with the Maatkit tools specifically mk-parallel-dump and mk-parallel-restore for refreshing development database copies with production copies. A problem arises when BLOB data is being displayed on the console and transforming my shell prompt into gibberish and missing the results of the restore. Breaking the restore as soon as the BLOB starts output, it was revealed that I was getting the &#8220;Got a packet bigger then &#8216;max_allowed_packet&#8217; bytes&#8221; error. After setting this variable to a reasonable value the restore went smoothly.</p>
]]></content:encoded>
			<wfw:commentRss>http://dotmanila.com/blog/2010/08/mk-parallel-restore-outputs-blob-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mod_perlite: Reviving an old part of the dynamic web.</title>
		<link>http://dotmanila.com/blog/2009/01/mod_perlite-reviving-an-old-part-of-the-dynamic-web/</link>
		<comments>http://dotmanila.com/blog/2009/01/mod_perlite-reviving-an-old-part-of-the-dynamic-web/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 11:33:14 +0000</pubDate>
		<dc:creator>jervin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[mod_perlite]]></category>

		<guid isPermaLink="false">http://dotmanila.com/blog/?p=38</guid>
		<description><![CDATA[Back in the 90's, when the web was new and anything dynamically scripted is ever exciting, CGI scripts takes the role.As the web evolved, mod_perl made it simpler for programmers to write highly capable web applications. And indeed the web is constantly evolving. With the advent of PHP and its upload and run deployment, it took the lead with statistics.]]></description>
			<content:encoded><![CDATA[<p>Back in the 90&#8242;s, when the web was new and anything dynamically scripted is ever exciting, CGI scripts takes the role.As the web evolved, mod_perl made it simpler for programmers to write highly capable web applications. And indeed the web is constantly evolving. With the advent of PHP and its upload and run deployment, it took the lead with statistics.</p>
<p>But Perl and CGI scripts may not be lagging behind forever, with the development of mod_perlite, an Apache module the matches deployment simplicity of that of PHP, Perl may again be on the rise.</p>
<p>From its &lt;a href=&#8221;http://freshmeat.net/projects/mod_perlite/&#8221;&gt;freshmeat.net project page&lt;/a&gt;, the creators Aaron Stone and Byrne Reese describes:</p>
<p>&lt;blockquote&gt;<br />
mod_perlite is a lightweight Apache module that embeds a Perl interpreter and suggests a default configuration where any file ending in &#8220;.pl&#8221; is interpreted by Perl. It is the Perl equivalent of PHP in its simplicity and nothing like mod_perl in its complexity.<br />
&lt;/blockquote&gt;</p>
<p>I believe truly, these is one of the 5 things Perl absolutely needs to gain more adaptations from new breeds. As chromatic from the O&#8217;Reilly blog network writes on his article &lt;a href=&#8221;http://broadcast.oreilly.com/2008/12/five-features-perl-5-needs-now.html&#8221;&gt;Five Features Perl 5 Needs Now&lt;/a&gt;:</p>
<p>&lt;blockquote&gt;<br />
mod_perlite, the equivalent of mod_php for Perl. mod_perl is an amazing piece of technology, but it asks a lot of administrators &#8212; it effectively takes over the web server. Perl on the web could benefit from a system which allows cheap hosting providers to say &#8220;Just upload a few files into this directory, and everything will happen for you automatically!&#8221; without worrying about other customers on the same host fighting for resources (or namespaces or memory or&#8230;).</p>
<p>Very Serious Developers may still use mod_perl &#8212; but novices and the rest of us who aren&#8217;t handling more than a hit per second at peak time should have something easier to set up and gentler on resources than CGI.<br />
&lt;/blockquote&gt;</p>
<p>There are many programming languages out there, and many would argue popularity is a major factor for adaptation. I&#8217;d agree most of the time, as soon as mod_perlite hits your local repository shelves Perl could again gain the internet buzzwords.</p>
]]></content:encoded>
			<wfw:commentRss>http://dotmanila.com/blog/2009/01/mod_perlite-reviving-an-old-part-of-the-dynamic-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

