Archive for April, 2010

MySQL Stress Test tool

Recently we moved a client from virtual host to amazon ec2 3 tier architecture then we thought of providing benchmark test report to show the Improvement, then we searched for simple straight forward tools, but we haven`t found, then I started to write a java code to benchmark by stressing mysql server.
It performed well, so [...]

Script to start a instance in amazon ec2

This script is used to start a instance in ec2, you can extended this script in the way you want, we keep on posting new scripts to work with ec2

#!/bin/bash

export EC2_HOME=/home/sandeep/ec2/ec2-api-tools-1.3-46266
PATH=$EC2_HOME/bin:$PATH
export EC2_PRIVATE_KEY=/home/sandeep/ec2/pk-XXXXXXXXXXXXXXXXXXXXXXXX.pem
export EC2_CERT=/home/sandeep/ec2/cert-XXXXXXXXXXXXXXXXXXXXXXXX.pem
export EC2_URL=https://us-east-1.ec2.amazonaws.com
export JAVA_HOME=/usr/lib/jvm/java-6-sun/jre/

export amiid="ami-0d5db264"
export key="xxxxsshkeyxxxx"
export zone="us-east-1d"
export id_file="/home/sandeep/ec2/keyxxx.pem"
export group="default"

#
# Start the instance
#
echo Launching AMI ${amiid}
${EC2_HOME}/bin/ec2-run-instances ${amiid} -z ${zone}
[...]