<?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> &#187; EC2</title>
	<atom:link href="http://abraham.taherivand.net/tag/ec2/feed/" rel="self" type="application/rss+xml" />
	<link>http://abraham.taherivand.net</link>
	<description></description>
	<lastBuildDate>Tue, 24 Aug 2010 13:17:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Scalr 1.1.0 &#8211; getting in touch &#8211; Part I</title>
		<link>http://abraham.taherivand.net/2009/08/scalr-1-1-0-getting-in-touch-part-i/</link>
		<comments>http://abraham.taherivand.net/2009/08/scalr-1-1-0-getting-in-touch-part-i/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 21:05:11 +0000</pubDate>
		<dc:creator>abraham</dc:creator>
				<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[Scalr]]></category>
		<category><![CDATA[scalr installation]]></category>

		<guid isPermaLink="false">http://abraham.taherivand.net/?p=121</guid>
		<description><![CDATA[Today my friend and business partner Raphael pointed me to the new release of Scalr. I knew Scalr from the past, but i did not get in detailed touch yet. Scalr released version 1.1.0 under the GPL v2- and now I thought about to give it a detailed try. Scalr promise alot of value within [...]]]></description>
			<content:encoded><![CDATA[<p>Today my friend and business partner Raphael pointed me to the new release of <a href="http://code.google.com/p/scalr/">Scalr</a>. I knew Scalr from the past, but i did not get in detailed touch yet. Scalr released version <a href="http://code.google.com/p/scalr/downloads/list">1.1.0</a> under the GPL v2- and now I thought about to give it a detailed try.<br />
Scalr promise alot of value within Cloud Computing and the use of <a href="http://aws.amazon.com">Amazon EC2</a>.</p>
<blockquote><p>Scalr is a fully redundant, self-curing and self-scaling hosting environment using Amazon&#8217;s EC2.</p>
<p>It allows you to create server farms through a web-based interface using prebuilt AMI&#8217;s for load balancers (pound, nginx, or Amazon&#8217;s load balancing service), app servers (apache, rails, others), databases (mysql master-slave, others), and a generic AMI to build on top of.</p>
<p>The health of the farm is continuously monitored and maintained. When the Load Average on a type of node goes above a configurable threshold a new node is inserted into the farm to spread the load and the cluster is reconfigured. When a node crashes a new machine of that type is inserted into the farm to replace it.</p>
<p>Multiple AMI&#8217;s are provided for load balancers, mysql databases, application servers, and a generic base image to customize. Scalr allows you to further customize each image, bundle the image and use that for future nodes that are inserted into the farm. You can make changes to one machine and use that for a specific type of node. New machines of this type will be brought online to meet current levels and the old machines are terminated one by one.</p></blockquote>
<p>Under http://www.scalr.net is also a pay service available, but i want to build my own environment.</p>
<p>If you want to install Scalr the<a href="http://code.google.com/p/scalr/w/list"> wiki </a>is a good starting point.<br />
I droped some lines here in my blog to document my installation on a Ubuntu 9.04 Server.</p>
<p>Systemrequirements are definied on the project website as follows:</p>
<li>PHP 5.2.5 or higher</li>
<li>MySQL 5.0 or higher (MySQL 5.1 or higher preferred)</li>
<p>My server installation was build up with a LAMP. A good How-To for LAMP installation you can find <a href="http://www.ubuntugeek.com/step-by-step-ubuntu-904-jaunty-lamp-server-setup.html">here</a>.</p>
<p>I had to customize my PHP5 installation for the <a href="http://code.google.com/p/scalr/wiki/Installation">required PHP extension</a> listed in the project wiki. I searched for the plugins with following command<br />
<code>apt-cache search php5-*</code>, and installed the required extensions manually.</p>
<p>Furthermore I created a database for scalr and a valid user for it.</p>
<p><code># mysql -u  -p<br />
Enter password:<br />
Welcome to the MySQL monitor.  Commands end with ; or \g.<br />
Your MySQL connection id is 41<br />
Server version: 5.0.75-0ubuntu10.2 (Ubuntu)<br />
mysql&gt; CREATE DATABASE ;<br />
Query OK, 1 row affected (0.00 sec)</code></p>
<p><code> </code></p>
<p><code>mysql&gt; GRANT ALL PRIVILEGES ON .* TO ""@"localhost" IDENTIFIED BY "";<br />
Query OK, 0 rows affected (0.00 sec)</code></p>
<p><code>mysql&gt; FLUSH PRIVILEGES;<br />
Query OK, 0 rows affected (0.01 sec)</p>
<p></code></p>
<p><code>mysql&gt; EXIT<br />
Bye</code></p>
<p><span id="more-121"></span></p>
<p>MySQL Server is running in my environment on the same host. Choose a database-name, database-user and a password for database-user.<br />
Now you can check if your environment is set up for Scalr. For that I downloaded a script from the project site to test it.</p>
<p><code>wget http://scalr.googlecode.com/files/testenvironment.php</code></p>
<p>Move this to your webserver directory e.g.:</p>
<p><code>mv testenvironment.php /var/www</code></p>
<p>Point your webserver to <code>http:///testenvironment.php</code> to check your environment.<br />
I got an error &#8220;<em>Cannot find SSH2 functions. Make sure that SSH2 Functions enabled.</em>&#8221;<br />
Searching for that error in google pointed to a <a href="http://blog.getasysadmin.com/2008/11/how-to-install-scalr-on-ubuntu-810-ec2.html">blog entry</a>.</p>
<p>Installed the following with <em>apt-get</em>.<br />
<code>apt-get install php-pear libssh2-1 libssh2-1-dev</code></p>
<p>The missing php extension can be installed with this command: <code>pecl install ssh2 "channel://pecl.php.net/ssh2-0.10"</code></p>
<p>An error occured <code>ERROR: `make' failed</code>. I followed the blog entry from Octavian Neacsu, but I did not do all the same he documented.<br />
I edited also the file <em>/tmp/pear/download/ssh2-0.10/ssh2.c</em> and replaced like mentoined the line containing:</p>
<p><code>#if LIBSSH2_APINO &lt; 200412301450</code><br />
with<br />
<code>#if false</code></p>
<p>Changed my directory with <code>cd /tmp/pear/download/ssh2-0.10/</code> and compiled manually again with following commands:<br />
<code>./configure</code><br />
<code>make</code><br />
<code>make install</code><br />
Be aware of errors at this point!</p>
<p>Check again if your environment is set up probably with pointing your browser to your webserver</p>
<p>If everything is set up correctly you can download the latest version of Scalr from <a href="http://code.google.com/p/scalr/downloads/list">here</a>.<br />
In my case I did this with  <code>wget http://scalr.googlecode.com/files/scalr-1.1.0.zip</code><br />
Unzip the downloaded file and move it to your webserver directory.<br />
Like it is mentoined in the wiki, Scalr will not work from the subfolder. For that i changed my Apache webserver environment a little. This is up to you do to this like you want. In my case nothing else run on my webserver, so Scalr was moved to the root directory of Apache.</p>
<p>Next i imported the sql script to the created database with following command<br />
<code>mysql -p  &lt; scalr/sql/database.sql</code><br />
and configured the database connection details in <em>/scalr_home_dir/etc/config.ini</em> file.</p>
<p>Go ahead with the wiki install description and set the permissions 777 on the following folders:</p>
<li>cache</li>
<li>cron/cron.pid</li>
<li>etc/.passwd</li>
<p>The cron jobs were set up in my environment with the following command:</p>
<p><code>crontab -e</code><br />
and pasted this modified to my paths:<br />
<code>* * * * * /usr/bin/php -q /scalr_home_dir/cron/cron.php --Poller<br />
* * * * * /usr/bin/php -q /scalr_home_dir/cron/cron.php --Scaling<br />
1 1 * * * /usr/bin/php -q /scalr_home_dir/cron/cron.php --RotateLogs<br />
*/15 * * * * /usr/bin/php -q /scalr_home_dir/cron/cron.php --MySQLMaintenance<br />
*/6 * * * * /usr/bin/php -q /scalr_home_dir/cron/cron.php --DNSMaintenance<br />
*/10 * * * * /usr/bin/php -q /scalr_home_dir/cron/cron.php --EBSArraysMaintenance<br />
*/5 * * * * /usr/bin/php -q /scalr_home_dir/cron/cron.php --EBSMaintenance<br />
*/3 * * * * /usr/bin/php -q /scalr_home_dir/cron/cron.php --DNSZoneListUpdate<br />
*/2 * * * * /usr/bin/php -q /scalr_home_dir/cron/cron.php --DBQueueEvent<br />
*/3 * * * * /usr/bin/php -q /scalr_home_dir/cron/cron.php --MessagingQueue<br />
*/11 * * * * /usr/bin/php -q /scalr_home_dir/cron/cron.php --Cleaner<br />
*/2 * * * * /usr/bin/php -q /scalr_home_dir/cron/cron.php --EBSQueue<br />
*/3 * * * *  /usr/bin/php -q /scalr_home_dir/cron/cron.php --UsageStatsPoller</code></p>
<p>Finally I had to set up my AWS cradentials as it is described on the wiki pages of Scalr.</p>
<blockquote><p>1. Put your EC2 access certificate into /scalr_home_dir/etc/cert-XXXXXXXXXXXX.pem<br />
2. Put your EC2 private key into /scalr_home_dir/etc/pk-XXXXXXXXXXXX.pem<br />
Where XXXXXXXXXXXX is Your Access Key name, which you specify on &#8220;Settings-&gt;Core settings&#8221; page.</p></blockquote>
<p>Now I was able to point my browser to http://mydomain.com/ and login in with admin and password admin. (Change this settings after login!)</p>
<p>Within the next days I will post Scalr 1.1.0 &#8211; getting in touch &#8211; Part II on my blog.</p>
]]></content:encoded>
			<wfw:commentRss>http://abraham.taherivand.net/2009/08/scalr-1-1-0-getting-in-touch-part-i/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Ian Foster &#8211; What&#8217;s faster&#8211;a supercomputer or EC2?</title>
		<link>http://abraham.taherivand.net/2009/08/ian-foster-whats-faster-a-supercomputer-or-ec2/</link>
		<comments>http://abraham.taherivand.net/2009/08/ian-foster-whats-faster-a-supercomputer-or-ec2/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 08:25:40 +0000</pubDate>
		<dc:creator>abraham</dc:creator>
				<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[Research]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[Supercomputing]]></category>

		<guid isPermaLink="false">http://abraham.taherivand.net/?p=108</guid>
		<description><![CDATA[I found this interesting article about a comparison today, you should read the whole article here: On EC2, I am told that it may take ~5 minutes to start 32 nodes (depending on image size), so with high probability we will finish the LU benchmark within 100 + 300 = 400 secs. On the supercomputer, [...]]]></description>
			<content:encoded><![CDATA[<p>I found this interesting article about a comparison today, you should read the whole article<a href="http://ianfoster.typepad.com/blog/2009/08/whats-fastera-supercomputer-or-ec2.html"> here</a>:</p>
<blockquote class="zemanta-reblog-quote" style="margin: 1em 3em;">
<ul>
<li>On <strong>EC2</strong>, I am told that it may take ~5 minutes to start 32 nodes (depending on image size), so with high probability we will finish the LU benchmark within 100 + 300 = 400 secs.</li>
<li>On the <strong>supercomputer</strong>, we can use Rich Wolksi&#8217;s <a href="http://nws.cs.ucsb.edu/ewiki/nws.php?id=Batch+Queue+Prediction">QBETS queue time estimation service</a> to get a bound on the queue time. When I tried this in June, QBETS told me that if I wanted 32 nodes for 20 seconds, the probability of me getting those nodes within 400 secs was only 34%&#8211;not good odds.</li>
<p><span class="attribution zemanta-reblog-cite" style="text-align: right; display: block; width: 100%; padding-top: 1em; padding-right: 0px; padding-bottom: 1em; padding-left: 0px;">ianfoster.typepad.com, <a href="http://ianfoster.typepad.com/blog/2009/08/whats-fastera-supercomputer-or-ec2.html">Ian Foster</a>, Aug 2009</span>
</ul>
</blockquote>
<p>&nbsp;</p>
<p>These comparisons depends from my point of view always on experienced data and mainly on your various scenario Neutral declarations are hard to find. I asked <a href="http://twitter.com/befreax">Thijs Metsch</a> for some experienced data of <a href="http://www.reservoir-fp7.eu/">RESERVOIR</a> project he mentoined in Twitter. Looking forward for an answer from him&#8230;<br />
Does anyone else have some own experienced data for starting EC2 images in different environments and with various scenarios? </p>
]]></content:encoded>
			<wfw:commentRss>http://abraham.taherivand.net/2009/08/ian-foster-whats-faster-a-supercomputer-or-ec2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

