I have installed MariaDB Galera Cluster on ubuntu 14 and it is working fine.
I have 3 nodes (each 500GB HDD capacity) mariadb cluster and all replications are working perfect.
My questions are :
When I run out of disk space after few years, What is the exact way to increase the capacity of the database?
Is it possible to add extra nodes and increase the database HDD capacity? I heard about MaxScale, but I can't figure it out to work on
Can anyone explain this according to above configuration.
Assuming the 500GB is the problem...
Plan A:
Plan B:
Plan B will probably also add more cores, etc. (But you did not mention the need for such.)
Both of these methods have no more downtime than loss of a single server (3 times), which you already know about and can easily handle.
If you want to Shard the data, that would involve multiple clusters. Sharding is not warranted unless the write capacity of the Cluster is about to be exceeded. And Sharding is not a trivial task.
Another way to 'expand' disks... With a RAID controller (better than RAID software), you can improve the performance of the disk subsystem via "striping". Usually people go with RAID-5 or RAID-10 to get parity to allow for seamless recovery from a dead drive. However, Galera effectively handles dead drives by letting you repair any part of a server without losing the system. So RAID-0 is arguably more cost-effective.
Some operating systems also let you logically treat multiple drives as a single big filesystem. This does not give you the performance boost of striping, but it does let you (I think) add a drive without having to reinstall the OS, software, and data.
A RAID controller with Battery Backed Write Cache has the extra advantage of making writes "instantaneous" even without risking loss due to power failure.