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

24 October 2011 ~ 0 Comments

Rescan SATA bus (aka hot-adding a SATA disk on a Linux guest in VMware without rebooting)

TweetLinux supports hot-adding disks but whenever I add a new vdisk in VMware the new disk doesn’t show up unless I reboot, which defeats the purpose of hot-add. This command forces a rescan of the bus: echo "- – -" > /sys/class/scsi_host/host0/scan dmesg shows the new disk has been found: Vendor: VMware Model: Virtual disk [...]

Continue Reading

23 September 2011 ~ 1 Comment

Fedora Core 15 & Gnome 3

Shrinking partitions, installing/upgrading to FC15, and systemd/chkconfig.

Continue Reading

20 September 2011 ~ 3 Comments

Making sure SSLv2 is disabled in Apache (and Nginx)

Tweet Edit Jan 24, 2012: Deleted all the crap from this story and just left the recommended Apache and Nginx SSL cipher suites for maximum security without SSLv2 and without BEAST vulnerability (at least according to Qualys). Apache httpd SSLProtocol -ALL +SSLv3 +TLSv1 SSLCipherSuite ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!EDH:!AESGCM; SSLHonorCipherOrder on nginx ssl_protocols SSLv3 TLSv1; ssl_ciphers ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!EDH:!AESGCM; ssl_prefer_server_ciphers on; [...]

Continue Reading

31 August 2011 ~ 2 Comments

64-bit Firefox 6 on CentOS 6 x86_64 (or Fedora) with Flash 11

TweetSo I’ve gone back to Linux from Mac, due to the SSD issues I had with my Macbook Pro basically making VMware unusable. A Win7 VM would grind the guest and host to a halt on the 7200 RPM SATA OEM drive, and the SSD wouldn’t work, so I put the SSD back in my [...]

Continue Reading

26 July 2011 ~ 1 Comment

33 hours to restore a Postgres DB

Restoring a huge DB takes a long time.

Continue Reading

22 July 2011 ~ 3 Comments

Benchmarking disk IO on ext3 vs ext4 vs xfs with fio

3 filesystems, 1 server.

Continue Reading