October 25, 2009

XtraDB Amazon Image

Posted by Aleksandr Kuzminsky |

For those who use Amazon EC2 service and were anxious about having XtraDB ready to launch there is a good news.

We created a public AMI (Amazon Machine Image) with XtraDB release 8 installed on CentOS 5.3.

How to use it.

First make sure it is avaiable.

CODE:
  1. $ ec2-describe-images ami-4701e22e
  2. IMAGE   ami-4701e22e    xtradb/centos-5.3-x86_64.fs.manifest.xml        834362721059    available       public          x86_64  machine
  3. $

Run it. It is built for x86_64 plaform, so allowed types are m1.large, m1.xlarge and c1.xlarge

CODE:
  1. $ ec2-run-instances ami-4701e22e -t m1.large
  2. RESERVATION     r-46b3432e      834362721059    default
  3. INSTANCE        i-ecc74084      ami-4701e22e                    pending         0               m1.large        2009-10-25T18:31:06+0000        us-east-1c

Wait till the instance starts

CODE:
  1. $ ec2-describe-instances i-ecc74084
  2. RESERVATION     r-46b3432e      834362721059    default
  3. INSTANCE        i-ecc74084      ami-4701e22e    ec2-75-101-203-143.compute-1.amazonaws.com      domU-12-31-39-0A-26-22.compute-1.internal       running      0
  4. m1.large        2009-10-25T18:31:06+0000        us-east-1c

Now it is up and ready.

Related posts: :read_ahead (disabled) as steroid::Performance improvements in Percona 5.0.83 and XtraDB::XtraDB in CPU-bound benchmark:
 

6 Comments »

  1. Is the my.cnf setup optimally for the EC2 instances?

    Comment :: October 27, 2009 @ 1:07 pm

  2. Andrew, it will need workload-specific and image-size-specific configuration.

    Comment :: October 27, 2009 @ 6:30 pm

  3. 3. popgo

    i also used the XtraDB in my company products! High performace! Thanks

    Comment :: October 28, 2009 @ 6:55 pm

  4. 4. Aleksandr Kuzminsky

    Andrew,

    The mentioned image has default mysql options. However in future there will be images tuned for the best performance for specific workloads/instance types.

    Comment :: October 29, 2009 @ 2:19 am

  5. Hi Guys,

    Just tried so take a look at your AMI, but it asks for a root password, so i’m not sure if the AMI is made correctly.

    herse’s what i did:

    wart$ ec2-run-instances ami-4701e22e -t m1.large -k gsg-keypair
    RESERVATION r-30d72d58 701859409573 default
    INSTANCE i-04a9226c ami-4701e22e pending gsg-keypair 0 m1.large 2009-11-02T09:32:02+0000 us-east-1d monitoring-disabled

    wart$ ec2-describe-instances i-04a9226c
    RESERVATION r-30d72d58 701859409573 default
    INSTANCE i-04a9226c ami-4701e22e ec2-174-129-76-91.compute-1.amazonaws.com ip-10-242-71-79.ec2.internal running gsg-keypair 0 m1.large 2009-11-02T09:32:02+0000 us-east-1d monitoring-disabled 174.129.76.91 10.242.71.79

    wart$ ssh -i gsg-keypair root@ec2-174-129-76-91.compute-1.amazonaws.com
    root@ec2-174-129-76-91.compute-1.amazonaws.com’s password:

    Comment :: November 2, 2009 @ 2:48 am

  6. 6. Andrew Harvey

    I’m seeing the same issue as wart. Seems that there’s something odd with your keypairs on the AMI.

    Comment :: November 12, 2009 @ 6:23 pm

 

Subscribe without commenting

Trackbacks/Pingbacks