<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss'><id>tag:blogger.com,1999:blog-2696872396302987878</id><updated>2009-11-09T20:48:04.971-08:00</updated><title type='text'>Entropía</title><subtitle type='html'>We all come from chaos, by Horaci Cuevas</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://horaci.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2696872396302987878/posts/default'/><link rel='alternate' type='text/html' href='http://horaci.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>horaci</name><uri>http://www.blogger.com/profile/09988904416065532597</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2696872396302987878.post-7307740340407198345</id><published>2006-08-25T11:47:00.000-07:00</published><updated>2006-08-25T12:16:31.912-07:00</updated><title type='text'>Betatesting Amazon EC2: Elastic compute cloud</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger2/4710/329208056189329/1600/ec2.png"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://photos1.blogger.com/blogger2/4710/329208056189329/320/ec2.png" alt="" border="0" /&gt;&lt;/a&gt;  &lt;p class="MsoNormal"&gt;Yesterday we received an invitation to sign up to a beta of EC2: Elastic compute cloud, the new service from Amazon to provide virtual servers integrated with their S3 service.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;When I heard the first time about EC2, I thought immediately on those slow, overpopulated servers, where users battle for the resources of a few processors and a few gigabytes of memory. Yeah, you can have a server for $10 a month, but that is hardly enough for a personal blog. &lt;span style=""&gt; &lt;/span&gt;But as my passion for online games to beta test them, I love to beta test Amazon stuff, is always refreshing and ahead of the rest! Needless to say, if Amazon decides to release a service like this, is because is proud enough of it.&lt;/p&gt;  &lt;p style="font-weight: bold;" class="MsoSubtitle"&gt;How it works?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;Is basically something like a repository of file system images (Stored in S3) that can be installed and mounted into a virtual server on demand, in less than two minutes. You can upload your own images and make a virtual server of your web server, your database, or whatever you want. Thanks to a powerful (and safe) set of tools to create instances of those servers, creating clusters has never been that easy! Once the image has been instantiated on a server, you can access there using SSH and configure the firewall to allow traffic to some ports. &lt;/p&gt;    &lt;p class="MsoNormal"&gt;For every hour (or fraction) that you have your instance turned on, they charge $0.10 plus $0.20 per GB of traffic outside the EC2 network plus $0.15 per gigabyte/month used in S3. It will not be a $10 virtual server but neither the costs/risks of a dedicated server. &lt;/p&gt;  &lt;p style="font-weight: bold;" class="MsoSubtitle"&gt;What can we load there?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;They state that you can load any distribution as long as is compatible with kernel 2.6. And they actively support Redhat Fedora 3 and 4. I tried to make my image of a Debian, but I was not able to after creating one with debootstrap. I´m not a big systems guru, so probably I forgot some step that made that image unbootable. The sad thing is that I lost 2 hours to build, compress and upload the image, for nothing. Following their guidelines I managed to build an image copy of a fedora that worked nicely. &lt;/p&gt;  &lt;p style="font-weight: bold;" class="MsoSubtitle"&gt;It is persistent the information that we store in that server?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;Sadly the answer is: only meanwhile is turned on. If you want to have some permanent file system you have overuse S3 or use a distributed file system within other instances. They also state that, although your images are safe in S3, instances can fail and you would lose all the files &lt;span style=""&gt; &lt;/span&gt;stored in that instance (databases, files, configs, logs, …). There is a tool to make an image of your system while turned on, and send it as an image to S3 ready to be used again or to create a new instance.&lt;/p&gt;  &lt;p style="font-weight: bold;" class="MsoSubtitle"&gt;How fast is it?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;My feeling is just a bit slower than a real dedicated server. It feels fast, and it feels uncapped. &lt;span style=""&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;I’ve made a small benchmark of a few systems I have around the world to see how much time takes to compile a PostgreSQL 8.1.4. &lt;/p&gt;  &lt;p class="MsoNormal"&gt;Here are the results:&lt;/p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger2/4710/329208056189329/1600/compile_time.png"&gt;&lt;img style="cursor: pointer;" src="http://photos1.blogger.com/blogger2/4710/329208056189329/320/compile_time.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;p class="MsoNormal"&gt;Even when is 1/3 slower than a dual Intel Xeon or a P4 with a 64 bits optimized kernel, it just means that we need to forget the word “virtual” when talking about speeds. Those are quite real speeds. &lt;/p&gt;  &lt;p class="MsoNormal"&gt;Surprisingly, our old AMD with FreeBSD rocks! Not even when the CPU is clocked at 1.80 GHz and its 3-4 years old. &lt;/p&gt;  &lt;p style="font-weight: bold;" class="MsoSubtitle"&gt;What do I get?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;Basically, when your budget can't pay reliability, EC2 is the answer! Forgive that storage is volatile, that can be solved easily making a shared, distributed file system.&lt;span style=""&gt;  &lt;/span&gt;Once a system works, you make an image and it will always work, and you can clone it as many times as you want. You even have a parameter when you instantiate an image to tell the number of them you want! “Today I´m going to eat 8 web servers, 4 database and 2 application servers”. No one can beat that efficiency in less than 2 minutes, on demand. &lt;/p&gt;  &lt;p style="font-weight: bold;" class="MsoSubtitle"&gt;Some curiosities…&lt;/p&gt;  &lt;p class="MsoNormal"&gt;Not surprisingly, the CPUs are Amd Opterons 250 (or that is what appears on /proc/cpuinfo). What I still don’t know is how it works internally. Is just a CPU assigned to my instance or they are really doing virtualization of a bigger cluster?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;The servers come with a gentle amount of memory: 1.75 GB, and plenty of “temporally” hard disk space: 160 GB. &lt;span style=""&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;All the tools for building the file system images, signing and publishing them to S3 are made with Ruby. &lt;/p&gt;  &lt;p class="MsoNormal"&gt;I’m not really sure, but looks like you can't assign an static IP address to a server. Neither is guaranteed that an image will receive always the same IP address. &lt;/p&gt;  &lt;p class="MsoNormal"&gt;Connectivity of the servers is extremely good: ping to google.com is 2ms!&lt;/p&gt;  &lt;p class="MsoSubtitle"&gt;&lt;span style="font-weight: bold;"&gt;The test&lt;/span&gt; &lt;/p&gt;  &lt;p class="MsoNormal"&gt;To see how it works with real stuff, I made an exact copy of our &lt;a href="http://www.pricenoia.com/"&gt;Pricenoia&lt;/a&gt; server on a EC2 virtual server: &lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;a href="http://domu-12-31-33-00-02-6a.usma1.compute.amazonaws.com/"&gt;http://domU-12-31-33-00-02-6A.usma1.compute.amazonaws.com/&lt;/a&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;Even when I see clearly that is a lot faster than our dedicated server, sometimes has some hang-ups for a second or two. I've had still no chance to locate the problem, but looks a bit odd. Actually, that is the only thing that worries me about EC2. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2696872396302987878-7307740340407198345?l=horaci.blogspot.com%2Findex.html'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://horaci.blogspot.com/feeds/7307740340407198345/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2696872396302987878&amp;postID=7307740340407198345' title='66 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2696872396302987878/posts/default/7307740340407198345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2696872396302987878/posts/default/7307740340407198345'/><link rel='alternate' type='text/html' href='http://horaci.blogspot.com/2006/08/betatesting-amazon-ec2-elastic-compute.html' title='Betatesting Amazon EC2: Elastic compute cloud'/><author><name>horaci</name><uri>http://www.blogger.com/profile/09988904416065532597</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='05725362294018548677'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>66</thr:total></entry></feed>