Download your favorite Linux distribution at LQ ISO.
Go Back > Blogs > Pyplate
User Name


This blog is about the development of my various Linux based web sites, starting with, Banoffee Pi Server and Linux Web Servers.
Rate this Entry

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.
Posted in Uncategorized
Views 1283 Comments 0
« Prev     Main     Next »
Total Comments 0




All times are GMT -5. The time now is 01:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration