Friday, May 14, 2010

About Drizzle

10 comments
Today I'd like to put a light on pretty new project in the field of relational databases. It's called Drizzle and its objective is to compete and even beat MySQL. Drizzle started as a fork of MySQL 6.0 by Brian Aker. The vision was to make a lightweight database system that will suit needs of modern web applications and to trim off all unnecessary features stuffed in MySQL making it slower and biger.


Nowadays, Drizzle is fresh living community-driven database developed with clouds, or generally with high concurrency enabled environments, in mind. The main features are:
  • Microkernel architecture
  • Modularity (modules responsible for additional functionality)
  • MySQL communication protocol (New Drizzle protocol is under development)
  • InnoDB as a standard storage engine (But you can use Drizzle also with non-transactional storage engine like BlitzDB which is new general purpose storage engine being developed along with Drizzle)
  • Written in C++ and being pretty small in comparison with MySQL
  • Small and fast
  • Some (spare) functionality is missing
The fact, that Drizzle is being developed to be cloud-computing ready is represented by tight partnership between the Drizzle project and the Rackspace company. Rackspace is one of the main sponsors of Drizzle and pays few developers for full-time job on the Drizzle code.


I think that Drizzle could be good option when you don't want to give up on traditional relation database paradigm and not to mess up with whatever_it_is NoSQL stuff. If you want small and fast database with good ability to scale in the distributed environment, you should try Drizzle.


Do you have any experience with Drizzle or would you suggest some other DB system?
10 comments

Saturday, May 8, 2010

Cloud Hosting Price Comparison

40 comments
So let's look on some cloud hosting services and their cost. We will compare pricing of Amazon EC2, Rackspace, ReliaCloud and Joyent cloud on-demand server services. It's not an easy task because the hosting options differs in some aspects like server hardware configurations, supported operation systems or by provided support. This is not benchmark or test, it's just an overview of the options on the market. I will put emphasis on the cheapest and entry level solutions and prices.

Amazon EC2
EC2 is the biggest and the most established cloud solution on the market. Amazon is a pioneer company in cloud computing. There is a plenty of informations about Amazon cloud solutions and you will find many big companies which are Amazon's customers. However there are weak parts of the Amazon cloud ecosystem. For example the cheapest plan will cost you about $60/month ($0.085/hour) for 1.7GB RAM, 1 EC2 Compute Unit, 160GB of local storage. But Amazon has very sophisticated pricing options and in some cases you can get very competitive configurations. Another thing is that someone can be uncomfortable with the fact that Amazon server instances aren't persistent. It means that if your server goes down (shutdown, hardware failure), it also vanishes (with its local data) from your cloud and you can restore it only by spinning up completely new server (so you should backup quite often). It's a bit more complicated to get your own static IP address than it is with Amazon's competitors. Amazon shared storage product is called EBS (Elastic Block Store) which it is a block level storage volume mountable by EC2 instances. Another option is to use Amazon S3 which is classical Internet storage accessible via web services where you can store possibly any amount of data. S3 pricing starts at $0.15/GB/month. You also have to pay if you wan't to use Amazon's CDN network.
Amazon is said to be slower when talking about CPU power or network throughput. It has very bad direct support from the Amazon's side but it has a big community around its products and well established place between cloud solutions. But I admit that this article is more about encouraging you to try some other cloud solutions than to to passing you to Amazon.

Overview:
  • Cheapest plan: $0.085/hour for 1.7GB RAM, 160GB local storage, 1 EC2 Compute Unit; with long-term prepaid plans the price goes rapidly down
  • Transient (non-persistent) servers
  • S3 Internet storage: $0.15/GB (can be lower if storing bazillion of GBs)
  • Data transfer in free for now; from June 2010 for $0.10/GB; out for $0.15/GB
  • You have to pay for support
  • Big community, really established products
  • Featured customers: Hefty big customers

