Official website for Linux User & Developer
FOLLOW US ON:
Apr
8

Creating cloud infrastructures

by Christian Baun

If you need network services, there is little need to build up your own hardware. Try using cloud services and bring your infrastructure into the cloud. You need an in-house infrastructure? Try Eucalyptus…

Christian Baun has been involved in Linux/UNIX and open source since 1994, when he did his first Slackware 2.0 installation

Have you ever used spare computer parts or an old PC to build up your private web/FTP/mail/file-server? A tiny computer, somewhere in your flat, that runs 24/7. Have you spent weeks installing Linux and configuring the services you wanted? Have you ever calculated the energy consumption costs your machine causes? Do it and you will be amazed how much you pay for a computer that is idle for the most of the day.

Pull the plug and burn your hardware! Throw it away! In the cloud you can run the services you want for very little money. Amazon offers a variety of cloud services, called the Amazon Web Services (AWS). You can run virtual server instances inside the Elastic Compute Cloud (EC2), store your application data inside the Simple Storage Service (S3) and the Elastic Block Storage (EBS). Queues for storing messages can be created with the Simple Queue Service (SQS) and the database functionality is provided by SimpleDB and the Relational Database Service (RDS). With theses services it is quite easy to build up the infrastructure you want, inside the Amazon cloud, without ever touching a piece of hardware.

Using theses web services is quite easy and the best part of the story is, you pay as you go. There is no minimum fee. The price for a small Linux instance (1 virtual core, 32-bit platform, 1.6 GB memory, 160 GB storage) is $0.085 per hour. The price for S3 is starts at $0.150 per GB. The price for SQS is $0.000001 per request. Data transfer is charged separately, as well as the database storage. So, you only pay what you need and want.
For easy access to the AWS, a lot of tools exist. Some of the popular ones are:

S3Fox – a Firefox extension that gives you a user-friendly interface for the upload and download of multiple files and all aspects of S3 control.
Elasticfox
–another Firefox extension. This one provides lots of EC2 management features.
s3cmd
– an easy-to-use command-line tool for uploading, retrieving and managing data in Amazon S3 that is ideal for shell scripts.
boto
– an easy-to-use Python interface to AWS.

You don’t want to throw your server hardware away, but using the AWS sounds cool to you? Maybe you want your own private cloud that is interface-compatible to the AWS. With Eucalyptus, an open source solution exists. Eucalyptus provides the EC2, S3 and EBS functionality and you can use the same open source tools for managing your private cloud that you already know from the AWS. The Eucalyptus team provides packages for CentOS, Ubuntu, openSUSE and Debian, as well as source packages. The easiest way to install Eucalyptus is the Ubuntu 9.10 Server Edition because this distribution already contains Eucalyptus. Give the cloud a try.

This article originally appeared in issue 85 of Linux User & Developer.
Linux User & Developer, one of the nation’s favourite Linux and Open Source publications, is now part of the award winning Imagine Publishing family. Readers can subscribe and save more than 30% and receive our money back guarantee – click here to find out more.

  • Tell a Friend
  • Follow our Twitter to find out about all the latest Linux news, reviews, previews, interviews, features and a whole more.
    • Steve Hamblett

      OK, basic calcs from the above figures would mean I would pay approx 45-50 GBP a month for this. This is much more than feeding my home server with power and also much more than some ‘non-cloud’ hosting providers supply. So why would I want to do this?

      If I wanted 30 machines or so then this is the way to go, but for one server?

    • slackwareuser

      the “cloud” is not that cheap.. we did a quote with amazon for what we needed and it was like 30k/month.. you gotta remember for a decent machine its gonna be over .50/hour, a Quadruple Extra Large is 2.40/hour. there are 168hours in a week and 744hours in a month. so when you add that up, thats 1785/month for 1 machine, and thats not including the storage. a lease IS WAYYYY better way to go..

    • Anon

      Such things are always cheap at the start.
      As soon as they reach critical mass, you’ll see these prices explode.
      It will though be too late (or rather hard) for users to then opt out having invested time, money and habit into it.

      Money is not the only relevant parameter in deciding to use 3rd party cloud products. Alas your article is devoid of these.