<?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</title>
	<atom:link href="http://dotmanila.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://dotmanila.com/blog</link>
	<description>Linux, Apache, PHP, MySQL Musings</description>
	<lastBuildDate>Sun, 01 Apr 2012 17:24:01 +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>Optimizing OR&#8217;ed WHERE Clauses Between JOIN&#8217;ed Tables</title>
		<link>http://dotmanila.com/blog/2012/04/optimizing-ored-where-clauses-between-joined-tables/</link>
		<comments>http://dotmanila.com/blog/2012/04/optimizing-ored-where-clauses-between-joined-tables/#comments</comments>
		<pubDate>Sun, 01 Apr 2012 17:24:01 +0000</pubDate>
		<dc:creator>jervin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[optimization]]></category>

		<guid isPermaLink="false">http://dotmanila.com/blog/?p=288</guid>
		<description><![CDATA[OR conditions are normally difficult to optimize when used on different columns, a pain when the columns are of range conditions and worst when done between 2 or more different tables. Look at my example below, the original query  is trying to find rows which conditions are based on columns from the JOIN&#8217;ed tables. mysql [...]]]></description>
			<content:encoded><![CDATA[<p>OR conditions are normally difficult to optimize when used on different columns, a pain when the columns are of range conditions and worst when done between 2 or more different tables. Look at my example below, the original query  is trying to find rows which conditions are based on columns from the JOIN&#8217;ed tables.</p>
<pre>mysql [localhost] {msandbox} (employees) &gt; EXPLAIN SELECT
    -&gt;      e.emp_no, birth_date, first_name,
    -&gt;      last_name, gender, hire_date,
    -&gt;      salary, from_date, to_date
    -&gt; FROM employees e
    -&gt; INNER JOIN salaries s ON (e.emp_no = s.emp_no)
    -&gt; WHERE e.hire_date BETWEEN '1990-06-01 00:00:00' AND '1990-07-01 00:00:00' OR
    -&gt;      s.from_date BETWEEN '1990-06-01 00:00:00' AND '1990-07-01 00:00:00'
    -&gt; ORDER BY e.emp_no, hire_date, from_date \G
*************************** 1. row ***************************
           id: 1
  select_type: SIMPLE
        table: e
         type: ALL
possible_keys: PRIMARY,hire_date
          key: NULL
      key_len: NULL
          ref: NULL
         rows: 300547
        Extra: Using temporary; Using filesort
*************************** 2. row ***************************
           id: 1
  select_type: SIMPLE
        table: s
         type: ref
possible_keys: PRIMARY,emp_no,from_date
          key: PRIMARY
      key_len: 4
          ref: employees.e.emp_no
         rows: 4
        Extra: Using where
2 rows in set (0.00 sec)

mysql [localhost] {msandbox} (employees) &gt; SHOW CREATE TABLE employees \G
*************************** 1. row ***************************
       Table: employees
Create Table: CREATE TABLE `employees` (
  `emp_no` int(11) NOT NULL,
  `birth_date` date NOT NULL,
  `first_name` varchar(14) NOT NULL,
  `last_name` varchar(16) NOT NULL,
  `gender` enum('M','F') NOT NULL,
  `hire_date` date NOT NULL,
  PRIMARY KEY (`emp_no`),
  KEY `hire_date` (`hire_date`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
1 row in set (0.00 sec)

mysql [localhost] {msandbox} (employees) &gt; SHOW CREATE TABLE salaries \G
*************************** 1. row ***************************
       Table: salaries
Create Table: CREATE TABLE `salaries` (
  `emp_no` int(11) NOT NULL,
  `salary` int(11) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  PRIMARY KEY (`emp_no`,`from_date`),
  KEY `emp_no` (`emp_no`),
  KEY `from_date` (`from_date`),
  CONSTRAINT `salaries_ibfk_1` FOREIGN KEY (`emp_no`) REFERENCES `employees` (`emp_no`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1
1 row in set (0.00 sec)</pre>
<p>If you look at the execution plan, the optimizer will always do a full table scan of the first table even though there is proper indexes on employees.hire_date and salaries.from_date. This is because it cannot know in advance which rows from the second table will match the rows from the second table, the OR conditions needs to match both tables. For the sake of brevity, observe what happens if I change the OR condition to AND instead.</p>
<pre>*************************** 1. row ***************************
           id: 1
  select_type: SIMPLE
        table: e
         type: range
possible_keys: PRIMARY,hire_date
          key: hire_date
      key_len: 3
          ref: NULL
         rows: 2101
        Extra: Using where; Using temporary; Using filesort
*************************** 2. row ***************************
           id: 1
  select_type: SIMPLE
        table: s
         type: ref
possible_keys: PRIMARY,emp_no,from_date
          key: PRIMARY
      key_len: 4
          ref: employees.e.emp_no
         rows: 4
        Extra: Using where
2 rows in set (0.00 sec)</pre>
<p>As you can see, the optimizer now used the hire_date index in which for every matching row, there is about 4 rows matching on the second table.</p>
<p>Notice how many index reads and the full table scan the original query does. Imagine if you are working on a reporting query based on date ranges that has millions of rows for the first table, you might have to wait the next day for the results!</p>
<pre>mysql [localhost] {msandbox} (employees) &gt; SELECT
    -&gt;      e.emp_no, birth_date, first_name,
    -&gt;      last_name, gender, hire_date,
    -&gt;      salary, from_date, to_date
    -&gt; FROM employees e
    -&gt; INNER JOIN salaries s ON (e.emp_no = s.emp_no)
    -&gt; WHERE e.hire_date BETWEEN '1990-06-01 00:00:00' AND '1990-07-01 00:00:00' OR
    -&gt;      s.from_date BETWEEN '1990-06-01 00:00:00' AND '1990-07-01 00:00:00'
    -&gt; ORDER BY e.emp_no, hire_date, from_date;

b5abad9ac152d6289d4cc62b7d71fb83  -
28133 rows in set (1.39 sec)

mysql [localhost] {msandbox} (employees) &gt; NOPAGER; SHOW STATUS LIKE 'Handler%';
PAGER set to stdout
+----------------------------+---------+
| Variable_name              | Value   |
+----------------------------+---------+
...
| Handler_read_key           | 300025  |
| Handler_read_next          | 2844047 |
| Handler_read_prev          | 0       |
| Handler_read_rnd           | 28133   |
| Handler_read_rnd_next      | 328159  |
...
| Handler_write              | 28133   |
+----------------------------+---------+
15 rows in set (0.00 sec)</pre>
<p>Because the queries need to return rows matching both tables, we can rewrite it as UNION instead separating the WHERE clauses into 2 different SELECT queries like below.</p>
<pre>mysql [localhost] {msandbox} (employees) &gt; PAGER md5sum; FLUSH STATUS;
PAGER set to 'md5sum'
Query OK, 0 rows affected (0.00 sec)

mysql [localhost] {msandbox} (employees) &gt; (
    -&gt; SELECT
    -&gt;      e.emp_no, birth_date, first_name,
    -&gt;      last_name, gender, hire_date,
    -&gt;      salary, from_date, to_date
    -&gt; FROM employees e
    -&gt; INNER JOIN salaries s ON (e.emp_no = s.emp_no)
    -&gt; WHERE e.hire_date BETWEEN '1990-06-01 00:00:00' AND '1990-07-01 00:00:00'
    -&gt; )
    -&gt; UNION
    -&gt; (
    -&gt; SELECT e.emp_no, birth_date, first_name,
    -&gt;      last_name, gender, hire_date,
    -&gt;      salary, from_date, to_date
    -&gt; FROM employees e
    -&gt; INNER JOIN salaries s ON (e.emp_no = s.emp_no)
    -&gt; WHERE s.from_date BETWEEN '1990-06-01 00:00:00' AND '1990-07-01 00:00:00'
    -&gt; )
    -&gt; ORDER BY emp_no, hire_date, from_date;
b5abad9ac152d6289d4cc62b7d71fb83  -
28133 rows in set (0.14 sec)

mysql [localhost] {msandbox} (employees) &gt; NOPAGER; SHOW STATUS LIKE 'Handler%';
PAGER set to stdout
+----------------------------+-------+
| Variable_name              | Value |
+----------------------------+-------+
...
| Handler_read_key           | 11746 |
| Handler_read_next          | 31302 |
| Handler_read_prev          | 0     |
| Handler_read_rnd           | 28133 |
| Handler_read_rnd_next      | 28134 |
...
| Handler_write              | 29200 |
+----------------------------+-------+
15 rows in set (0.00 sec)</pre>
<p>With this approach, you are actually limiting the number of rows needed to be examined immediately before being JOINed. There is no real downsize with the new query, you just have to watch out that results from both SELECT&#8217;s does not grow too large, nearly the size of the total rows of both tables. In which case, you should not be doing the latter anyway i.e. trying to filter with big date ranges especially if you have very large dataset, instead you should implement summary tables that produces the results you need.</p>
]]></content:encoded>
			<wfw:commentRss>http://dotmanila.com/blog/2012/04/optimizing-ored-where-clauses-between-joined-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Promote a MySQL Slave as Master with Zero Downtime</title>
		<link>http://dotmanila.com/blog/2012/02/promote-a-mysql-slave-as-master-with-zero-downtime/</link>
		<comments>http://dotmanila.com/blog/2012/02/promote-a-mysql-slave-as-master-with-zero-downtime/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 23:32:54 +0000</pubDate>
		<dc:creator>jervin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[replication]]></category>

		<guid isPermaLink="false">http://dotmanila.com/blog/?p=267</guid>
		<description><![CDATA[Whether you are upgrading, decommissioning or putting your current master server in maintenance &#8211; here&#8217;s a quick howto on promoting your slave server as new master for your application writes. This instructions (for my notes and the benefit of the researching readers) covers especially if you have multiple slaves attached to the master. Let&#8217;s assume that your [...]]]></description>
			<content:encoded><![CDATA[<p>Whether you are upgrading, decommissioning or putting your current master server in maintenance &#8211; here&#8217;s a quick howto on promoting your slave server as new master for your application writes. This instructions (for my notes and the benefit of the researching readers) covers especially if you have multiple slaves attached to the master. Let&#8217;s assume that your current active master is host A and the host you&#8217;d like to promote is host B.</p>
<ol>
<li><code>STOP SLAVE;</code> on all slaves including <strong>B</strong> that are attached to <strong>A</strong> directly.</li>
<li>Make sure that <code>log_slave_updates</code> and <code>bin_log</code> is <strong>ON</strong> on <strong>B</strong>.</li>
<li>If you are not taking <strong>A</strong> out of rotation and planning to switch back to it later as your master, you can configure it as slave of <strong>B</strong> forming a master-master pair. Simply take the <code>SHOW MASTER STATUS;</code> coordinates from <strong>B</strong> and use it to <code>CHANGE MASTER TO</code> for <strong>A</strong>.</li>
<li>Save <code>SHOW MASTER STATUS;</code> output from <strong>A</strong>.</li>
<li>Start replication on all the slaves that are attach to <strong>A</strong> again, but only until the coordinates you get from #3 using the syntax <code>START SLAVE UNTIL MASTER_LOG_FILE=&lt;log_file&gt;, MASTER_LOG_POS=&lt;log_pos&gt;</code>. This ensures that all slaves are caught up at exactly the same position so you can safely point them to replicate later to <strong>B</strong>.</li>
<li>Once all slaves have caught up on the same coordinates, now its time to reconfigure the rest of the slaves except <strong>B</strong> to replicate from <strong>B</strong>. Using the <code>SHOW MASTER STATUS;</code> coordinates from <strong>B</strong>, execute a <code>CHANGE MASTER TO MASTER_HOST=B ...</code></li>
<li>Now its time to fetch the remaining events from <strong>A</strong> to <strong>B</strong>, on <strong>B</strong>, <code>STOP SLAVE;</code> then <code>START SLAVE;</code> again, this time replication will retrieve all events since the coordinates we stopped at #4.</li>
<li>Once <strong>B</strong> and its slaves has caught up on replication, you can now point your application to send writes to <strong>B</strong>.</li>
<li>Lastly if you are taking <strong>A</strong> out of rotation but keeping it online, <code>RESET SLAVE;</code> on <strong>B</strong> after <code>Exec_Master_Log_Pos</code> and <code>Read_Master_Log_Pos</code> on <strong>B</strong> have stopped on the same position so that no further writes from <strong>A</strong> is replicated to <strong>B</strong>.</li>
</ol>
<p>Did I miss anything? Of course &#8211; not all failovers are the same, this guide is meant as an overview and must be reviewed to match your situation always. Comments welcome! <img src='http://dotmanila.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://dotmanila.com/blog/2012/02/promote-a-mysql-slave-as-master-with-zero-downtime/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Anaconda Invalid Software RAID Metadata Version on Fedora 16</title>
		<link>http://dotmanila.com/blog/2012/01/anaconda-invalid-software-raid-metadata-version-on-fedora-16/</link>
		<comments>http://dotmanila.com/blog/2012/01/anaconda-invalid-software-raid-metadata-version-on-fedora-16/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 14:58:52 +0000</pubDate>
		<dc:creator>jervin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[anaconda]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[software raid]]></category>

		<guid isPermaLink="false">http://dotmanila.com/blog/?p=261</guid>
		<description><![CDATA[In case you are upgrading to Fedora 16 and trying to use a software RAID for the /boot partition, at some point Anaconda is bound to complain that the RAID metadata version is invalid. Well this is a known bug and a workaround is available from this bug report. In my case if I just [...]]]></description>
			<content:encoded><![CDATA[<p>In case you are upgrading to Fedora 16 and trying to use a software RAID for the /boot partition, at some point Anaconda is bound to complain that the RAID metadata version is invalid. Well this is a known bug and a workaround is available from this <a href="https://bugzilla.redhat.com/show_bug.cgi?id=750480">bug report</a>.</p>
<p>In my case if I just specify the &#8220;updates&#8221; boot option, Anaconda will try to automatically configure networking &#8211; too bad if you don not have DHCP available. However, if you specify an alternative install method to Anaconda, it will ask you to manually configure your network, in this case you will be able ti use the updates image as well. In short, you just have to specify something like this on your boot options:</p>
<p><code>repo=http://mirror.steadfast.net/fedora/releases/16/Fedora/x86_64/os/ updates=http://dlehman.fedorapeople.org/updates/updates-750480.3.img</code></p>
<p>The only downside is that, obviously, your install media will be over the network. If you have a slow connection then that&#8217;s another story. Do you know any workaround?</p>
]]></content:encoded>
			<wfw:commentRss>http://dotmanila.com/blog/2012/01/anaconda-invalid-software-raid-metadata-version-on-fedora-16/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Where&#8217;s My PHP Debug Symbols?</title>
		<link>http://dotmanila.com/blog/2012/01/wheres-php-debug-symbols/</link>
		<comments>http://dotmanila.com/blog/2012/01/wheres-php-debug-symbols/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 13:52:19 +0000</pubDate>
		<dc:creator>jervin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://dotmanila.com/blog/?p=258</guid>
		<description><![CDATA[While working on a PHP script recently when I stumble upon a nasty bug that leaves only a &#8220;Segmentation fault&#8221; while preparing statements with Zend_Db_Adapter_Mysqli. Attempting to gdb the same process only results in gibberish like below and nothing more. The problem is that, the PHP cli is a stripped binary and on CentOS (and [...]]]></description>
			<content:encoded><![CDATA[<p>While working on a PHP script recently when I stumble upon a <a href="https://bugs.php.net/bug.php?id=55414">nasty bug</a> that leaves only a &#8220;Segmentation fault&#8221; while preparing statements with Zend_Db_Adapter_Mysqli. Attempting to gdb the same process only results in gibberish like below and nothing more. The problem is that, the PHP cli is a stripped binary and on CentOS (and Fedora 14 at least with PHP 5.3.8) there is no debuginfo package to provide these symbols, you&#8217;ll have to compile PHP yourself to debug further.</p>
<p><code><br />
#19635 0x000000000046b13b in ?? ()<br />
#19636 0x000000000046b231 in ?? ()<br />
#19637 0x000000000046b13b in ?? ()<br />
#19638 0x000000000046b231 in ?? ()<br />
#19639 0x000000000046cb3f in ?? ()<br />
#19640 0x000000000047c76f in php_pcre_exec ()<br />
#19641 0x0000000000480d46 in php_pcre_replace_impl ()<br />
---Type to continue, or q to quit---<br />
#19642 0x0000000000481f0d in ?? ()<br />
#19643 0x0000000000482504 in ?? ()<br />
#19644 0x0000000000482a33 in ?? ()<br />
#19645 0x00000000005e8f19 in ?? ()<br />
#19646 0x00000000005e847b in execute ()<br />
#19647 0x00000000005c1395 in zend_execute_scripts ()<br />
#19648 0x0000000000571418 in php_execute_script ()<br />
#19649 0x000000000064b5a0 in ?? ()<br />
#19650 0x000000314821d994 in __libc_start_main () from /lib64/libc.so.6<br />
#19651 0x00000000004222b9 in _start ()<br />
</code></p>
<p>My appeal to the PHP package builders (CentOS/Fedora mainstream, RPMForge, Atomic) &#8211; please please please &#8211; include a debuginfo package on your repo <img src='http://dotmanila.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://dotmanila.com/blog/2012/01/wheres-php-debug-symbols/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Take Control of XtraBackup Backup Directory</title>
		<link>http://dotmanila.com/blog/2011/11/take-control-of-xtrabackup-backup-directory/</link>
		<comments>http://dotmanila.com/blog/2011/11/take-control-of-xtrabackup-backup-directory/#comments</comments>
		<pubDate>Thu, 24 Nov 2011 13:23:30 +0000</pubDate>
		<dc:creator>jervin</dc:creator>
				<category><![CDATA[Backups]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[backups]]></category>
		<category><![CDATA[xtrabackup]]></category>

		<guid isPermaLink="false">http://dotmanila.com/blog/?p=227</guid>
		<description><![CDATA[When designing you backup strategy which involves using XtraBackup, it is often part of the job to be able to rotate backups not to fill the disks and not be able to take further backups. However, sometimes I&#8217;ve seen people how they can do this when XtraBackup creates its own timestamped directory (by default). Well, [...]]]></description>
			<content:encoded><![CDATA[<p>When designing you backup strategy which involves using XtraBackup, it is often part of the job to be able to rotate backups not to fill the disks and not be able to take further backups. However, sometimes I&#8217;ve seen people how they can do this when XtraBackup creates its own timestamped directory (by default). Well, here&#8217;s two.</p>
<p>1. After the backup, find the latest backup set on the backup directory using bash or whichever scripting language you are using, by default the resulting directory for new backup sets takes this sample format &#8217;2010-03-13_02-42-44&#8242;. Below is how you can achieve this with bash</p>
<p><code>CB=$(ls -1 | egrep '^[0-9]{4}-[0-9]{2}-[0-9]{2}_[0-9]{2}-[0-9]{2}-[0-9]{2}$' | sort -n | head -n 1)</code></p>
<p>2. Use the &#8211;no-timestamp option of innobackupex to control the backup directories.</p>
<blockquote><p><code>--no-timestamp<br />
This option prevents creation of a time-stamped subdirectory of the<br />
BACKUP-ROOT-DIR given on the command line. When it is specified, the<br />
backup is done in BACKUP-ROOT-DIR instead.</code></p></blockquote>
<p>With this method, you will have to create the unique backup directories from your script, which in turn you would already know the resulting name you can use for prepare. You can easily generate one based on current date with the sample bash command below:</p>
<p><code>CURDATE=$(date +%Y-%m-%d)</code></p>
<p>This is only one essential part of a good backup procedure, I might blog on more. <img src='http://dotmanila.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://dotmanila.com/blog/2011/11/take-control-of-xtrabackup-backup-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Intel 320 Series SSD and WD RAID10 (md) sysbench Results</title>
		<link>http://dotmanila.com/blog/2011/10/intel-320-series-ssd-and-wd-raid10-md-sysbench-results/</link>
		<comments>http://dotmanila.com/blog/2011/10/intel-320-series-ssd-and-wd-raid10-md-sysbench-results/#comments</comments>
		<pubDate>Wed, 12 Oct 2011 12:28:31 +0000</pubDate>
		<dc:creator>jervin</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[fileio]]></category>
		<category><![CDATA[intel 320 series]]></category>
		<category><![CDATA[sysbench]]></category>
		<category><![CDATA[wester digital caviar]]></category>

		<guid isPermaLink="false">http://dotmanila.com/blog/?p=220</guid>
		<description><![CDATA[As mentioned on my previous post, I am moving out of a Dell R210 server to a new hardware with 4x Western Digital 500G Caviar Blue and Intel 320 Series 120G for my own personal research and testing. The four WD disks are configured in RAID10 with mdadm (aka software RAID) and the SSD as [...]]]></description>
			<content:encoded><![CDATA[<p>As mentioned on my <a href="http://dotmanila.com/blog/2011/10/sas-raid1-sysbench-fileio-with-2x500gb-disks/">previous post</a>, I am moving out of a Dell R210 server to a new hardware with 4x Western Digital 500G Caviar Blue and Intel 320 Series 120G for my own personal research and testing. The four WD disks are configured in RAID10 with mdadm (aka software RAID) and the SSD as standalone. Raw results can be found on my gists page <a href="https://gist.github.com/1281040">here</a> and <a href="https://gist.github.com/1281071">here</a>.</p>
<p><img class="alignnone" title="4xWD Caviar RAID10 (md)" src="http://dotmanila.com/static/sysbench-4xhdd-raid10-md.jpg" alt="" width="500" height="360" /></p>
<p><img class="alignnone" title="Intel 320 Series 120G SSD" src="http://dotmanila.com/static/sysbench-ssd.jpg" alt="" width="500" height="360" /></p>
]]></content:encoded>
			<wfw:commentRss>http://dotmanila.com/blog/2011/10/intel-320-series-ssd-and-wd-raid10-md-sysbench-results/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SAS RAID1 sysbench fileio with 2x500GB Disks</title>
		<link>http://dotmanila.com/blog/2011/10/sas-raid1-sysbench-fileio-with-2x500gb-disks/</link>
		<comments>http://dotmanila.com/blog/2011/10/sas-raid1-sysbench-fileio-with-2x500gb-disks/#comments</comments>
		<pubDate>Wed, 12 Oct 2011 03:32:34 +0000</pubDate>
		<dc:creator>jervin</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[fileio]]></category>
		<category><![CDATA[raid1]]></category>
		<category><![CDATA[sas]]></category>
		<category><![CDATA[sysbench]]></category>

		<guid isPermaLink="false">http://dotmanila.com/blog/?p=215</guid>
		<description><![CDATA[I am migrating to another server for my testing and this blog, but before I leave this server I decided to do a simple sysbench fileio test using 60G total file size. Raw information about the server and results can be found here. See the beautiful graph below.]]></description>
			<content:encoded><![CDATA[<p>I am migrating to another server for my testing and this blog, but before I leave this server I decided to do a simple sysbench fileio test using 60G total file size. Raw information about the server and results can be found <a href="https://gist.github.com/1274579" target="_blank">here</a>. See the beautiful graph below.</p>
<p><img class="alignnone" title="SAS RAID1 sysbench fileio Results" src="http://dotmanila.com/static/sysbench-sas-raid1.jpg" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://dotmanila.com/blog/2011/10/sas-raid1-sysbench-fileio-with-2x500gb-disks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Solr DataImportHandler Converts TINYINT to Boolean</title>
		<link>http://dotmanila.com/blog/2011/08/solr-dataimporthandler-converts-tinyint-to-boolean/</link>
		<comments>http://dotmanila.com/blog/2011/08/solr-dataimporthandler-converts-tinyint-to-boolean/#comments</comments>
		<pubDate>Sat, 13 Aug 2011 14:36:06 +0000</pubDate>
		<dc:creator>jervin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Solr]]></category>

		<guid isPermaLink="false">http://dotmanila.com/blog/?p=189</guid>
		<description><![CDATA[When using Solr DataImportHandler with MySQL, the JDBC connection treats TINYINT(1) columns as BOOLEAN even if you have other values greater than. Most likely with a properly defined field of int type on your schema.xml you will get an error while indexing: SEVERE: java.lang.NumberFormatException: For input string: &#8220;true&#8221; This is a default behavior of Connector/J [...]]]></description>
			<content:encoded><![CDATA[<p>When using Solr DataImportHandler with MySQL, the JDBC connection treats TINYINT(1) columns as BOOLEAN even if you have other values greater than. Most likely with a properly defined field of int type on your schema.xml you will get an error while indexing:</p>
<blockquote><p>SEVERE: java.lang.NumberFormatException: For input string: &#8220;true&#8221;</p></blockquote>
<p>This is a default behavior of Connector/J on the property <strong>tinyInt1isBit</strong> documented <a href="http://dev.mysql.com/doc/refman/5.0/en/connector-j-reference-configuration-properties.html">here</a>. To fix this you should add <code>tinyInt1isBit=false</code> to your JDBC connection string.</p>
]]></content:encoded>
			<wfw:commentRss>http://dotmanila.com/blog/2011/08/solr-dataimporthandler-converts-tinyint-to-boolean/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Puppet Certificate Verification Failed</title>
		<link>http://dotmanila.com/blog/2011/07/puppet-certificate-verification-failed/</link>
		<comments>http://dotmanila.com/blog/2011/07/puppet-certificate-verification-failed/#comments</comments>
		<pubDate>Tue, 05 Jul 2011 02:13:35 +0000</pubDate>
		<dc:creator>jervin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[ntp]]></category>
		<category><![CDATA[puppet]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://dotmanila.com/blog/?p=186</guid>
		<description><![CDATA[err: Could not retrieve catalog from remote server: certificate verify failed If you&#8217;re new to puppet, this error is a bit tricky to identify. Even after recreating the certificates on the client the error still persist. If this is the case, most likely is that time on your master and the client is different. Install [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>err: Could not retrieve catalog from remote server: certificate verify failed</p></blockquote>
<p>If you&#8217;re new to puppet, this error is a bit tricky to identify. Even after recreating the certificates on the client the error still persist. If this is the case, most likely is that time on your master and the client is different. Install and sync NTP &#8211; this should be a standard component for new servers anyway.</p>
]]></content:encoded>
			<wfw:commentRss>http://dotmanila.com/blog/2011/07/puppet-certificate-verification-failed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rdiff-backup User and Group Mapping</title>
		<link>http://dotmanila.com/blog/2011/06/rdiff-backup-user-and-group-mapping/</link>
		<comments>http://dotmanila.com/blog/2011/06/rdiff-backup-user-and-group-mapping/#comments</comments>
		<pubDate>Tue, 07 Jun 2011 10:56:20 +0000</pubDate>
		<dc:creator>jervin</dc:creator>
				<category><![CDATA[Backups]]></category>
		<category><![CDATA[BSD/Mac OSX]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[backups]]></category>
		<category><![CDATA[rdiff-backup]]></category>
		<category><![CDATA[rsync]]></category>

		<guid isPermaLink="false">http://dotmanila.com/blog/?p=182</guid>
		<description><![CDATA[rdiff-backup is a great tool for mirroring or backing up files locally and between remote servers. It is based on rsync and works on top of SSH. To this note, I recently encountered one caveat when using the &#8211;user-mapping-file and &#8211;group-mapping-file options. Because these options intends to map a source user/group to a destination user/group [...]]]></description>
			<content:encoded><![CDATA[<p>rdiff-backup is a great tool for mirroring or backing up files locally and between remote servers. It is based on rsync and works on top of SSH. To this note, I recently encountered one caveat when using the &#8211;user-mapping-file and &#8211;group-mapping-file options. Because these options intends to map a source user/group to a destination user/group it requires rdiff-backup to run on escalated privileges much as &#8220;chown&#8221; command would do.</p>
]]></content:encoded>
			<wfw:commentRss>http://dotmanila.com/blog/2011/06/rdiff-backup-user-and-group-mapping/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