Rackspace Cloud Servers
With Rackspace you can start as low as $0.015/hour or $11/month for 256MB RAM, 10GB of local storage (see complete pricing for all options). There is guaranteed CPU power with a free burst when an extra capacity is available on the host and according to benchmarks it is very good (at least better than EC2). Instances of their servers are persistent and have one static IP address, so the system changes you've done on the server will be there until you decide to delete the server. You can have additional IP for $2/IP/month. Bandwidth for your Cloud Servers is calculated separately - Out $0.22/GB, In $0.08/GB. Internet storage (similar to to the Amazon's S3) is called Cloud Files. There is a public API to perform operations to store or fetch your data. You pay $0.15/stored GB and the same price for used bandwidth as with Cloud Servers local storage. Great is that you will pay nothing for using Rackspace's CDN network, which can bring significant saves. Rackspace is well known for their 24/7 Fanatical Support(tm) and they also have great knowledge base with plenty of informations on how to administrate your servers. One big difference between Amazon and Rackspace is that you can manage your Cloud Servers via very nice web-based cloud control application (iphone and android app also available) and access them via web-based console.
Cloud Computing & Cloud Hosting by Rackspace
Overview:
  • Cheapest plan: $0.15/hour or $11/month for 256MB RAM, 10GB local storage
  • Shared storage: $0.15/GB/month with CDN for free
  • Data in $0.08/GB, out $0.22/GB
  • The best support, very nice UI for managing clouds
  • Many operating systems that you can deploy
  • Featured customers: Posterous, TechCrunch and many others

ReliaCloud
ReliaCloud on-demand servers starts at $0.05/hour for 512MB RAM and 50GB local storage. But if your server is not running you pay only $0.025/hour. It goes with one free static IP address and you can have additional IPs for $1/IP/month. There are plenty of operation systems that you can deploy but it's not as many as at Rackspace. ReliaCloud has also some kind of knowledge base but again I would say that Rackspace is better at doing this. You are also provided with 24/7 live chat support at no cost and some tutorial videos for start. Good thing is that you pay nothing for inbound traffic. For outbound you will pay $0.12/GB. ReliaCloud doesn't provide you with an Internet storage similar to S3 or Rackspace Cloud Files. UI of control web-based app is very good and similar to the one that has Rackspace.


Overview:
  • Cheapest plan: $0.015/hour for 512MB RAM, 50GB local storage, 1 CPU
  • Inbound traffic free, outbound $0.12/GB
  • No Internet storage, no CDN
  • Nice UI for managing the cloud and pretty good support
  • Featured customers: Preston Kelly

Joyent
Also Joyent has its specifics. Their basic bulding cloud units are called Joyent Accelerators. For some specific aplications like MySQL or Glassfish enterprise server they offer software packages called Joyent Virtual Appliances that tailors your Joyent Accelerator to run such an application very effectively (but they are extra charged). For example Joyent web says that their Joyent Accelerator for MySQL can handle 3x more transactions per second than EC2. Joyent solutions are closely bound with Sun (now Oracle) ecosystem so if you want to be familiar with Joyent, you should be familiar with OpenSolaris. Accelerators has an automatic CPU bursting feature so you can usually expect higher CPU power than is the minimum according to the the plan you prepaid. Another good news is that all pricing include 10TB of data transfer per month per customer. The bad news is that you have to pay an extra charge for using CDN starting at 50GB/month for $25. It seems to me that it is Joyent's business strategy to get paid for these "extra things" (i.e. additional IP address available at $60/year). Support (pretty poor knowledge base and no 24/7 help) is not as good as you can expect if you choose Rackspace or ReliaCloud. For further details see the complete pricing.
Overview:
  • Cheapest plan: $25/month: 256MB RAM, 1/16 core (can burst to 1,5 core), 5GB local storage; there are no hour fees so you have to pay for at least one month
  • Shared storage $0.15/GB/month
  • CDN starting at $25/50GB transfer
  • Have to be familiar with Solaris sytem
  • Average support
  • Featured customers: LinkedIn, Gilt Groupe

Resume
So this is a rough overview of picked cloud on-demand server services. Everyone has its pros and cons. Amazon is market leading company, on the other hand Rackspace is innovating quickly and has great and free customer support. ReliaCloud is a bit poor in a variability of its offer but they also have good support and prices aren't bad for what you get. Joyent looks good on the first view, but you realize that you have to pay a lot of chips for things that the others have for free or for marginal price.

