Monday, January 16, 2012

Amazon announces free tier instance Windows AMI

Amazon announces today that "AWS Free Usage Tier will now include Amazon EC2 instances running Microsoft Windows Server. Customers eligible for the AWS Free Usage tier can now use up to 750 hours per month of t1.micro instances running Microsoft Windows Server for free."

Tuesday, January 10, 2012

Cloud Computing vs Virtualization

Cloud Computing and virtualization are often mentioned together and I have been asked what is the difference between the two recently. There are overlaps for sure. Cloud Computing delivers computing as a pay-per-use service that is based on a pool of virtualized computing resources. Cloud Computing is more from an end user and business perspective while virtualization is more from technology and hardware management perspective.  Virtualization a technology that is available in several forms to allow technical resources to be separated from the physical servers they run on and treated as an abstraction layer. Virtualization is a key part of cloud computing. Amazon AWS is an example of Cloud Computing service.

Tuesday, January 3, 2012

Steps for creating automatic startup/shutdown scripts for Tomcat in Amazon EC2

After Tomcat is installed in EC2, it's time to create a startup/shutdown service script. Below are steps:
  1. login to EC2 instance with putty
  2. sudo su
  3. cd /etc/init.d
  4. vim tomcat
  5. put following into the file  
  6. #!/bin/bash
    # chkconfig: 234 20 80
    # description: Tomcat Server basic start/shutdown script
    # processname: tomcat
    export JAVA_HOME
    start() { echo -n "Starting tomcat: "
    echo "done." }
    stop() { echo -n "Shutting down tomcat: "
    ${STOP_TOMCAT} echo "done." }
    case "$1" in
    sleep 10
    echo "Usage: $0 {start|stop|restart}"
    exit 0
  7. Change permissions.  chmod 755 tomcat
  8. Add script to system services. chkconfig --add tomcat
  9. Test it out. service tomcat start, service tomcat stop.