February 22, 2012

Post: Create 3 nodes XtraDB Cluster in 3 minutes

…’s why I created simple set of scripts which setup N nodes cluster on running EC2 instances.

The script assumes that you have running N EC2 instances (in the same availability zone) running RedHat Enterprise Linux 6.2 64bit (I use m1.xlarge size).

You put hostnames of the …

Post: How To Test Your Upgrades - pt-upgrade

…and 2) the existing production load can affect your results. Testing on EC2 (+EBS) is no exception, although you can easily spin up instances … results.
Lastly, although if you are upgrading your hardware alongside your MySQL version, you should also consider running these tests on similar hardware…

Post: Product to try: MySQL/MariaDB-Galera 0.8

… for MySQL setups in the Cloud. E.g. with current state of MySQL EC2 setups suffer from lacking a good HA schema. With Galera, we…task to setup three node cluster is much more complex than an average MySQL master-slave setup.

Potential performance penalty: Although to have performance numbers I…

Post: High availability for MySQL on Amazon EC2 – Part 4 - The instance restart script


done

Prepare the user-data script for the new MySQL EC2 instance

The new MySQL instance will be running heartbeat. Since we … new instance”
else

done=”false”
while [ $done == "false" ]
do
INSTANCE_INFO=`ec2-describe-instances -K $PK -C $CERT $NEW_INSTANCE_ID | /usr/…

Post: Shard-Query EC2 images available

…0K brighthouse.ini
4.0K brighthouse.log
4.0K brighthouse.seq
964K mysql
123M ontime1
124M ontime10
123M ontime11
123M ontime12
123M ontime13
… to set up the hosts file:

sudo su -
# cat hosts.internal | ~ec2-user/tools/mkhosts >> /etc/hosts

# ping shard20
PING shard20 (10….

Post: High availability for MySQL on Amazon EC2 - Part 6 - Publishing server location

… instance) that publishes the IP address of a newly created MySQL server.
MYSQL_IP=`ec2-describe-instances -K $PK -C $CERT $NEW_INSTANCE_ID | /usr/local/bin/filtre_instances.pl | cut -d’|’ -f2`

TMPFILE=`mktemp`
ec2-describe-instances -K $PK -C $CERT | /usr/local/bin/filtre_instances.pl | …

Post: How to replace a NDB node on EC2

… since there are no single point of failure. In an environment like EC2, where a node can disappear almost without notice, one would think …must use the hostname like:

[NDBD DEFAULT]

NoOfReplicas=2

Datadir=/var/lib/mysql-cluster/
DataMemory=1G

IndexMemory=100M

[NDB_MGMD]

Id=1

Hostname=mgmn1

Post: MySQL on Amazon RDS part 1: insert performance

Amazon’s Relational Database Service (RDS) is a cloud-hosted MySQL solution. I’ve had some clients hitting performance limitations on standard EC2 servers with EBS volumes (see SSD versus EBS death match), and one of them wanted to evaluate RDS as a …

Post: Upgrading MySQL

… job for others it is many month projects. Why is that ?

Performing MySQL upgrade two things should normally worry you. It is Regressions – …to fail back quickly. This especially makes sense for cloud environments as Amazon EC2 where it is easy and inexpensive to temporary get extra boxes for …

Post: Should we give a MySQL Query Cache a second chance ?

… however memory amount might be limited especially in constrained environments as EC2. We could implement API which would allow one to use local … to make it cool again. The question is whenever anyone from “MySQL Market Players” – Oracle, MariaDB, Drizzle, Percona Server, will allocate resources to…