<?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: The perils of InnoDB with Debian and startup scripts</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2009/01/28/the-perils-of-innodb-with-debian-and-startup-scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2009/01/28/the-perils-of-innodb-with-debian-and-startup-scripts/</link>
	<description>Everything about MySQL Performance</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:23:57 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Markus</title>
		<link>http://www.mysqlperformanceblog.com/2009/01/28/the-perils-of-innodb-with-debian-and-startup-scripts/comment-page-1/#comment-473224</link>
		<dc:creator>Markus</dc:creator>
		<pubDate>Thu, 12 Feb 2009 08:14:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=600#comment-473224</guid>
		<description>g, you don&#039;t need to cry, as ch wrote above the behaviour was already changed about a year ago.</description>
		<content:encoded><![CDATA[<p>g, you don&#8217;t need to cry, as ch wrote above the behaviour was already changed about a year ago.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: g</title>
		<link>http://www.mysqlperformanceblog.com/2009/01/28/the-perils-of-innodb-with-debian-and-startup-scripts/comment-page-1/#comment-460878</link>
		<dc:creator>g</dc:creator>
		<pubDate>Sun, 01 Feb 2009 03:26:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=600#comment-460878</guid>
		<description>Yet another brain damaged Debian &quot;improvement&quot;. 

Memo to debian package maintainers: You are *package maintainers*.  If you want to change the way MySQL *behaves*, SUBMIT A PATCH LIKE EVERYONE ELSE, IF FOR NO OTHER REASON THAN TO HAVE IT REFLECTED IN THE OFFICIAL DOCUMENTATION EVERYONE (except a few of us crusty old farts who don&#039;t trust anyone or anything we don&#039;t build ourselves) RELIES UPON.

Seriously...</description>
		<content:encoded><![CDATA[<p>Yet another brain damaged Debian &#8220;improvement&#8221;. </p>
<p>Memo to debian package maintainers: You are *package maintainers*.  If you want to change the way MySQL *behaves*, SUBMIT A PATCH LIKE EVERYONE ELSE, IF FOR NO OTHER REASON THAN TO HAVE IT REFLECTED IN THE OFFICIAL DOCUMENTATION EVERYONE (except a few of us crusty old farts who don&#8217;t trust anyone or anything we don&#8217;t build ourselves) RELIES UPON.</p>
<p>Seriously&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Baron Schwartz</title>
		<link>http://www.mysqlperformanceblog.com/2009/01/28/the-perils-of-innodb-with-debian-and-startup-scripts/comment-page-1/#comment-459663</link>
		<dc:creator>Baron Schwartz</dc:creator>
		<pubDate>Fri, 30 Jan 2009 02:48:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=600#comment-459663</guid>
		<description>I agree 100%.  One thing I didn&#039;t say -- there might be a reason for a custom startup script -- but it&#039;s not this.  Just don&#039;t put mysql_check_upgrade (that only needs to be run *one time*!) and don&#039;t put mysqlcheck in it.  But you might put a script to warm up your indexes or something like that.  Something that&#039;s too complex to put in the --init-file option.</description>
		<content:encoded><![CDATA[<p>I agree 100%.  One thing I didn&#8217;t say &#8212; there might be a reason for a custom startup script &#8212; but it&#8217;s not this.  Just don&#8217;t put mysql_check_upgrade (that only needs to be run *one time*!) and don&#8217;t put mysqlcheck in it.  But you might put a script to warm up your indexes or something like that.  Something that&#8217;s too complex to put in the &#8211;init-file option.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2009/01/28/the-perils-of-innodb-with-debian-and-startup-scripts/comment-page-1/#comment-459657</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Fri, 30 Jan 2009 02:45:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=600#comment-459657</guid>
		<description>Baron,

In reality it is not clear to me why do it this way all together.
If you want tables to be checked and repaired on startup  myisam_recover  is the decent option.   If this causes problems because MySQL starts to check and repair a lot of tables at the same time blocking all connections  may be MyISAM is simply not the right choice for you.

Running check in the background is the broken middle ground - you still have some queries ran against corrupted MyISAM tables which can cause wrong query results or further corruption and you can still get MySQL stalled/running out of connections when a lot of connections block waiting for some large commonly accessed table which is being checked.</description>
		<content:encoded><![CDATA[<p>Baron,</p>
<p>In reality it is not clear to me why do it this way all together.<br />
If you want tables to be checked and repaired on startup  myisam_recover  is the decent option.   If this causes problems because MySQL starts to check and repair a lot of tables at the same time blocking all connections  may be MyISAM is simply not the right choice for you.</p>
<p>Running check in the background is the broken middle ground &#8211; you still have some queries ran against corrupted MyISAM tables which can cause wrong query results or further corruption and you can still get MySQL stalled/running out of connections when a lot of connections block waiting for some large commonly accessed table which is being checked.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Baron Schwartz</title>
		<link>http://www.mysqlperformanceblog.com/2009/01/28/the-perils-of-innodb-with-debian-and-startup-scripts/comment-page-1/#comment-459233</link>
		<dc:creator>Baron Schwartz</dc:creator>
		<pubDate>Thu, 29 Jan 2009 14:05:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=600#comment-459233</guid>
		<description>Norbert, I don&#039;t think it&#039;s the init script Vide meant; it&#039;s the install/deinstall.  I agree -- it shouldn&#039;t try to start/stop automatically.  This is not a mistake unique to Debian :-)</description>
		<content:encoded><![CDATA[<p>Norbert, I don&#8217;t think it&#8217;s the init script Vide meant; it&#8217;s the install/deinstall.  I agree &#8212; it shouldn&#8217;t try to start/stop automatically.  This is not a mistake unique to Debian <img src='http://www.mysqlperformanceblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Baron Schwartz</title>
		<link>http://www.mysqlperformanceblog.com/2009/01/28/the-perils-of-innodb-with-debian-and-startup-scripts/comment-page-1/#comment-459232</link>
		<dc:creator>Baron Schwartz</dc:creator>
		<pubDate>Thu, 29 Jan 2009 14:02:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=600#comment-459232</guid>
		<description>Changing the script isn&#039;t enough to avoid the problems with the data dictionary, BTW.  Just touching the table causes InnoDB to allocate space for it, which it will never release again until it&#039;s restarted.  And you have to touch the table to find out its engine, so you can&#039;t know a priori which tables not to touch.  Any scripts that query the INFORMATION_SCHEMA upon startup are also a very bad idea on installations with lots of tables.

I still advise to disable the script, period, unless you know you want it enabled.</description>
		<content:encoded><![CDATA[<p>Changing the script isn&#8217;t enough to avoid the problems with the data dictionary, BTW.  Just touching the table causes InnoDB to allocate space for it, which it will never release again until it&#8217;s restarted.  And you have to touch the table to find out its engine, so you can&#8217;t know a priori which tables not to touch.  Any scripts that query the INFORMATION_SCHEMA upon startup are also a very bad idea on installations with lots of tables.</p>
<p>I still advise to disable the script, period, unless you know you want it enabled.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Norbert Tretkowski</title>
		<link>http://www.mysqlperformanceblog.com/2009/01/28/the-perils-of-innodb-with-debian-and-startup-scripts/comment-page-1/#comment-459122</link>
		<dc:creator>Norbert Tretkowski</dc:creator>
		<pubDate>Thu, 29 Jan 2009 11:29:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=600#comment-459122</guid>
		<description>Vide, just drop a mail to the Debian BTS with your suggestions and patches. It&#039;s too late to change things for lenny, but we can talk about your suggestions and patches for squeeze.

Btw, I&#039;m using the stock init scripts in &quot;real mysql installations&quot; (50+ servers), and they are working just fine.</description>
		<content:encoded><![CDATA[<p>Vide, just drop a mail to the Debian BTS with your suggestions and patches. It&#8217;s too late to change things for lenny, but we can talk about your suggestions and patches for squeeze.</p>
<p>Btw, I&#8217;m using the stock init scripts in &#8220;real mysql installations&#8221; (50+ servers), and they are working just fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vide</title>
		<link>http://www.mysqlperformanceblog.com/2009/01/28/the-perils-of-innodb-with-debian-and-startup-scripts/comment-page-1/#comment-459047</link>
		<dc:creator>Vide</dc:creator>
		<pubDate>Thu, 29 Jan 2009 09:24:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=600#comment-459047</guid>
		<description>Yep, the stock Mysql Debian init script sucks so badly that it&#039;s almost mandatory for every sysadmin out there with a real Mysql installation to fine tune them. Moreover it sucks almost as well that scripts in the .deb packages stop/start Mysql without asking. There are situations in which you want to update the binary quickly but you want a controlled restart.</description>
		<content:encoded><![CDATA[<p>Yep, the stock Mysql Debian init script sucks so badly that it&#8217;s almost mandatory for every sysadmin out there with a real Mysql installation to fine tune them. Moreover it sucks almost as well that scripts in the .deb packages stop/start Mysql without asking. There are situations in which you want to update the binary quickly but you want a controlled restart.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brice Figureau</title>
		<link>http://www.mysqlperformanceblog.com/2009/01/28/the-perils-of-innodb-with-debian-and-startup-scripts/comment-page-1/#comment-458903</link>
		<dc:creator>Brice Figureau</dc:creator>
		<pubDate>Thu, 29 Jan 2009 06:57:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=600#comment-458903</guid>
		<description>My first action after installing mysql on Debian is to comment the check_for_crashed call (actually not really me, but Puppet is doing it for me).</description>
		<content:encoded><![CDATA[<p>My first action after installing mysql on Debian is to comment the check_for_crashed call (actually not really me, but Puppet is doing it for me).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: http://www.anvilon.com/</title>
		<link>http://www.mysqlperformanceblog.com/2009/01/28/the-perils-of-innodb-with-debian-and-startup-scripts/comment-page-1/#comment-458541</link>
		<dc:creator>http://www.anvilon.com/</dc:creator>
		<pubDate>Wed, 28 Jan 2009 21:03:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=600#comment-458541</guid>
		<description>I have also used the &quot;KILL 7&quot; approach in the past and found that another thread is often opened up immediately with a &quot;CHECK TABLE&quot; on the next table in the database.  I needed to keep killing threads until it gets to the end.  [Ubuntu 8.04 Hardy]</description>
		<content:encoded><![CDATA[<p>I have also used the &#8220;KILL 7&#8243; approach in the past and found that another thread is often opened up immediately with a &#8220;CHECK TABLE&#8221; on the next table in the database.  I needed to keep killing threads until it gets to the end.  [Ubuntu 8.04 Hardy]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
