Posts in Category: SysAdmin

How to survive with AWS EC2 T1.Micro instance

With my t1.micro, i can host my personal redmine, git and blog. But i couldn’t do that with default settings.

I have used swap on file to it and here is how you can do it:

Copy & paste the code below:

sudo su -c '

dd if=/dev/zero of=/var/swapfile bs=4096 count=524288
chown root:root /var/swapfile
chmod 0600 /var/swapfile
mkswap /var/swapfile
swapon /var/swapfile
echo "/var/swapfile none swap sw 0 0" >> /etc/fstab
'

To disable you can use:

sudo swapoff -v /var/swapfile
sudo rm /var/swapfile
sudo sed -i '/swapfile/d' /etc/fstab

Amazon Web Services – Free Tier

How to get started with AWS free?

Just go to http://aws.amazon.com/free/ and make your account.

Credicard will be needed even for a free account.

What can be done with the free account?

It’s up to you! If you are going to make a light traffic website free tier can handle it. 🙂

You can have up to two EC2 instances (1 Linux, 1 Windows) with 613M Ram and up to 30GB EBS Size. You can go with all your 30GB on a Linux instance it’s the best way to spend your ‘free’ resources. (Windows is memory hungry.)

You can have up to one RDS instance (postgres, mysql, …) with 20GB of DB storage and 20GB for backups.

You can have up to one S3 with 5GB of storage with up to 20k put and 20k get requests.

You can have up to one Memcached server with 213MB

And some more things (ELB, DynamoDB, SNS, CloudWatch, …)

Continue reading