I Hope this post helped you to decide which Cloud solution should you start to experiment with. But I encourage you to try all of them, because it's good to put hands on every option on the market and than decide which one suits you best. According to the prices mentioned above, you can try all mentioned cloud providers for just few hours and you won't pay more than few bucks. So which one will you start with? Amazon, Rackspace, ReliaCloud or Joyent?

If you have some experience with using these on-demand servers, please feel free to leave a comment.
40 comments

Thursday, May 6, 2010

Rackspace Cloud Android App Released

2 comments
Rackspace made its new app for managing their cloud hosting service available through the Android Market. So you can administer your cloud with your android phone. According to the Rackspace blog post, with this app it's possible to:




Cool thing is that the code of the application is published as open source so you can download it or even contribute to this project. See the project's github.

This just first release so I'm looking forward to further development and enhancements.
2 comments

Sunday, May 2, 2010

If U Wanna Grow, Learn To Say NoSQL

3 comments
In this post i will try to make a rough overview of wtf is the NoSQL database and why and when to use it.

Well, we all know how cool and easy it is when programming even the simple application to have data of the application's model stored in a relational SQL database like MySQL or PostgreSQL. It's easy to acces with the well known SQL language, vast majority of developers is familiar with principles of building such a dabtabase like SQL normal forms, there are plenty developed opensource libraries with pretty good documentation and community etc etc.

So why to invent or even try something new, when we have this established relational database ecosystem? Because in last few years it has showed up, that relational databases cannot scale properly due their complicated relations between data, that they handle. So what was considered as a great advantage of relational databases in their decades of fame has became disadvantage. It's because today's vast internet applications like Facebook, Google or Twitter wasn't able to handle their bazillion pieces of data in a real-time. Firstly it was partially solved by denormalizations of their relational databases models, but it wasn't as effective as they've expected. The database related infrastructure necessary to satisfy their needs became very expensive and without desirable impact on a speed of the application. So with a NoSQL database you have to give up some of the relational database properties like ACID or consistency guarantee but on the other hand you have build-in partitioning, load balancing, transparent replication, great scaling possibilities with the ability to add capacity without without any influence or impact on applications running against the database.

I don't want to say that SQL databases are bad or generally unusable. Not at all. I think that SQL related technology is great and will do its job perfectly for most of your projects. I just want to say, that if you are planning to be really (really) BIG, you should consider using other technology than SQL.

So here comes NoSQL

First of all NoSQL is a big paradigm shift in modeling data and it can be pretty confusing at the beginning. Forget all these JOINs, GROUP BYs, foreign keys, rigid schemes, consistency guarantees. The basic concept of all NoSQL databases is to store only key-value pairs. Tables and designs are replaced by document oriented storage (see the picture below). Those of you familiar with JSON should cope with that very quickly. The principle of NoSQL is to keep all pieces of the related informations together so that it's easy fetch them. So as a developer you have to model such a database with a "queries" that will be neede by you application already in your mind. In other words you have to know, what kind of operations above the dataset will you need. Yes, this approach has higher requirements on the developers abilities and yes it's not easy to get familiar with this concept, but give it a time.



Examples of NoSQL databases

NoSQL are being developed to effectively handle any amount of data. Their development is kinda fresh. It means that they are optimized for modern concurrency driven environments and clouds in. An examples we can mention MongoDB, CouchDB. Nice example of a connection between the database world and the cloud world can support of Apache Cassandra project (formerly facebook proprietary code) from the side of Rackspace company running cloud server hosting services.

I'm planning some more in-depth views in to the world of NoSQL in a form of examples and tutorials. So if you are interested in this topic, stay tuned.
3 comments

Friday, April 30, 2010

HowTo Set Up Your Own Cloud Server

5 comments
Every average linux geek needs some server to manage. Why? You ask me why? It's simple. For fun :). It's great to admin my own svn repository for my will_be_next_killer_app code, benchmarking new cutting edge webservers, experimenting with new web frameworks, having acces to some spare computational power for scientific (1/1*4%5+1=? :)) computations or cracking my own security settings. Small server connected to the Internet can be small lab or playground for your geeky mind. So, you still haven't one? It's time to get one. Today it is really simple and quite cheap to hire such a server from the one of the available cloud hosting services. For myself I had considered these two options of the on-demand cloud server hostings (both were the cheapest offered):
  • Amazon EC2 (0.085$/hour) - Small Instance 1.7 GB of memory, 160 GB of local instance storage, 32-bit platform
  • Rackspace Cloud Servers (0.015$/hour) - 256 MB of memory, 10 GB local storage, 64-bit platform
