09 January 2012 ~ 0 Comments

Load balancing in EC2 with Nginx and HAProxy

TweetWe wanted to setup a loadbalanced web cluster in AWS for expansion. My first inclination was to use ELB for this, but I soon learned that ELB doesn’t let you allocate a static IP, requiring you to refer to it only by DNS name. This would be OK except for the fact that our current [...]

Continue Reading

16 November 2011 ~ 0 Comments

Installing Sun (Oracle) JDK 1.5 on an EC2 instance

TweetI’m currently working on moving a Tomcat-based application into EC2. The code was written for Java 5.0. While Java 6 would probably work, I’d like to keep everything as “same” as possible, since EC2 presents its own challenges. I spun up a couple of t1.micro instances and copied everything over, including the Java 5 JDK, [...]

Continue Reading

28 April 2011 ~ 8 Comments

Integrating Amazon Simple Email Service with postfix for SMTP smarthost relaying.

How I configured an EC2 instance to relay mail through Amazon’s SES, and some of the bumps I encountered along the way.

Continue Reading

01 December 2010 ~ 2 Comments

Relaying through Google Apps using Sendmail to bypass EC2 spam blockage

TweetUpdate 3 May 2011: I’ve subsequently modified our EC2 systems to relay SMTP mail through Amazon’s SES which doesn’t have the 500 messages per day limit that Google Apps does. A few months ago I moved a site into EC2. I didn’t want to move the existing IMAP server (ugh) so I moved the email [...]

Continue Reading

02 August 2010 ~ 0 Comments

Amazon EC2 – ext3 mkfs takes 30+ minutes?

TweetI’ve been playing around with Amazon EC2 for a new project I’m working on and so far I’m really impressed. One thing I’ve noticed, however, is that it takes forever to create an ext3 filesystem on a new volume. For example, the below command took over 30 minutes to create the filesystem on a 300 [...]

Continue Reading