<?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>Admins Goodies &#187; amazon-rds</title>
	<atom:link href="http://adminsgoodies.com/tag/amazon-rds/feed/" rel="self" type="application/rss+xml" />
	<link>http://adminsgoodies.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Tue, 21 May 2013 16:33:04 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>EC2 Ubuntu with WordPress can&#8217;t connect to RDS</title>
		<link>http://adminsgoodies.com/ec2-ubuntu-with-wordpress-cant-connect-to-rds/</link>
		<comments>http://adminsgoodies.com/ec2-ubuntu-with-wordpress-cant-connect-to-rds/#comments</comments>
		<pubDate>Sat, 22 Dec 2012 17:36:14 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[amazon-ec2]]></category>
		<category><![CDATA[amazon-rds]]></category>
		<category><![CDATA[amazon-web-services]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu-12.04]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/ec2-ubuntu-with-wordpress-cant-connect-to-rds/</guid>
		<description><![CDATA[I have set up a WordPress website on a Ubuntu 12.04 Amazon ec2 machine by following this tutorial except the fact that I haven&#8217;t created a MySQL database and I am using an amazon RDS MySQL service. Everything works fine and I am able to create a configuration file during installation but when the installer asks for MySQL credentials. When I fill in the RDS credentials they don&#8217;t work. I even tried entering the credentials [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>I have set up a WordPress website on a Ubuntu 12.04 Amazon ec2 machine by following <a href="http://www.wpwebhost.com/install-wordpress-in-ubuntu-12-04-lts-localhost-lampp-server/" rel="nofollow">this tutorial</a> except the fact that I haven&#8217;t created a MySQL database and I am using an amazon RDS MySQL service.</p>
<p>Everything works fine and I am able to create a configuration file during installation but when the installer asks for MySQL credentials. When I fill in the RDS credentials they don&#8217;t work.<br />
I even tried entering the credentials manually in the <code>wp-confiq</code> file and still it said it couldn&#8217;t connect to the database .</p>
<p>I tried to test out the same credentials on another WordPress installation in a shared hosting environment and the result was the same.</p>
<p>Then on the ec2 WordPress server I installed MySQL and then provided the MySQL details during installation and everything worked fine hence proving its something to do with RDS only.</p>
<p>Additional Details:</p>
<ol>
<li>
<p>The DB security Group has only one security: the EC2 Security Group</p>
</li>
<li>
<p>Both EC2 and RDS are located in AWS singapore southeast-1a regions</p>
</li>
<li>
<p>EC2 Security: only port 22 (<code>ssh</code>) and 80 (<code>http</code>) opened</p>
</li>
</ol>
<div class="author">Asked by <a href="http://serverfault.com/users/150312/danny" target="_blank">Danny</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>Check that you can connect to the instance with the command line. See instructions here: </p>
<p><a href="http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ConnectToInstance.html" rel="nofollow">http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ConnectToInstance.html</a></p>
<p>Maybe you have a problem with the credentials or with the network. Once you find the root cause it is easier to solve it.</p>
<div class="author">Answered by <a href="http://serverfault.com/users/147375/guy" target="_blank">Guy</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/460198/ec2-ubuntu-with-wordpress-cant-connect-to-rds" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/ec2-ubuntu-with-wordpress-cant-connect-to-rds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amazon RDS and users, security</title>
		<link>http://adminsgoodies.com/amazon-rds-and-users-security/</link>
		<comments>http://adminsgoodies.com/amazon-rds-and-users-security/#comments</comments>
		<pubDate>Mon, 29 Oct 2012 16:35:39 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[amazon-rds]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/amazon-rds-and-users-security/</guid>
		<description><![CDATA[By default you got a username and password for your RDS database. Would it be dangerous to use the credentials on your production website, say in php files? Or is it necessary to create a user with less control of the db (e.g. only read)? However I can&#8217;t find the place to add user on amazon&#8217;s console. Asked by StCee Every production site needs to have credentials for the corresponding database they use. These files [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>By default you got a username and password for your RDS database. Would it be dangerous to use the credentials on your production website, say in php files? </p>
<p>Or is it necessary to create a user with less control of the db (e.g. only read)? However I can&#8217;t find the place to add user on amazon&#8217;s console. </p>
<div class="author">Asked by <a href="http://serverfault.com/users/138327/stcee" target="_blank">StCee</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>Every production site needs to have credentials for the corresponding database they use. These files however shouldn&#8217;t be served directly by the web-server.</p>
<p>This means, that for example a .php file shouldn&#8217;t be just delivered as plain text BUT it should be interpreted. This you can set in your appache config for the corresponding server and you probably already did if you can see the results of <code>echo phpinfo();</code> when putting into a php file, and loading it in your browser.</p>
<p>That means, when you give these credentials into the php file, lets say like:</p>
<pre><code>$db_user = &lt;user&gt;
$db_pass = &lt;pass&gt;
</code></pre>
<p>It won&#8217;t be avaible for the &#8220;outside&#8221; world. However your application will be able to use these for joining to the appropiate database server.</p>
<div class="author">Answered by <a href="http://serverfault.com/users/101260/burninggramma" target="_blank">burninggramma</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/442974/amazon-rds-and-users-security" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/amazon-rds-and-users-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cheapest High Available Web Server [closed]</title>
		<link>http://adminsgoodies.com/cheapest-high-available-web-server-closed/</link>
		<comments>http://adminsgoodies.com/cheapest-high-available-web-server-closed/#comments</comments>
		<pubDate>Wed, 03 Oct 2012 16:33:29 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[amazon-ec2]]></category>
		<category><![CDATA[amazon-elb]]></category>
		<category><![CDATA[amazon-rds]]></category>
		<category><![CDATA[amazon-web-services]]></category>
		<category><![CDATA[high-availability]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/cheapest-high-available-web-server-closed/</guid>
		<description><![CDATA[I would like to create a high-available setup (e.g. a small cluster) for a webserver, i.e. it will run Apache, PHP and MySQL. There will be between 2-8 small websites running with only very little traffic and workload. High availability is however very important. I don&#8217;t want to be dependent on 1 datacenter, so there must be a minimum of 2 servers placed in different datacenters, and if one server goes down, the user must [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>I would like to create a high-available setup (e.g. a small cluster) for a webserver, i.e. it will run Apache, PHP and MySQL.</p>
<p>There will be between 2-8 small websites running with only very little traffic and workload. High availability is however very important.</p>
<p>I don&#8217;t want to be dependent on 1 datacenter, so there must be a minimum of 2 servers placed in different datacenters, and if one server goes down, the user must experience no or only a minimum of downtime &#8211; and no data loss.</p>
<p>I have considered Amazon AWS using their Elastic Load Balancing, since it is possible to buy 2 EC2 instances in 2 availability zones and set up load balancing and RDS (Multi-AZ).</p>
<p>However this seems rather expensive. Using the AWS price calculator <a href="http://calculator.s3.amazonaws.com/calc5.html" rel="nofollow">http://calculator.s3.amazonaws.com/calc5.html</a> it totals to 185$/month the first year (including the free tier).</p>
<p>Are my calculations incorrect or is there a cheaper way to make this HA setup?</p>
<p>Best regards</p>
<div class="author">Asked by <a href="http://serverfault.com/users/139504/xyz" target="_blank">xyz</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>sorry cheap and high-available aren&#8217;t two words that have ever gone together. You get what you pay for and generally speaking a service like AWS is going to be the cheapest option you can get if you use a reserved instance. </p>
<div class="author">Answered by <a href="http://serverfault.com/users/23818/mike" target="_blank">Mike</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/434464/cheapest-high-available-web-server" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/cheapest-high-available-web-server-closed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RDS Replication across regions</title>
		<link>http://adminsgoodies.com/rds-replication-across-regions/</link>
		<comments>http://adminsgoodies.com/rds-replication-across-regions/#comments</comments>
		<pubDate>Tue, 10 Jul 2012 16:34:24 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[amazon-rds]]></category>
		<category><![CDATA[amazon-web-services]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/rds-replication-across-regions/</guid>
		<description><![CDATA[We are using Amazon AWS for our web services but given the recent instabilities in their infrastructure, we are trying to figure out how to run our application across multiple regions for additional redundancy. Ideally, we would run our entire app in a active-active configuration in multiple regions but our main concern is that we are using RDS, which I understand cannot replicate across regions. One possible solution (though we have not tried or proven [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>We are using Amazon AWS for our web services but given the recent instabilities in their infrastructure, we are trying to figure out how to run our application across multiple regions for additional redundancy.</p>
<p>Ideally, we would run our entire app in a active-active configuration in multiple regions but our main concern is that we are using RDS, which I understand cannot replicate across regions.  </p>
<p>One possible solution (though we have not tried or proven it would work) would be to do <code>mysqldump</code> or EBS snapshots every hour or so but this would mean that we would be forced to run in an active-passive configuration.  Our data would be at most an hour behind.  This carries its own issues around data synchronization when we failover and the master comes back up, so its not the best solution.</p>
<p>Are there any proven solutions for replicating RDS across regions?  </p>
<div class="author">Asked by <a href="http://serverfault.com/users/67213/bryan-migliorisi" target="_blank">Bryan Migliorisi</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>I guess the short answer is: Cannot do this.</p>
<p>If you want to do this, you need to run your own MySQL instances instead of using RDS.  Lame answer, and I am surprised that Amazon has decided to not support multiple region replication given their alleged dedication to scalable, redundant and fault tolerant infrastructure.</p>
<p>Oh well :\</p>
<div class="author">Answered by <a href="http://serverfault.com/users/67213/bryan-migliorisi" target="_blank">Bryan Migliorisi</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/404070/rds-replication-across-regions" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/rds-replication-across-regions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amazon RDS: What are IO Requests?</title>
		<link>http://adminsgoodies.com/amazon-rds-what-are-io-requests/</link>
		<comments>http://adminsgoodies.com/amazon-rds-what-are-io-requests/#comments</comments>
		<pubDate>Wed, 09 May 2012 02:33:10 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[amazon-rds]]></category>
		<category><![CDATA[io]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/amazon-rds-what-are-io-requests/</guid>
		<description><![CDATA[I have an RDS instance that is costing me a lot of money. From my account activity on amazon I see that the instance has had about 800,000,000 IO requests over the past 7 days. To give you a little perspective, my app only gets about 6,000 unique visits a day and it doesn&#8217;t make that many database connections. So, what exactly is an IO Request, and why would that number be so unearthly high? [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>I have an RDS instance that is costing me a lot of money. From my account activity on amazon I see that the instance has had about 800,000,000 IO requests over the past 7 days.</p>
<p>To give you a little perspective, my app only gets about 6,000 unique visits a day and it doesn&#8217;t make that many database connections.</p>
<p>So, what exactly is an IO Request, and why would that number be so unearthly high? I&#8217;m willing to do whatever it takes to my app to reduce that cost if necessary, but I&#8217;m not sure what&#8217;s really going on.</p>
<p>I would appreciate your thoughts.</p>
<div class="author">Asked by <a href="http://serverfault.com/users/120281/abe" target="_blank">Abe</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>Ah, Amazon Web Services.  One of the biggest moneysinks available.  Very good, but not always cheap.  Actually, almost never cheap, and always difficult to estimate expenses.</p>
<p>An IO request is a disk-operation. Be that a read, or a write, you&#8217;re basically being  charged with how much data you&#8217;re getting off their system.  It&#8217;s insane.</p>
<p>You can estimate the IO Requests you&#8217;re making, by looking at iostat.</p>
<p>800,000,000 IOrequests in 7 days.. That&#8217;s ~=1300 IOPS .  Wow.  That&#8217;s some wickedfast performance.  </p>
<blockquote>
<p>As an example, a medium sized website database might be 100 GB in size<br />
  and expect to average 100 I/Os per second over the course of a month.<br />
  This would translate to $10 per month in storage costs (100 GB x<br />
  $0.10/month), and approximately $26 per month in request costs (~2.6<br />
  million seconds/month x 100 I/O per second * $0.10 per million I/O).</p>
<p>From <a href="http://aws.amazon.com/ebs/" rel="nofollow">http://aws.amazon.com/ebs/</a> about 90% of the way down the page</p>
</blockquote>
<p>If you really want to reduce what this is costing you, it might be time to look at whether RDS is really the best fit for your application and project budget.  </p>
<p>If you&#8217;ve only got 6k hits a day, you might do better on cost and performance with a dedicated server (preferably 2 of em, one for DB, one for web services).<br />
It&#8217;s actually a bit more difficult to make that call as you&#8217;ve not said too much more about your application. </p>
<div class="author">Answered by <a href="http://serverfault.com/users/16732/tom-oconnor" target="_blank">Tom O&#039;Connor</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/386947/amazon-rds-what-are-io-requests" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/amazon-rds-what-are-io-requests/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do you recover you RDS master user username?</title>
		<link>http://adminsgoodies.com/how-do-you-recover-you-rds-master-user-username/</link>
		<comments>http://adminsgoodies.com/how-do-you-recover-you-rds-master-user-username/#comments</comments>
		<pubDate>Mon, 16 Apr 2012 20:33:05 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[amazon-rds]]></category>
		<category><![CDATA[amazon-web-services]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[rds]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/how-do-you-recover-you-rds-master-user-username/</guid>
		<description><![CDATA[Resetting the RDS master user&#8217;s password is simple enough, but how do you find your master users username? Asked by mkirk The master user name can be recovered with the rds-describe-db-instances command. Answered by Jan Fabry Check more discussion of this question.]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>Resetting the RDS master user&#8217;s password is simple enough, but how do you find your master users username?</p>
<div class="author">Asked by <a href="http://serverfault.com/users/72107/mkirk" target="_blank">mkirk</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p><a href="http://jonsimpson.co.uk/log/2011/lost-rds-master-user-login" rel="nofollow">The master user name can be recovered</a> with the <a href="http://docs.amazonwebservices.com/AmazonRDS/latest/CommandLineReference/CLIReference-cmd-DescribeDBInstances.html" rel="nofollow"><code>rds-describe-db-instances</code></a> command. </p>
<div class="author">Answered by <a href="http://serverfault.com/users/6757/jan-fabry" target="_blank">Jan Fabry</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/276541/how-do-you-recover-you-rds-master-user-username" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/how-do-you-recover-you-rds-master-user-username/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I/O intensive MySql server on Amazon AWS</title>
		<link>http://adminsgoodies.com/io-intensive-mysql-server-on-amazon-aws/</link>
		<comments>http://adminsgoodies.com/io-intensive-mysql-server-on-amazon-aws/#comments</comments>
		<pubDate>Thu, 29 Mar 2012 02:33:09 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[amazon-ec2]]></category>
		<category><![CDATA[amazon-rds]]></category>
		<category><![CDATA[amazon-web-services]]></category>
		<category><![CDATA[io]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/io-intensive-mysql-server-on-amazon-aws/</guid>
		<description><![CDATA[We recently moved from a traditional Data Center to cloud computing on AWS. We are developing a product in partnership with another company, and we need to create a database server for the product we&#8217;ll release. I have been using Amazon Web Services for the past 3 years, but this is the first time I received a spec with this very specific hardware configuration. I know there are trade-offs and that real hardware will always [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>We recently moved from a traditional Data Center to cloud computing on AWS. We are developing a product in partnership with another company, and we need to create a database server for the product we&#8217;ll release.</p>
<p>I have been using Amazon Web Services for the past 3 years, but this is the first time I received a spec with this very specific hardware configuration.</p>
<p>I know there are trade-offs and that real hardware will always be faster than virtual machines, and knowing that fact forehand, what would you recommend?</p>
<p>1) Amazon EC2?<br />
2) Amazon RDS?<br />
3) Something else?<br />
4) Forget it baby, stick to the real hardware </p>
<p>Here is the hardware requirements</p>
<p>This server will be focused on I/O and MySQL for the statistics, memory size and disk space for the images hosting.</p>
<p><strong>Server 1</strong></p>
<p><strong>I/O</strong><br />
The very main part on this server will be I/O processing, FusionIO cards have proven themselves extremely efficient, this is currently the best you can have in this domain.<br />
o Fusion ioDrive2 MLC 365GB (http://www.fusionio.com/load/-media-/1m66wu/docsLibrary/FIO_ioDrive2_Datasheet.pdf)</p>
<p><strong>CPU</strong><br />
MySQL will use less CPU cores than Apache but it will use them very hard, the E7 family has 30M Cache L3 wichi provide boost performance :<br />
o 1x Intel E7-2870 will be ok.</p>
<p><strong>Storage</strong><br />
SAS will be good enough in terms of performance, especially considering the space required.<br />
o RAID 10 of 4 x SAS 10k or 15k for a total available space of 512 GB.</p>
<p><strong>Memory</strong><br />
o 64 GB minimum is required on this server considering the size of the statistics database.<br />
Warning: the statistics database will grow quickly, if possible consider starting with 128 GB directly, it will help.<br />
This server will be focused on I/O and MySQL for the statistics, memory size and disk space for the images hosting.</p>
<p><strong>Server 2</strong></p>
<p><strong>I/O</strong><br />
The very main part on this server will be I/O processing, FusionIO cards have proven themselves extremely efficient, this is currently the best you can have in this domain.<br />
o Fusion ioDrive2 MLC 365GB (http://www.fusionio.com/load/-media-/1m66wu/docsLibrary/FIO_ioDrive2_Datasheet.pdf)</p>
<p><strong>CPU</strong><br />
MySQL will use less CPU cores than Apache but it will use them very hard, the E7 family has 30M Cache L3 wichi provide boost performance :<br />
o 1x Intel E7-2870 will be ok.</p>
<p><strong>Storage</strong><br />
SAS will be good enough in terms of performance, especially considering the space required.<br />
o RAID 10 of 4 x SAS 10k or 15k for a total available space of 512 GB.</p>
<p><strong>Memory</strong><br />
o 64 GB minimum is required on this server considering the size of the statistics database.<br />
Warning: the statistics database will grow quickly, if possible consider starting with 128 GB directly, it will help.</p>
<p>Thanks in advance.</p>
<p>Best,</p>
<div class="author">Asked by <a href="http://serverfault.com/users/115703/rhossi" target="_blank">rhossi</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p><strong>The problems:</strong></p>
<ul>
<li>The two servers you have listed above are absolutely identical.</li>
<li>You talk about FusionIO but you also talk about running MySQL and Apache on the same box.</li>
<li>You don&#8217;t mention whether the Apache files or the MySQL database (or parts of it such as the <code>ib_logfile</code>) will be on the FusionIO drives.</li>
</ul>
<p><strong>The misconception:</strong></p>
<p>It&#8217;s not necessarily true that &#8220;real hardware will always be faster than virtual machines&#8221;.  It is true that <em>on the same hardware</em> the same application will perform better for not being in a virtual machine but since you don&#8217;t have access to Amazon&#8217;s hardware, that comparison is moot.</p>
<p>The point about the cloud is that it scales horizontally, so if you can serve 100 simultaneous visitors with one server, you can serve 1000 simultaneous visitors with 10 servers and each visitor receives the same speed of response, no matter how many of them you have.</p>
<p><strong>The cloud:</strong></p>
<p>There are a few key differences with cloud providers compared to colocation.  If you are able to take advantage of them, they will make hosting in the cloud a clear winner.</p>
<ol>
<li><strong>You can spin up and down instances very quickly.</strong>  If your traffic is very <em>bursty</em> (say, you run a ticket sales website) then you can very easily clone your web tier, database tier and/or storage tier out to hundreds of virtual machines an hour before the Justin Bieber tickets go on sale and shut them all down an hour after to save on money.  Hardware based solutions will usually take weeks to increase your capacity and they continue costing money when they aren&#8217;t being fully utilised.</li>
<li><strong>The up-front cost can be much lower.</strong>  The hardware you mention probably costs tens of thousands of dollars in addition to your other hosting costs.  My Amazon server costs me about $15 per month and yet I could easily scale it up to a much more beefy virtual machine and scale it out to dozens of load-balanced instances with an hours notice.</li>
<li><strong>They do a lot of the work for you.</strong>  Amazon have other services such as DynamoDB which automatically scale out or in to the workload or storage requirements you give it.  They run in SSDs for speed and are replicated to multiple places giving you redundancy and availability.</li>
</ol>
<p>That said, your application has to be capable of scaling horizontally.  You can&#8217;t simply throw it into the cloud and expect it to scale forever.  For instance, default PHP sessions have two problems:</p>
<ol>
<li>They are stored on a local disk meaning you either need to use sticky sessions or a shared disk which will be a bottleneck.</li>
<li>They are opened with <code>flock()</code> which is an exclusive, blocking file lock.  Only one PHP process can be using a session file at a time.  This can be a serious problem when you start firing off lots of AJAX calls.</li>
</ol>
<p>This is only a single example but applications that have not been written with horizontal scaling in mind are usually full of exclusive resources like that one.</p>
<p>If you are running a distributed database (which Amazon&#8217;s database services are) then your app also needs to be able to deal with the trade-offs inherent in the <strong><a href="http://en.wikipedia.org/wiki/CAP_theorem" rel="nofollow">CAP</a></strong> theorem.  This states that you can get two of the three aspects: Consistency, Availability, Partition tolerance.  You will need to know which of the three you don&#8217;t have and have your app compensate for it.</p>
<p><strong>If your application suits hardware, go for hardware.  If it suits the cloud, go for the cloud.</strong></p>
<p>Note: I have used Amazon as an example here but there are other cloud hosting providers with similar capabilities of spinning up and down instances very quickly and only charging you for what you actually use.</p>
<div class="author">Answered by <a href="http://serverfault.com/users/26130/ladadadada" target="_blank">Ladadadada</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/374583/i-o-intensive-mysql-server-on-amazon-aws" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/io-intensive-mysql-server-on-amazon-aws/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql 5.5 character encoding in Amazon RDS</title>
		<link>http://adminsgoodies.com/mysql-5-5-character-encoding-in-amazon-rds/</link>
		<comments>http://adminsgoodies.com/mysql-5-5-character-encoding-in-amazon-rds/#comments</comments>
		<pubDate>Tue, 13 Mar 2012 08:33:39 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[amazon-rds]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/mysql-5-5-character-encoding-in-amazon-rds/</guid>
		<description><![CDATA[I recently setup mysql 5.5.20 database in Amazon RDS with movable type but actual character encoding doesn&#8217;t take effect. I change the parameter group setting to utf8 like below. character-set-client-handshake = yes character_set_client = utf8 character_set_connection = utf8 character_set_database = utf8 character_set_filesystem = binary character_set_results = utf8 character_set_server = utf8 collation_connection = utf8_general_ci collation_server = utf8_general_ci init_connect = SET NAMES utf8 When I build Movable Type 5.13 database table encodeing is cp1252_West_Europe and collation is [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>I recently setup mysql 5.5.20 database in Amazon RDS with movable type but actual character encoding doesn&#8217;t take effect. I change the parameter group setting to utf8 like below.</p>
<pre><code>character-set-client-handshake = yes
character_set_client  = utf8
character_set_connection = utf8
character_set_database = utf8
character_set_filesystem = binary
character_set_results = utf8
character_set_server = utf8
collation_connection = utf8_general_ci
collation_server = utf8_general_ci
init_connect = SET NAMES utf8
</code></pre>
<p>When I build Movable Type 5.13 database table encodeing is <strong>cp1252_West_Europe</strong> and collation is labeled <strong>latin1_swedish_ci</strong> but actually should be UTF-8 Unicode and utf8_general_ci</p>
<p>What am I doing wrong?</p>
<div class="author">Asked by <a href="http://serverfault.com/users/102717/maca" target="_blank">Maca</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>Okay I got it.</p>
<p>RDS by default sets its encoding to latin8 ignoring the parameter group that you created.  So I just needed to delete the first DB that you have to set from the AWS dashboard.</p>
<div class="author">Answered by <a href="http://serverfault.com/users/102717/maca" target="_blank">Maca</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/364773/mysql-5-5-character-encoding-in-amazon-rds" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/mysql-5-5-character-encoding-in-amazon-rds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do I quickly create new instances of complex MySQL database?</title>
		<link>http://adminsgoodies.com/how-do-i-quickly-create-new-instances-of-complex-mysql-database/</link>
		<comments>http://adminsgoodies.com/how-do-i-quickly-create-new-instances-of-complex-mysql-database/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 19:30:18 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[amazon-rds]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql-replication]]></category>
		<category><![CDATA[rds]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/how-do-i-quickly-create-new-instances-of-complex-mysql-database/</guid>
		<description><![CDATA[I&#8217;m managing an enterprise web application that uses Amazon&#8217;s RDS as our database server. Our architecture is such that when a user signs up for a new account we create a brand new database for them in RDS. The database has around 63 tables, most of which have indexes, and almost all have foreign key constraints. Currently we&#8217;re creating each new database by executing a large set of sql statements. This takes on average 57 [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>I&#8217;m managing an enterprise web application that uses Amazon&#8217;s RDS as our database server. Our architecture is such that when a user signs up for a new account we create a brand new database for them in RDS.</p>
<p>The database has around 63 tables, most of which have indexes, and almost all have foreign key constraints. Currently we&#8217;re creating each new database by executing a large set of sql statements. This takes on average 57 seconds.</p>
<p>Does anyone have any ideas for how I could do this quicker or more efficiently?</p>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>You might want to try and execute the query as a &#8220;bulk transaction&#8221; to skip the verification checks.  Be warned, this can create duplicate indexes &amp; break consistency checks if you&#8217;re not careful.</p>
<p class="ref-link">Check <a href="http://serverfault.com/questions/329012/how-do-i-quickly-create-new-instances-of-complex-mysql-database" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/how-do-i-quickly-create-new-instances-of-complex-mysql-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amazon RDS instance stopped responding</title>
		<link>http://adminsgoodies.com/amazon-rds-instance-stopped-responding/</link>
		<comments>http://adminsgoodies.com/amazon-rds-instance-stopped-responding/#comments</comments>
		<pubDate>Sat, 20 Aug 2011 09:30:05 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[amazon-ec2]]></category>
		<category><![CDATA[amazon-rds]]></category>
		<category><![CDATA[rds]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/amazon-rds-instance-stopped-responding/</guid>
		<description><![CDATA[We&#8217;ve been running a large RDS instance in production for over year without a single moment of downtime. Recently, with a bigger budget and higher stakes, we decided to convert it to a multi-AZ instance, to improve reliability and redundancy of our data. Since then (about two weeks ago), we&#8217;ve had two serious failures of our instance which required rebooting. There is nothing in the &#8216;recent DB events&#8217;. There were two DB connection spikes recorded [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>We&#8217;ve been running a large RDS instance in production for over year without a single moment of downtime. Recently, with a bigger budget and higher stakes, we decided to convert it to a multi-AZ instance, to improve reliability and redundancy of our data.</p>
<p>Since then (about two weeks ago), we&#8217;ve had two serious failures of our instance which required rebooting. There is nothing in the &#8216;recent DB events&#8217;. There were two DB connection spikes recorded in cloudwatch that occurred at the same time as the failures.</p>
<p>What&#8217;s going on?</p>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>It appears that the problems were related to AWS and not to the instance. When this was posted, it turned out to be one of the most serious outages of AWS europe so far.</p>
<p>There are a number of problems with RDS Multi-AZ that mean that it is still possible for automatic failover to not occur, leaving you without a server. Implementers should be aware and build sufficient redundancy into their applications that can mitigate problems in multiple availability zones.</p>
<p class="ref-link">Check <a href="http://serverfault.com/questions/297975/amazon-rds-instance-stopped-responding" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/amazon-rds-instance-stopped-responding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
