This blog is about the development of my various Linux based web sites, starting with raspberrywebserver.com, Banoffee Pi Server and Linux Web Servers.
Banana Pi MySQL and GlusterFS Clusters
Posted 10-04-2014 at 07:46 PM by Pyplate
I recently set up a Banana Pi MySQL cluster and a Banana Pi storage cluster using GlusterFS. Each cluster is built with four servers running Raspbian OS. The storage cluster has a hard disk connected to each node.
The MySQL cluster uses one node as a master, and the other three nodes are slaves. The first time I set up replication, I logged into each server via ssh and entered commands into the MySQL shell. I've been working on a script to automate the process. So far the script can initialize a cluster and set up replication. Now I'm working on extending that script to handle fail-overs and promote slave servers to masters.
I've done some testing with the storage cluster. I booted up the cluster and made sure I could mount it from a Banana Pi client. I've done a little work on making sure that I can recover from a disk failure. I took one disk out of the cluster and formatted it. When I put it back in the cluster, I used Gluster's rebalance command to restore data to the formatted disk, and everything seemed ok. Hopefully I'll get time to do some performance testing soon.
The MySQL cluster uses one node as a master, and the other three nodes are slaves. The first time I set up replication, I logged into each server via ssh and entered commands into the MySQL shell. I've been working on a script to automate the process. So far the script can initialize a cluster and set up replication. Now I'm working on extending that script to handle fail-overs and promote slave servers to masters.
I've done some testing with the storage cluster. I booted up the cluster and made sure I could mount it from a Banana Pi client. I've done a little work on making sure that I can recover from a disk failure. I took one disk out of the cluster and formatted it. When I put it back in the cluster, I used Gluster's rebalance command to restore data to the formatted disk, and everything seemed ok. Hopefully I'll get time to do some performance testing soon.
Total Comments 0