<?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: Possible Improvements to MySQL Administration</title>
	<atom:link href="http://blog.wl0.org/2009/07/possible-improvements-to-mysql-administration/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.wl0.org/2009/07/possible-improvements-to-mysql-administration/</link>
	<description>Random thoughts on different topics</description>
	<lastBuildDate>Fri, 27 Jan 2012 06:02:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: KB</title>
		<link>http://blog.wl0.org/2009/07/possible-improvements-to-mysql-administration/comment-page-1/#comment-1536</link>
		<dc:creator>KB</dc:creator>
		<pubDate>Thu, 07 Jan 2010 17:37:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.wl0.org/?p=103#comment-1536</guid>
		<description>One feature of the admin environment I am in is our use of m4 to help us generate configs for several instances and make it very easy to template our setups.

KB</description>
		<content:encoded><![CDATA[<p>One feature of the admin environment I am in is our use of m4 to help us generate configs for several instances and make it very easy to template our setups.</p>
<p>KB</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sjmudd</title>
		<link>http://blog.wl0.org/2009/07/possible-improvements-to-mysql-administration/comment-page-1/#comment-661</link>
		<dc:creator>sjmudd</dc:creator>
		<pubDate>Thu, 23 Jul 2009 22:26:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.wl0.org/?p=103#comment-661</guid>
		<description>Perhaps what you say has some truth. That doesn&#039;t mean that a non-root user can not be configured to have the right values.

If that means setting things up correctly for the mysql user then so be it. Look at Sybase, or better Oracle, which are quite precise about the rights required to run correctly. Running as root is a bit lazy as you have all privileges and can change anything you want. mysqld_safe is really meant only to restart a crashed process. Hence leave the script to do that alone. I&#039;d prefer to restart the system myself as perhaps mysqld won&#039;t recover properly or I want to investigate the cause of the crash. I&#039;d like that option to be configurable from within my.cnf so that I can choose, and I don&#039;t mind if default behaviour is to enable mysqld_safe rather than just start up the binary without this safety net.</description>
		<content:encoded><![CDATA[<p>Perhaps what you say has some truth. That doesn&#8217;t mean that a non-root user can not be configured to have the right values.</p>
<p>If that means setting things up correctly for the mysql user then so be it. Look at Sybase, or better Oracle, which are quite precise about the rights required to run correctly. Running as root is a bit lazy as you have all privileges and can change anything you want. mysqld_safe is really meant only to restart a crashed process. Hence leave the script to do that alone. I&#8217;d prefer to restart the system myself as perhaps mysqld won&#8217;t recover properly or I want to investigate the cause of the crash. I&#8217;d like that option to be configurable from within my.cnf so that I can choose, and I don&#8217;t mind if default behaviour is to enable mysqld_safe rather than just start up the binary without this safety net.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheeri</title>
		<link>http://blog.wl0.org/2009/07/possible-improvements-to-mysql-administration/comment-page-1/#comment-651</link>
		<dc:creator>Sheeri</dc:creator>
		<pubDate>Thu, 23 Jul 2009 14:19:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.wl0.org/?p=103#comment-651</guid>
		<description>The biggest reason I see for mysqld_safe to run as root is so that it can spawn mysqld and mysqld can inherit certain properties, such as ulimit values, from the root user.

For example, file descriptors.  I believe on Linux the default ulimit for non-root users for file descriptors is 1024 -- Just yesterday I ran into a client who had 595 Open_tables, a table_cache of 2048, and Opened_tables was rapidly increasing.  Why?  Because they couldn&#039;t do too many more than about 600 open tables without closing one, because they were running mysql with a user that had a ulimit -n of 1024.  

So that will definitely need to be taken into consideration.</description>
		<content:encoded><![CDATA[<p>The biggest reason I see for mysqld_safe to run as root is so that it can spawn mysqld and mysqld can inherit certain properties, such as ulimit values, from the root user.</p>
<p>For example, file descriptors.  I believe on Linux the default ulimit for non-root users for file descriptors is 1024 &#8212; Just yesterday I ran into a client who had 595 Open_tables, a table_cache of 2048, and Opened_tables was rapidly increasing.  Why?  Because they couldn&#8217;t do too many more than about 600 open tables without closing one, because they were running mysql with a user that had a ulimit -n of 1024.  </p>
<p>So that will definitely need to be taken into consideration.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sjmudd</title>
		<link>http://blog.wl0.org/2009/07/possible-improvements-to-mysql-administration/comment-page-1/#comment-647</link>
		<dc:creator>sjmudd</dc:creator>
		<pubDate>Thu, 23 Jul 2009 12:54:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.wl0.org/?p=103#comment-647</guid>
		<description>Yes, I mainly agree with you. We previously had some production boxes running multiple instances and it&#039;s clear that they interfered with each other in ways which were quite unhelpful. Since then things have changed and production boxes work as you describe: 1 instance 1 box.

We break this rule in development where for the most part performance is really not an issue and it would be a waste of resources to do things differently. However it is still inconvenient to have to use different procedures on dev boxes compared to production boxes. That&#039;s why I specifically mention the &quot;multi-instance&quot; issue.</description>
		<content:encoded><![CDATA[<p>Yes, I mainly agree with you. We previously had some production boxes running multiple instances and it&#8217;s clear that they interfered with each other in ways which were quite unhelpful. Since then things have changed and production boxes work as you describe: 1 instance 1 box.</p>
<p>We break this rule in development where for the most part performance is really not an issue and it would be a waste of resources to do things differently. However it is still inconvenient to have to use different procedures on dev boxes compared to production boxes. That&#8217;s why I specifically mention the &#8220;multi-instance&#8221; issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Reid</title>
		<link>http://blog.wl0.org/2009/07/possible-improvements-to-mysql-administration/comment-page-1/#comment-635</link>
		<dc:creator>Matt Reid</dc:creator>
		<pubDate>Thu, 23 Jul 2009 05:34:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.wl0.org/?p=103#comment-635</guid>
		<description>Some of these reasons and more are specifically why I despise running multiple instances of MySQL on one server. Aside from budget reasons I&#039;ve never understood why anyone would want to run more than one instance per server. Resource allocation and troubleshooting are a major hassle on multiple instance servers, in addition to the annoyances you&#039;ve mentioned in the article. 

If you need multiple instances on one physical server, install VMWare ESXi on the server and run one instance per virtual host. That&#039;s much simpler and much less hassle for everyone involved. 

Good write up though. :)</description>
		<content:encoded><![CDATA[<p>Some of these reasons and more are specifically why I despise running multiple instances of MySQL on one server. Aside from budget reasons I&#8217;ve never understood why anyone would want to run more than one instance per server. Resource allocation and troubleshooting are a major hassle on multiple instance servers, in addition to the annoyances you&#8217;ve mentioned in the article. </p>
<p>If you need multiple instances on one physical server, install VMWare ESXi on the server and run one instance per virtual host. That&#8217;s much simpler and much less hassle for everyone involved. </p>
<p>Good write up though. <img src='http://blog.wl0.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Callaghan</title>
		<link>http://blog.wl0.org/2009/07/possible-improvements-to-mysql-administration/comment-page-1/#comment-596</link>
		<dc:creator>Mark Callaghan</dc:creator>
		<pubDate>Wed, 22 Jul 2009 04:38:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.wl0.org/?p=103#comment-596</guid>
		<description>You describe interesting issues. There is an opportunity for MySQL (official and the community) to provide a much better wrapper to manage mysqld. This is more of an issue when you run many instances. I have experienced a few cases where restarts of critical servers were missed and there were no alerts on Uptime going backwards.

The value added mysqld wrapper can do more than just start mysqld and alert on crashes. It can also perform administrative tasks.</description>
		<content:encoded><![CDATA[<p>You describe interesting issues. There is an opportunity for MySQL (official and the community) to provide a much better wrapper to manage mysqld. This is more of an issue when you run many instances. I have experienced a few cases where restarts of critical servers were missed and there were no alerts on Uptime going backwards.</p>
<p>The value added mysqld wrapper can do more than just start mysqld and alert on crashes. It can also perform administrative tasks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arjen Lentz</title>
		<link>http://blog.wl0.org/2009/07/possible-improvements-to-mysql-administration/comment-page-1/#comment-594</link>
		<dc:creator>Arjen Lentz</dc:creator>
		<pubDate>Wed, 22 Jul 2009 01:10:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.wl0.org/?p=103#comment-594</guid>
		<description>Simon; apart from some practicalities, excellent ideas. And they can be put in practice in 5.1, if you get involved with MariaDB and the OurDelta builds.
See the respective projects and mailing lists on Launchpad, and the Freenode IRC channels #maria and #ourdelta.
(toss me an email if you have difficulty finding something)</description>
		<content:encoded><![CDATA[<p>Simon; apart from some practicalities, excellent ideas. And they can be put in practice in 5.1, if you get involved with MariaDB and the OurDelta builds.<br />
See the respective projects and mailing lists on Launchpad, and the Freenode IRC channels #maria and #ourdelta.<br />
(toss me an email if you have difficulty finding something)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sjmudd</title>
		<link>http://blog.wl0.org/2009/07/possible-improvements-to-mysql-administration/comment-page-1/#comment-582</link>
		<dc:creator>sjmudd</dc:creator>
		<pubDate>Tue, 21 Jul 2009 22:25:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.wl0.org/?p=103#comment-582</guid>
		<description>Hi. Maybe root access is not required but at least CentOS rpms run that way:

&lt;code&gt;
[root@mad06 ~]# ps auwx &#124; grep mysqld_safe
root      3184  0.0  0.0  65924  1364 ?        S    Jul05   0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid
root      9580  0.0  0.0  61184   748 pts/5    S+   00:21   0:00 grep mysqld_safe
[root@mad06 ~]# rpm -qa &#124; grep mysql
mysql-devel-5.0.45-7.el5
mysql-5.0.45-7.el5
mysql-server-5.0.45-7.el5
[root@mad06 ~]# 
&lt;/code&gt;

These are RH provided rpms but MySQL Community and Enterprise rpms behave the same.
 
We&#039;ve spoken before about MySQL Sandbox and it does sound promising. I&#039;m not entirely sure it&#039;s designed to cover all the things I mention and it&#039;s certainly not possible yet to incorporate it into the &quot;standard&quot; packages and startup scripts. However perhaps it&#039;s a promising move to make MySQL management better than it is at the moment.</description>
		<content:encoded><![CDATA[<p>Hi. Maybe root access is not required but at least CentOS rpms run that way:</p>
<p><code><br />
[root@mad06 ~]# ps auwx | grep mysqld_safe<br />
root      3184  0.0  0.0  65924  1364 ?        S    Jul05   0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid<br />
root      9580  0.0  0.0  61184   748 pts/5    S+   00:21   0:00 grep mysqld_safe<br />
[root@mad06 ~]# rpm -qa | grep mysql<br />
mysql-devel-5.0.45-7.el5<br />
mysql-5.0.45-7.el5<br />
mysql-server-5.0.45-7.el5<br />
[root@mad06 ~]#<br />
</code></p>
<p>These are RH provided rpms but MySQL Community and Enterprise rpms behave the same.</p>
<p>We&#8217;ve spoken before about MySQL Sandbox and it does sound promising. I&#8217;m not entirely sure it&#8217;s designed to cover all the things I mention and it&#8217;s certainly not possible yet to incorporate it into the &#8220;standard&#8221; packages and startup scripts. However perhaps it&#8217;s a promising move to make MySQL management better than it is at the moment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Giuseppe Maxia</title>
		<link>http://blog.wl0.org/2009/07/possible-improvements-to-mysql-administration/comment-page-1/#comment-581</link>
		<dc:creator>Giuseppe Maxia</dc:creator>
		<pubDate>Tue, 21 Jul 2009 22:18:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.wl0.org/?p=103#comment-581</guid>
		<description>Hi,
root access is not needed for mysqld_safe.
Rather than mysqld_multi, you may want to try MySQL Sandbox (http://mysqlsandbox.net), which installs multiple servers, either single or in replication, each of them shielded from other instances. All of them in normal user space, without root access at all. (mysqld_safe is not optional at the moment, but it will be in the next version)

Cheers

Giuseppe</description>
		<content:encoded><![CDATA[<p>Hi,<br />
root access is not needed for mysqld_safe.<br />
Rather than mysqld_multi, you may want to try MySQL Sandbox (<a href="http://mysqlsandbox.net" rel="nofollow">http://mysqlsandbox.net</a>), which installs multiple servers, either single or in replication, each of them shielded from other instances. All of them in normal user space, without root access at all. (mysqld_safe is not optional at the moment, but it will be in the next version)</p>
<p>Cheers</p>
<p>Giuseppe</p>
]]></content:encoded>
	</item>
</channel>
</rss>

