Using s3cmd to recursively update the meta data on a bucket

In our case, we needed to set the Expires and Cache-Control headers on all the files in one of our buckets for optimization purposes. Here’s what we did. Only the newest version of s3cmd supports the modify command, so if you have an old version installed, run apt-get remove s3cmd to remove the old version. Read more about Using s3cmd to recursively update the meta data on a bucket[…]

Adding Swap Space to Amazon EC2 Micro Instances

Most of us use EC2 micro instances for prototyping and running small servers. If you use MySQL on an EC2 machine, you may experience the MySQL server automatically shut down with the /var/log/mysql/error.log file reading as below: 140516 10:54:24 InnoDB: Initializing buffer pool, size = 128.0M InnoDB: mmap(137363456 bytes) failed; errno 12 140516 10:54:24 InnoDB: Read more about Adding Swap Space to Amazon EC2 Micro Instances[…]