<?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>Get A Sys Admin</title>
	<atom:link href="http://getasysadmin.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://getasysadmin.com</link>
	<description>A sysadmin blog about Linux and cloud IaaS</description>
	<lastBuildDate>Sun, 18 Dec 2011 02:34:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Moved blog to EC2</title>
		<link>http://getasysadmin.com/2011/11/moved-blog-to-ec2/</link>
		<comments>http://getasysadmin.com/2011/11/moved-blog-to-ec2/#comments</comments>
		<pubDate>Fri, 18 Nov 2011 04:45:57 +0000</pubDate>
		<dc:creator>Octavian</dc:creator>
				<category><![CDATA[Cloud computing]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://getasysadmin.com/?p=194</guid>
		<description><![CDATA[I just finished moving my blog from Hostgator to my own EC2 t1.micro instance. While Hostgator shared hosting is cheap, running on shared servers is not so great. Had times when server was responding very slow. I&#8217;ve decided to drop the &#8220;blog&#8221; prefix and keep it simple as http://getasysadmin.com. Hope there won&#8217;t be any problems [...]]]></description>
			<content:encoded><![CDATA[<p>I just finished moving my blog from Hostgator to my own EC2 t1.micro instance. While Hostgator shared hosting is cheap, running on shared servers is not so great. Had times when server was responding very slow.</p>
<p>I&#8217;ve decided to drop the <em>&#8220;blog&#8221;</em> prefix and keep it simple as http://getasysadmin.com. Hope there won&#8217;t be any problems with links.</p>
<p>In the process of moving to new server I changed the database from MyISAM to InnoDB, using the tips provided at step 4 from this post: <a href="http://www.619cloud.com/blog/5-essential-steps-for-hosting-wordpress/">5 Essential Steps For Hosting A Scalable WordPress Blog Or Website</a>. I also changed the theme of the blog. This one (wplook) is cleaner and better suited for my blog.</p>
]]></content:encoded>
			<wfw:commentRss>http://getasysadmin.com/2011/11/moved-blog-to-ec2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache2 worker vs prefork for ISPConfig benchmark</title>
		<link>http://getasysadmin.com/2011/11/apache2-worker-prefork-ispconfig-benchmark/</link>
		<comments>http://getasysadmin.com/2011/11/apache2-worker-prefork-ispconfig-benchmark/#comments</comments>
		<pubDate>Sun, 13 Nov 2011 03:12:43 +0000</pubDate>
		<dc:creator>Octavian</dc:creator>
				<category><![CDATA[Cloud computing]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[benchmark]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[ispconfig]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.getasysadmin.com/?p=180</guid>
		<description><![CDATA[I&#8217;ve been running ISPConfig latest version(3.0.4) on Amazon cloud t1.micro instance for some time to host several small sites, mostly WordPress. I&#8217;m quite happy with the performance of the instance. The OS is Ubuntu 10.04 LTS. Until recently I&#8217;ve used the default mpm which is prefork, but I decided to test out worker also. If [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been running ISPConfig latest version(3.0.4) on Amazon cloud t1.micro instance for some time to host several small sites, mostly WordPress. I&#8217;m quite happy with the performance of the instance. The OS is Ubuntu 10.04 LTS. Until recently I&#8217;ve used the default mpm which is prefork, but I decided to test out worker also. If you are wondering I use mod_fcgid for all the sites. That being said I performed several tests with ab (apache benchmark) to see which mpm can server most requests per second.</p>
<p>While I do not claim this is the best setup, I think worker is better suited for me. Some people said they had problems because of mpm worker. So far so good, but will update this post if there are any issues.</p>
<p>Test results:</p>
<table>
<tbody>
<tr>
<td>prefork</td>
<td>worker</td>
</tr>
</tbody>
<tbody>
<tr>
<td>Concurrency Level:      32<br />
Time taken for tests:   7.834 seconds<br />
Complete requests:      5000<br />
Failed requests:        0<br />
Write errors:           0<br />
Keep-Alive requests:    4972<br />
Total transferred:      84831033 bytes<br />
HTML transferred:       83206915 bytes<br />
Requests per second:    638.27 [#/sec] (mean)<br />
Time per request:       50.136 [ms] (mean)<br />
Time per request:       1.567 [ms] (mean, across all concurrent requests)<br />
Transfer rate:          10575.21 [Kbytes/sec] received</td>
<td>Concurrency Level:      32<br />
Time taken for tests:   7.096 seconds<br />
Complete requests:      5000<br />
Failed requests:        0<br />
Write errors:           0<br />
Keep-Alive requests:    4968<br />
Total transferred:      84877824 bytes<br />
HTML transferred:       83247322 bytes<br />
Requests per second:    704.63 [#/sec] (mean)<br />
Time per request:       45.414 [ms] (mean)<br />
Time per request:       1.419 [ms] (mean, across all concurrent requests)<br />
Transfer rate:          11681.17 [Kbytes/sec] received</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://getasysadmin.com/2011/11/apache2-worker-prefork-ispconfig-benchmark/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating consistent backups for EBS with EXT4 and quota</title>
		<link>http://getasysadmin.com/2011/11/creating-consistent-backups-ebs-ext4-quota/</link>
		<comments>http://getasysadmin.com/2011/11/creating-consistent-backups-ebs-ext4-quota/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 15:05:17 +0000</pubDate>
		<dc:creator>Octavian</dc:creator>
				<category><![CDATA[Cloud computing]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[ebs]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[ext4]]></category>
		<category><![CDATA[ispconfig]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.getasysadmin.com/?p=170</guid>
		<description><![CDATA[What&#8217;s this about? Data security and backups are very important aspects when you work with servers, especially if you are using cloud infrastructure. I am using AWS(Amazon Web Services) as my preferred IaaS, so the following how-to is tailored for Amazon EC2 instances using EBS as storage for the web sites files. On my instance [...]]]></description>
			<content:encoded><![CDATA[<p>What&#8217;s this about?<br />
Data security and backups are very important aspects when you work with servers, especially if you are using cloud infrastructure. I am using AWS(Amazon Web Services) as my preferred IaaS, so the following how-to is tailored for Amazon EC2 instances using EBS as storage for the web sites files. On my instance I have Ubuntu 10.04 LTS installed and on top of it I run ISPConfig 3.0.4(latest version at the moment I write this article). Some of the programs required to run this setup were already installed, but it should be pretty obvious if you miss anything. If you need help you can either leave a comment or contact me via email.</p>
<p>The following setup will allow you to create an EBS using EXT4 as file system, with quota enabled on it(for ISPConfig) and weekly backups of the EBS. In case of instance failure you should be able to launch a new instance and attach the EBS, without losing any web sites files. In case of EBS failure you can recreate one from the most recent snapshot.</p>
<p>Create an EBS in the same zone as your instance and attach it to your instance as /dev/sdf. This can be easily done from AWS Management Console.</p>
<p>Install xfsprogs<br />
<code>sudo apt-get install xfsprogs</code></p>
<p>Create EXT4 filesystem on /dev/sdf<br />
<code>sudo mkfs.ext4 /dev/sdf</code></p>
<p>Now mount it temporarily<br />
<code>sudo mkdir /mnt/ebs<br />
sudo mount /dev/sdf /mnt/ebs</code></p>
<p>Stop the apache2 web server and copy the files to /mnt/ebs<br />
<code>sudo service apache2 stop<br />
cd /mnt/ebs<br />
sudo cp -rp /var/www/* .</code></p>
<p>Prepare quota<br />
<code>touch quota.user quota.group<br />
sudo chmod 600 quota.*</code></p>
<p>Add the entry to /etc/fstab<br />
<code>/dev/sdf /var/www ext4 noatime,nobootwait,usrjquota=quota.user,grpjquota=quota.group,jqfmt=vfsv0 0 0</code></p>
<p>Unmount the EBS and remount it to /var/www<br />
<code>sudo umount /dev/sdf<br />
sudo mount /dev/sdf /var/www -o noatime,usrjquota=quota.user,grpjquota=quota.group,jqfmt=vfsv0</code></p>
<p>Enable quota<br />
<code>sudo quotacheck -avugm<br />
sudo quotaon -avug</code></p>
<p>Start the apache2 web server and check that the web sites are working properly<br />
<code>sudo service apache2 start</code></p>
<p>Install ec2-consistent-snapshot script for weekly backups of EBS<br />
<code>sudo add-apt-repository ppa:alestic<br />
sudo apt-get update<br />
sudo apt-get install -y ec2-consistent-snapshot</code></p>
<p>Prepare first snapshot(I assume the cron will run as root user, hence I create the awssecret file in /root directory)<br />
<code>sudo touch /root/.awssecret<br />
sudo chmod 600 /root/.awssecret</code><br />
Edit .awssecret and add following lines, in this order, replacing ACCESS_KEY_ID and SECRET_ACCESS_KEY with your own, both can be found under Account-&gt;Security Credentials:<br />
<code>ACCESS_KEY_ID<br />
SECRET_ACCESS_KEY</code></p>
<p>Test the snapshot creation with debug mode activated, replace VOLUME_ID with the right volume ID:<br />
<code>sudo ec2-consistent-snapshot --debug --description "snapshot $(date +\%Y-\%m-\%d-\%H:\%M:\%S)" --freeze-filesystem /var/www vol-VOLUME_ID</code></p>
<p>If everything went well you should be able to see your new snapshot in the AWS Management Console.</p>
<p>Finally add this to your root crontab (by running sudo crontab -e):<br />
<code>@weekly /usr/bin/ec2-consistent-snapshot --debug --description "snapshot $(date +'%Y-%m-%d %H:%M:%S')" --freeze-filesystem /var/www vol-VOLUME_ID&gt;&gt;/var/log/backup.log 2&gt;&amp;1</code><br />
Make sure you put the correct VOLUME_ID!</p>
<p>This should be all, you now have all your web sites on EBS, quota is enabled and weekly backups enabled. I think I pretty much nailed everything you need in order to perform this setup, but if there are any issues feel free to leave a comment. Also I love getting feedback so if you found this article useful leave a comment also <img src='http://getasysadmin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://getasysadmin.com/2011/11/creating-consistent-backups-ebs-ext4-quota/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Install ffmpeg on Ubuntu 10.04</title>
		<link>http://getasysadmin.com/2011/10/install-ffmpeg-ubuntu-10-04/</link>
		<comments>http://getasysadmin.com/2011/10/install-ffmpeg-ubuntu-10-04/#comments</comments>
		<pubDate>Sun, 30 Oct 2011 17:09:02 +0000</pubDate>
		<dc:creator>Octavian</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[amr]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[ogg]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[x264]]></category>

		<guid isPermaLink="false">http://blog.getasysadmin.com/?p=165</guid>
		<description><![CDATA[Note: These are my instructions for installing ffmpeg on ubuntu linux 10.04 server (lts). Most of the code here can be found on ubuntu forums also and probably you will find more stuff there. Install requisite packages sudo apt-get update sudo apt-get install build-essential git-core checkinstall texi2html libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev libvorbis-dev libx11-dev libxfixes-dev zlib1g-dev [...]]]></description>
			<content:encoded><![CDATA[<p>Note: These are my instructions for installing ffmpeg on ubuntu linux 10.04 server (lts). Most of the code here can be found on ubuntu forums also and probably you will find more stuff there.</p>
<p>Install requisite packages<br />
<code>sudo apt-get update<br />
sudo apt-get install build-essential git-core checkinstall texi2html libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev libvorbis-dev libx11-dev libxfixes-dev zlib1g-dev automake autoconf libxvidcore-dev</code></p>
<p>Install latest version of yasm<br />
<code>cd<br />
git clone git://github.com/yasm/yasm.git<br />
cd yasm<br />
sh autogen.sh<br />
make<br />
sudo checkinstall --pkgname=yasm --pkgversion="1.1.0" --backup=no --deldoc=yes --default</code></p>
<p>Install x264<br />
<code>cd<br />
git clone git://git.videolan.org/x264<br />
cd x264<br />
./configure<br />
make<br />
sudo checkinstall --pkgname=x264 --pkgversion "1:0.svn`date +%Y%m%d`-0.0ubuntu1" --backup=no --deldoc=yes --fstrans=no --install=yes --default</code></p>
<p>Install LAME for mp3 support<br />
<code>cd<br />
sudo apt-get install nasm<br />
wget http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.tar.gz<br />
tar xzvf lame-3.99.tar.gz<br />
cd lame-3.99<br />
./configure<br />
make<br />
sudo checkinstall --pkgname=lame-ffmpeg --pkgversion="3.99" --backup=no --default --deldoc=yes</code></p>
<p>Install opencore-amr for amr support<br />
<code>cd<br />
wget http://downloads.sourceforge.net/project/opencore-amr/vo-amrwbenc/vo-amrwbenc-0.1.1.tar.gz<br />
tar zxvf vo-amrwbenc-0.1.1.tar.gz<br />
cd vo-amrwbenc-0.1.1<br />
./configure --disable-shared<br />
make<br />
sudo checkinstall --pkgname="libopencore-amr" --pkgversion="0.1.1" --backup=no --fstrans=no --install=yes --default</code></p>
<p>Install libtheora for ogg support<br />
<code>cd<br />
wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2<br />
tar jxvf libtheora-1.1.1.tar.bz2<br />
cd libtheora-1.1.1<br />
./configure --disable-shared<br />
make<br />
sudo checkinstall --pkgname=libtheora --pkgversion "1.1.1" --backup=no --fstrans=no --install=yes --default</code></p>
<p>Install faac<br />
<code>cd<br />
sudo apt-get install unzip<br />
wget http://downloads.sourceforge.net/faac/faac-1.28.tar.gz<br />
tar zxvf faac-1.28.zip<br />
cd faac-1.28<br />
wget http://www.linuxfromscratch.org/patches/blfs/svn/faac-1.28-glibc_fixes-1.patch<br />
patch -Np1 -i faac-1.28-glibc_fixes-1.patch<br />
sed -i -e '/obj-type/d' -e '/Long Term/d' frontend/main.c<br />
make<br />
sudo checkinstall --pkgname=libfaac --pkgversion "1.28" --backup=no --fstrans=no --install=yes --default</code></p>
<p>Install FFmpeg<br />
<code><br />
svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg<br />
./configure --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab<br />
make<br />
sudo checkinstall --pkgname=ffmpeg --pkgversion "0.8.5" --backup=no --fstrans=no --install=yes --default</code></p>
]]></content:encoded>
			<wfw:commentRss>http://getasysadmin.com/2011/10/install-ffmpeg-ubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Amazon RDS SUPER privileges</title>
		<link>http://getasysadmin.com/2011/06/amazon-rds-super-privileges/</link>
		<comments>http://getasysadmin.com/2011/06/amazon-rds-super-privileges/#comments</comments>
		<pubDate>Thu, 30 Jun 2011 00:38:17 +0000</pubDate>
		<dc:creator>Octavian</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Cloud computing]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[rds]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.getasysadmin.com/?p=161</guid>
		<description><![CDATA[#1419 &#8211; You do not have the SUPER privilege and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable This error occurs sometimes on RDS instances when you try to use procedures. You will soon find out that grant super privilege for a user won&#8217;t work. So the only way [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>#1419 &#8211; You do not have the SUPER privilege and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable</p></blockquote>
<p>This error occurs sometimes on RDS instances when you try to use procedures. You will soon find out that grant super privilege for a user won&#8217;t work. So the only way to make things work is to set log_bin_trust_function_creators to 1.</p>
<p>RDS console available at https://console.aws.amazon.com/rds/ allows you to create a new group and modify its parameters. Log in to RDS console, go to &#8220;DB Parameters Groups&#8221; and click the &#8220;Create DB Parameter Group&#8221;. Set the following<br />
- DB Parameter Group Family: mysql5.1<br />
- DB Parameter Group Name: mygroup<br />
- Description: mygroup</p>
<p>Confirm by clicking &#8220;Yes, create&#8221; button.</p>
<p>Here comes the ugly part, since you cannot edit from the console the parameters (for the moment, I hope they are going to change that). You will need to log to your instance using SSH and download RDS cli from here: http://aws.amazon.com/developertools/2928?_encoding=UTF8&amp;jiveRedirect=1</p>
<p>To do so right click on &#8220;Download&#8221; button and copy link location. In the SSH window use wget to download and unzip it:<br />
wget &#8220;http://s3.amazonaws.com/rds-downloads/RDSCli.zip&#8221;<br />
unzip RDSCli.zip</p>
<p>If you don&#8217;t have unzip you can quickly get it using &#8220;apt-get install unzip&#8221;(for ubuntu) or &#8220;yum install unzip&#8221;(for centos). Of course you will need root privileges.</p>
<p>After successfully unpacking the RDSCli cd to that directory and set a few variables. Following is an example on Ubuntu 10.04:<br />
cd RDSCli-1.4.006<br />
export AWS_RDS_HOME=&#8221;/home/ubuntu/RDSCli-1.4.006&#8243;<br />
export JAVA_HOME=&#8221;/usr/lib/jvm/java-6-sun&#8221;<br />
cd bin<br />
./rds &#8211;help</p>
<p>If rds &#8211;help outputs no errors then you have set it correctly. Congrats. One more command:<br />
./rds-modify-db-parameter-group mygroup &#8211;parameters=&#8221;name=log_bin_trust_function_creators, value=on, method=immediate&#8221; &#8211;I=&#8221;YOUR_AWS_ACCESS_KEY_ID&#8221; &#8211;S=&#8221;YOUR_AWS_SECRET_ACCESS_KEY&#8221;</p>
<p>The AWS keys can be obtain from your AWS account Security Credentials-&gt;Access Credentials-&gt;Access Keys.</p>
<p>Go to AWS RDS console, &#8220;DB Instances&#8221;, select your instance and right click &#8220;Modify&#8221;. Set &#8220;DB Parameter group&#8221; to &#8220;mygroup&#8221; and check &#8220;Apply Immediately&#8221;. Confirm with &#8220;Yes, modify&#8221;.</p>
<p>You are done <img src='http://getasysadmin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://getasysadmin.com/2011/06/amazon-rds-super-privileges/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Apple announces iCloud</title>
		<link>http://getasysadmin.com/2011/06/apple-announces-icloud/</link>
		<comments>http://getasysadmin.com/2011/06/apple-announces-icloud/#comments</comments>
		<pubDate>Tue, 07 Jun 2011 11:40:34 +0000</pubDate>
		<dc:creator>Octavian</dc:creator>
				<category><![CDATA[Cloud computing]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[humor]]></category>

		<guid isPermaLink="false">http://blog.getasysadmin.com/?p=158</guid>
		<description><![CDATA[Warning: offensive language! If you are easily offended stop reading here. What&#8217;s iCloud? It&#8217;s Apple&#8217;s idea about cloud computing iCloud stores your music, photos, apps, calendars, documents, and more. And wirelessly pushes them to all your devices — automatically. It’s the easiest way to manage your content. Because now you don’t have to.&#160; To be [...]]]></description>
			<content:encoded><![CDATA[<p>Warning: offensive language! If you are easily offended stop reading here.</p>
<p>What&#8217;s iCloud? It&#8217;s Apple&#8217;s idea about cloud computing</p>
<blockquote><p>iCloud stores your music, photos, apps, calendars,  documents, and more. And wirelessly pushes them to all your devices —  automatically. It’s the easiest way to manage your content. Because now  you don’t have to.&nbsp;</p></blockquote>
<p>To be honest it sounds more like <a href="http://www.dropbox.com/">Dropbox</a> to me than a serious cloud service like Amazon S3. Nothing innovative, just a lot of marketing as usual. Get an existing idea, put an &#8220;i&#8221; in front of it and let Steve Jobs present it as the new cool thing. You will get a ton of hype. I know &#8220;cloud&#8221; is a cool word and very used nowadays but really don&#8217;t keep using it for every little s**t.</p>
<p>Looking forward for iF**k, the new Apple&#8217;s idea that will let people interact together in a more personal way and will let them share the joy to millions of viewers via iPhone/iPad/iDevice.</p>
]]></content:encoded>
			<wfw:commentRss>http://getasysadmin.com/2011/06/apple-announces-icloud/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mysql benchmark: RDS vs EC2 performance</title>
		<link>http://getasysadmin.com/2011/02/mysql-benchmark-rds-ec2-performance/</link>
		<comments>http://getasysadmin.com/2011/02/mysql-benchmark-rds-ec2-performance/#comments</comments>
		<pubDate>Thu, 03 Feb 2011 11:45:28 +0000</pubDate>
		<dc:creator>Octavian</dc:creator>
				<category><![CDATA[Cloud computing]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[benchmark]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[ebs]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[rds]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.getasysadmin.com/?p=137</guid>
		<description><![CDATA[the setup: 1 m1.small ec2 instance vs 1 db.m1.small rds instance, tests are being run from the m1.small instance. The goal is to determine how the site will perform when moving the database from localhost to a remote instance. I used sysbench for mysql benchmarks. On a linux server running ubuntu 10.04 you can simply [...]]]></description>
			<content:encoded><![CDATA[<p>the setup: 1 m1.small ec2 instance vs 1 db.m1.small rds instance, tests are being run from the m1.small instance. The goal is to determine how the site will perform when moving the database from localhost to a remote instance.</p>
<p>I used sysbench for mysql benchmarks. On a linux server running ubuntu 10.04 you can simply install it with the following command(it&#8217;s obvious but just in case):<br />
<code>sudo apt-get install sysbench</code></p>
<p>The first tests performed were m1.small EC2 instance running mysql-server 5.1.41-3ubuntu12.8 VS RDS instance type db.m1.small running mysql server 5.1.50. The test database had been set to 10 000 records, number of threads = 1, test oltp.<br />
<code>sysbench --test=oltp --mysql-host=smalltest.us-east-1.rds.amazonaws.com --mysql-user=root --mysql-password=password --max-time=180 --max-requests=0 prepare<br />
sysbench --test=oltp --mysql-host=smalltest.us-east-1.rds.amazonaws.com --mysql-user=root --mysql-password=password --max-time=180 --max-requests=0 run</code><br />
The results</p>
<table>
<tbody>
<tr>
<td>m1.small EC2 instance</td>
<td>db.m1.small RDS instance</td>
</tr>
<tr>
<td>OLTP test statistics:<br />
queries performed:<br />
read:                            263354<br />
write:                           94055<br />
other:                           37622<br />
total:                           395031<br />
transactions:                        18811  (104.50 per sec.)<br />
deadlocks:                           0      (0.00 per sec.)<br />
read/write requests:                 357409 (1985.56 per sec.)<br />
other operations:                    37622  (209.01 per sec.)<br />
Test execution summary:<br />
total time:                          180.0044s<br />
total number of events:              18811<br />
total time taken by event execution: 179.7827<br />
per-request statistics:<br />
min:                                  4.04ms<br />
avg:                                  9.56ms<br />
max:                                616.04ms<br />
approx.  95 percentile:              38.42ms</td>
<td>OLTP test statistics:<br />
queries performed:<br />
read:                            188230<br />
write:                           67225<br />
other:                           26890<br />
total:                           282345<br />
transactions:                        13445  (74.67 per sec.)<br />
deadlocks:                           0      (0.00 per sec.)<br />
read/write requests:                 255455 (1418.74 per sec.)<br />
other operations:                    26890  (149.34 per sec.)<br />
Test execution summary:<br />
total time:                          180.0573s<br />
total number of events:              13445<br />
total time taken by event execution: 179.9174<br />
per-request statistics:<br />
min:                                  9.08ms<br />
avg:                                 13.38ms<br />
max:                                904.58ms<br />
approx.  95 percentile:              20.99ms</td>
</tr>
</tbody>
</table>
<p>As you can see the EC2 can perform 40% more transactions than the RDS instance. Nothing unexpected so far.</p>
<p>Time to move on and increase the number of threads to 10</p>
<table>
<tbody>
<tr>
<td>m1.small EC2 instance</td>
<td>db.m1.small RDS instance</td>
</tr>
<tr>
<td>OLTP test statistics:<br />
queries performed:<br />
read:                            264866<br />
write:                           94545<br />
other:                           37818<br />
total:                           397229<br />
transactions:                        18899  (104.97 per sec.)<br />
deadlocks:                           20     (0.11 per sec.)<br />
read/write requests:                 359411 (1996.22 per sec.)<br />
other operations:                    37818  (210.05 per sec.)</p>
<p>Test execution summary:<br />
total time:                          180.0462s<br />
total number of events:              18899<br />
total time taken by event execution: 1799.9289<br />
per-request statistics:<br />
min:                                  4.08ms<br />
avg:                                 95.24ms<br />
max:                               2620.70ms<br />
approx.  95 percentile:             445.91ms</td>
<td>OLTP test statistics:<br />
queries performed:<br />
read:                            343812<br />
write:                           122772<br />
other:                           49109<br />
total:                           515693<br />
transactions:                        24551  (136.18 per sec.)<br />
deadlocks:                           7      (0.04 per sec.)<br />
read/write requests:                 466584 (2588.13 per sec.)<br />
other operations:                    49109  (272.41 per sec.)</p>
<p>Test execution summary:<br />
total time:                          180.2788s<br />
total number of events:              24551<br />
total time taken by event execution: 1801.8298<br />
per-request statistics:<br />
min:                                 13.41ms<br />
avg:                                 73.39ms<br />
max:                               1126.02ms<br />
approx.  95 percentile:             143.83ms</td>
</tr>
</tbody>
</table>
<p>In this test the small RDS instance is faster than the EC2, 136 vs 105 transactions per second. I&#8217;ve also benchmarked a large RDS instance (the next one available after db.m1.small) and it got 185 transactions per second. Quite good, but the price is 4x higher.</p>
<p>The next test was performed vs a 10 million records, 16 threads. This time I only benchmarked a small and a large RDS instance. The large instance managed to do 228 transactions per second while the small one got a decent score of 127 transactions. One thing I noticed during this test is that the small instance started to use it&#8217;s swap, while the large one did not have this issue. This is probably due to the fact that 10M records db is aprox 2.5GB and the small RDS only has 1.7GB of RAM.</p>
<p>So if you are planing to grow and want an easy way to do it, switching your database to its own RDS is one of the first things you should consider. One of the immediate effects you will notice is that the CPU usage on the EC2 instance will be greatly reduced, leaving more power for the web server. You can easily increase the size and capacity of the RDS instance with just a few clicks. The backups are done automatically, which is great considering how many times I had to recover databases.</p>
]]></content:encoded>
			<wfw:commentRss>http://getasysadmin.com/2011/02/mysql-benchmark-rds-ec2-performance/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Cum sa creezi o pagina pentru firma ta pe Facebook?</title>
		<link>http://getasysadmin.com/2011/01/cum-sa-creezi-pagina-pentru-firma-ta-pe-facebook/</link>
		<comments>http://getasysadmin.com/2011/01/cum-sa-creezi-pagina-pentru-firma-ta-pe-facebook/#comments</comments>
		<pubDate>Sun, 30 Jan 2011 16:17:01 +0000</pubDate>
		<dc:creator>Octavian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.getasysadmin.com/?p=151</guid>
		<description><![CDATA[M-am hotarat sa scriu acest articol in urma numarului imens de pagini pentru firme create total gresit, si anume ca si pagini personale. Asa cum in realitate ai persoana fizica si persoana juridica, si pe Facebook ai pagini personale si pagini pentru firme(sau artist sau organizatie sau orice altceva). E total gresit sa folosesti o [...]]]></description>
			<content:encoded><![CDATA[<p>M-am hotarat sa scriu acest articol in urma numarului imens de pagini pentru firme create total gresit, si anume ca si pagini personale. Asa cum in realitate ai persoana fizica si persoana juridica, si pe Facebook ai pagini personale si pagini pentru firme(sau artist sau organizatie sau orice altceva). E total gresit sa folosesti o pagina personala pentru promovarea imaginii firmei pe Facebook din mai multe motive:</p>
<ul>
<li>NU poti sa fi prieten cu pantoful Nike, dar poti fi fan Nike, logic nu?</li>
<li>Daca folosesti un cont personal va trebui sa dai accept la toate friends requests, pe cand folosind o pagina conceputa special pentru firme cei interesati au un buton de Like si apar automat in lista de fani</li>
<li>Paginile pentru firme sunt concepute special pentru a putea afisa orar/site web/etc intr-un mod usor accesibil vizitatorilor</li>
<li>Paginile pentru firme pot fi promovate free(via Sugest) sau pe bani</li>
<li>Paginile pentru firme ofera statistici referitoare la numarul de vizitatori etc</li>
</ul>
<p>Marea problema deriva din faptul ca pentru a avea o pagina de prezentare pentru firma trebuie sa ai un cont personal de Facebook. Mare tampenie. Din aceasta cauza multi oameni care doresc sa faca un cont pentru firma seteaza din greseala tot un cont personal fara sa isi dea seama.</p>
<p>Vorba multa saracia omului, asa ca sa trecem la treaba:</p>
<ol>
<li>trebuie sa aveti un cont pe facebook si sa fiti logat</li>
<li>dati click pe <a href="http://www.facebook.com/pages/create.php">http://www.facebook.com/pages/create.php</a></li>
<li>din lista prezentata selectati categoria la care va incadrati cel mai bine(local business daca aveti un magazin sau un salon unde vindeti ceva, brand pentru a promova un anumit produs, etc)</li>
<li>completati campurile necesare, bifati casuta &#8220;I agree to bla bla&#8221; si apasati butonul &#8220;Get Started&#8221;.</li>
</ol>
<p>Acum puteti sa uploadati o poza (logo), sa sugerati pagina nou creata prietenilor si multe alte lucruri pe care le veti descoperi si singuri.<br />
<strong>Welcome to Facebook!</strong></p>
<p>PS.</p>
]]></content:encoded>
			<wfw:commentRss>http://getasysadmin.com/2011/01/cum-sa-creezi-pagina-pentru-firma-ta-pe-facebook/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>mod_rewrite in action</title>
		<link>http://getasysadmin.com/2011/01/mod_rewrite-action/</link>
		<comments>http://getasysadmin.com/2011/01/mod_rewrite-action/#comments</comments>
		<pubDate>Sun, 30 Jan 2011 10:00:25 +0000</pubDate>
		<dc:creator>Octavian</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.getasysadmin.com/?p=146</guid>
		<description><![CDATA[After switching from blogspot to my own wordpress blog I noticed a lot of 404s. These were triggered by the url change, because initially the articles on blogspot had html extension at the end of url while on wordpress there wasn&#8217;t such thing. For example if initially the link was http://blog.getasysadmin.com/some-article.html now it become http://blog.getasysadmin.com/some-article/. [...]]]></description>
			<content:encoded><![CDATA[<p>After switching from blogspot to my own wordpress blog I noticed a lot of 404s. These were triggered by the url change, because initially the articles on blogspot had html extension at the end of url while on wordpress there wasn&#8217;t such thing. For example if initially the link was http://blog.getasysadmin.com/some-article.html now it become http://blog.getasysadmin.com/some-article/.</p>
<p>Quick fix via mod_rewrite, simply edit .htaccess from the root of the website and add this line after RewriteBase:<br />
<code>RewriteRule ^(.*)\.html$ $1/ [R=301,NC,L]</code></p>
<p>R=301 means Redirect with 301 code(moved permanently)<br />
NC=no case or case insensitive<br />
L=last rule</p>
]]></content:encoded>
			<wfw:commentRss>http://getasysadmin.com/2011/01/mod_rewrite-action/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mysql max_allowed_packet error</title>
		<link>http://getasysadmin.com/2011/01/mysql-max_allowed_packet-error/</link>
		<comments>http://getasysadmin.com/2011/01/mysql-max_allowed_packet-error/#comments</comments>
		<pubDate>Sat, 29 Jan 2011 18:03:31 +0000</pubDate>
		<dc:creator>Octavian</dc:creator>
				<category><![CDATA[Cloud computing]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[rds]]></category>

		<guid isPermaLink="false">http://blog.getasysadmin.com/?p=144</guid>
		<description><![CDATA[You are probably here because you tried to import a big database (several GB) and got the following error: ERROR 1153 (08S01) at line 2533: Got a packet bigger than 'max_allowed_packet' bytes If you have access to your mysql server and SUPER privileges things are easy, you just need to log in as superuser to [...]]]></description>
			<content:encoded><![CDATA[<p>You are probably here because you tried to import a big database (several GB) and got the following error:<br />
<code>ERROR 1153 (08S01) at line 2533: Got a packet bigger than 'max_allowed_packet' bytes</code></p>
<p>If you have access to your mysql server and SUPER privileges things are easy, you just need to log in as superuser to mysql and type this:<br />
<code>mysql&gt;set global max_allowed_packet=64*1024*1024;</code><br />
and then import the database normally, just adding &#8220;&#8211;max_allowed_packet=64M&#8221; to the parameter list. Example:<br />
<code>$mysql --max_allowed_packet=64M database &lt; database.sql</code><br />
Everything is so easy. But if you are using Amazon RDS you are out of luck. You setup a user when you create the instance but of course it doesn&#8217;t have the SUPER privilege so if you try to execute the above command it will fail. Not even &#8220;grant super on *.* to myuberuser&#8221; will help you, no no. So after some googling and reading a lot of crap I found this <a href="http://www.henrybaxter.ca/?p=111">blog</a> which had the same error as mine. Yuppy! Thanks Henry!</p>
<p>The solution is to use <strong><a href="http://docs.amazonwebservices.com/AmazonRDS/latest/DeveloperGuide/index.html?USER_WorkingWithParamGroups.html">DB Parameter Groups</a></strong>. Grab your mouse and start copy pasting fast.</p>
<p>Download Amazon RDS Command Line Toolkit<br />
The latest version can be found <a href="http://aws.amazon.com/developertools/2928?_encoding=UTF8&amp;jiveRedirect=1">here</a><br />
<code>wget http://s3.amazonaws.com/rds-downloads/RDSCli.zip<br />
unzip RDSCli.zip<br />
cd RDSCli-1.3.003 (this will surely change so make sure you cd to the right directory)<br />
export AWS_RDS_HOME=`pwd`<br />
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk (this may vary depending on your java location and may not have to set it)<br />
cp credential-file-path.template credential-file<br />
vi credential-file (set your aws credentials there, use whatever text editor you like)<br />
export AWS_CREDENTIAL_FILE=${AWS_RDS_HOME}/credential-file<br />
cd bin<br />
./rds --help</code></p>
<p>If everything went well you should get some output. On Henry blog he says he suggests that you create a parameter group. Well the reality is you have to create it since Amazon won&#8217;t let you modify parameters inside the default group.<br />
<code>./rds-create-db-parameter-group mygroup -f MySQL5.1 -d "My group"<br />
./rds-modify-db-parameter-group mygroup --parameters "name=max_allowed_packet,value=67108864,method=immediate"<br />
./rds-modify-db-instance YOURINSTANCENAMEHERE --db-parameter-group-name mygroup</code><br />
Go to Amazon management console and check that the new parameter group is created and applied to your instance. You can begin now the import as you would do normally just add &#8220;&#8211;max_allowed_packet=64M&#8221; to the list of your options.</p>
<p>Hope it helps!</p>
]]></content:encoded>
			<wfw:commentRss>http://getasysadmin.com/2011/01/mysql-max_allowed_packet-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