My experimental purposes have better suited the Rackspace offer. I've also read this performance analysis that made me definitely think only about the Rackspace option. It's about 11$ per month and it means lot of fun for funny budget. And as bonus to my new server I can explore new possibilities of the cloud like scaling (both horizontal and vertical), fooling around with loadbalancing techniques, observing the unlimited file storage service and thinking about how could I use the Rackspace CDN (Content Delivery Network) infrastructure. I'm fascinated with all these possibilities which doesn't go with an ordinary dedicated server, that would be probably far more expensive to hire.

How To Get Your Cloud Server Running

Well, first you have to sign up. Don't worry, you will pay nothing until you start your first server. In less than 15 minutes you will receive a confirmation call on your mobile phone (See, it's a part of their trademarked Fanatical Support(tm) :)). After that you can have your own cloud running in less than 3 minutes. I created a video to show you how simple it is to start new cloud server, connect to it via ssh and than delete it.


The perfect thing about the cloud is that you can start these on-demand servers in such small amount of time and scale your infrastructure very quickly. It is useful when your infrastructure for whatever reason doesn't meet your varying needs (for example traffic peaks on some web site). You simply scale up, wait till the traffic/load falls down, and than scale down. It's very effective because all the time you only pay for resources that you really need (pay as you go). Hope it helped you and maybe encouraged you to explore the world of cloud computing. If you've liked my video, it should be easy for you to start with cloud computing with Rackspace Cloud Servers. Stay tuned for more videos and howtos. 

If you have any question or suggestions, please feel free to leave a comment.
5 comments

Ubuntu 10.04 Lucid Lynx Released

1 comments
The day before Walpurgis Night, long expected new LTS (means three years support for desktop and five years support for server edition) version of Ubuntu has been released. For server administrators it's a good news because they can easily update to the latest software. In addition Ubuntu has quite remarkable support for establishing and using clouds. There is an option to set up Ubuntu on the well known Amazon EC2 or Rackspace Cloud Servers, but you can also (if you are an adventurer; kidding, it's pretty easy ;)) set your own private cloud powered by an open source project Eucalyptus which is used for example by NASA by the way. On an official Ubuntu page I've read that with their Ubuntu Enterprise Cloud (UEC) technology you can have your own cloud up and running in less than 30 minutes (current record is 25 minutes :)).

Desktop changes

On the desktop version many visual changes took place. New color scheme (no more Human theme colors) moving towards Mac OS X look and feel. Window buttons are on the left by default (IMHO pointless change).
There are also changes on some packages and default software. Gimp was removed for the default instalation and according to Ubuntu distro developers, for edditing and managing your photos you should use F-spot (which isn't bad). One of the major changes is new integrated music store which is huge step forward I think. Music store is "backuped" by 7digital.


If you are a social person you may find useful Gwibber, which integrates all kinds of social networks into one simple interface. If you are a home video geek, you can use new simple video editing tool called PiTiVi.

Of course, there is a lot more changes like new hardware support, new kernel etc. Give it a try, you won't regret (I guess ;)). Download from official Ubuntu download site. Stay tuned for further reviews of this nice open source operating system.
1 comments

Thursday, April 29, 2010

Cutting Edge Bullshit

2 comments
Well, hello. So what's going on here? Well, may be nothing. But sometimes I have a strong feeling that I have to share my (fuckin' extensive:)) knowledge of IT and IT related fields like cooking, linux administration, sustainable gardening, cloud computing, math problems, simulations, knitting, programming of useless utils etc. :). And if there is a field which I know nothing about, be prepared to be overhelmed how educated posts on a topics from such a field I can produce :). So I hope that every visitor of this blog (granny, hippie mid-aged man, 7 years old genius child, averege geek etc.) will find here something interesting that will catch his eye.

Dear reader, welcome in a geek's heaven.
2 comments