I have managed to create a 3 node cluster with vestacp using mariadb galera cluster, csync2 and lsyncd on a CentOS 6.6 install.
I have removed some stuff from vestacp as I don't use it like dns, firewall management and cron jobs
The firewall rules I directly change in /etc/sysconfig/iptables
(not tested if it's possible to cluster those too)
v-add-web has been adapted because chattr +i won't work with csync2
I also had to remove nginx support as it wont work correctly with lsyncd
you can download the scripts from here
wget
http://aksint-servers.nl/install/vcpfirstnode.sh
wget
http://aksint-servers.nl/install/vcpaddnode.sh
wget
http://aksint-servers.nl/install/vcpcsync2.sh
adapt it as described below and start it
I have uploaded all required dependencies to my server
I'm using cloudflare as DNS provider as they provide basic DDOS attack protection and have support for Round Robin. Most important they have a basic plan for free.
install centos 6.6 minimal and after that vestacp like you would usually do
make sure your iptables is allowing all traffic from the nodes you have.
Adapt the vcp node scripts before running them.
You need to set the mariadb password (MYPWD) and external ip (EXTIP), and for addnode the ip addresses of the other nodes as well. Don't include the local ip address)
use vcpfirstnode on the first computer that you are installing vcpaddnode on additional nodes after the first one is running.
vcpcsync2.sh
you could adapt the script for 2 nodes, just remove everything for node3
activate the commented commands for the first node at the bottom of the script
start vcpcsync2.sh on all nodes until you get to the ssh-keygen part. then first finish the secondary nodes, and after that the first node.
Note: There are no slave servers. it is a multi master setup. everything (like users, groups, websites, ssl certificates) on all servers will be synced near-realtime.
Please use these scripts only on virtual machines and clean installs. I can't give any guarantee that it will work on servers that are already online with data.
I just started to test these scripts on real machines instead of virtual machines on my local computer.
I will post an update if I find an error.
This will give you an idea though how to create a cluster without shared storage with vestacp even if it doesn't support it :P