Category: Amazon AWS

Adding swap to your EC2 instance

By default, an ec2 instance would not include a swap area and if you are running a micro-instance this can mean that you will quickly run out of memory since it comes with only 613MB of RAM. This would result in errors and at times crash your instance since it cannot find enough RAM to keep your programs running.

Adding a swap area is basically telling your operating system to use a part of your hard drive space as RAM. So when your primary memory is running full, it ‘swaps’ a part from the RAM to the hard drive, thus freeing up some memory for your program. So how do you know whether your computing instance is actually using a swap area or not.

EC2 – Resize your instance

In the last artice, we launched an ec2 instance but we didn’t do anything after that. You will discover that most AMIs have a default size and soon you will be wishing if you could increase the size of the EBS of your ec2 instance. And while there are various ways of doing this, the way i did mine was to heavily borrow a script from Eric Hammond and specifically, this article. However, as someone starting out on AWS at the point in time, i ran into various issues and what follows are ways that tried to solve those issues while answering the questions.

AWS – Boot into EC2

Amazon Web Services have been a revelation. If you have been writing code in your basement or some obscure corner in your home, when its time to go public, it will be AWS that will show you the light. Granted that there are others in this business as well and some of the other alternatives do an amazing job. it was Amazon that helped me put up my work online about four years back. In this post, I attempt to bring up an Amazon EC2 instance – Linux.

Categories

Tags

Help Center

Contact Info

CollectiveZen
Tel: (+91) 020 2672-2150Mobile: (+91) 7875757782

Innovations Unmlited

The convergence of commoditized infrastructure, multi-gestural interfaces, the emerging ubiquity of the mobile Internet, and location-based services has made the world an exciting place and we are extremely passionate about the potential that technology holds for all of us.