Tutorial: Sentora Panel in a HA / Clustered Environment - ADVANCED USERS ONLY
12-01-2014, 06:03 AM
So I was able to easily (for me) to make Sentora work in a HA in a clustered environment just like I did with Zpanel in May 2014 (my old zpanel forum name was lcsunshine).
Sentora's new rewritten code handles sessions and mysql connections much better where as zpanel when talking to a Percona MySQL 5.5 cluster via a haproxy load balancer wouldn't display modules forcing a refresh.
Just as a quick disclosure I don't want to come off as a jerk but this is for the advanced / expert users/admins/sys engineers, if you don't know how to or what Percona XtraDB Cluster / MySQL Clustering, HAProxy, iSCSI/NFS SANs, Hypervisor are etc... STOP NOW and do not try this tutorial; read up on them, play with them first, and teach your self before you tackle this tutorial.
For this tutorial we are going to do this over the course of the next couple of days and use 1 pair of HAProxy Load balancers with keepalive and VRRP w/ virtual/floating IP address; for the Load Balancer builds I will just link to another tutorial which will show you how to do that, I will also just link to the Percona XtraDB 5.5 Instructions as well, I have no affiliation with these other sites I just feel they are the best directions with illustrations I found.
Besides not having a single point of failure, a benefit of clustering Sentora is the the ability to grow / expand in a shared hosting environment, this is essential the foundation for shared grid hosting over multiple nodes! The major paid server control panel vendors are behind the ball on this, and still have the mind set of: "1 server / 1 panel all my eggs in one basket".
So if you want to build a multi node HA Cluster for Sentora here is everything you are going to need.
Install Centos 6.6 on 2 VMs and Build your Percona XtraDB Cluster v5.5.X as outlined here unless you have your own method:
http://www.percona.com/doc/percona-xtradb-cluster/5.5/
http://www.percona.com/doc/percona-xtrad...ation.html
Install Centos 6.6 on 2 VMs and Build your HAProxy Cluster as outlined hereunless you have your own method:
Keepalived: http://tecadmin.net/ip-failover-setup-us...-redhat-6/
HAProxy: http://www.serverlab.ca/tutorials/linux/...-centos-6/
Install Centos 6.6 on 2 VMs and run the Sentora install as outlined here:
http://docs.sentora.org/?node=7
We will continue this post tomorrow afternoon / night with the next steps......
Feel Free to ask questions in the mean time.
---
Donald DAvanzo
Chief Technology Officer
www.SinCityCloud.com
Sentora's new rewritten code handles sessions and mysql connections much better where as zpanel when talking to a Percona MySQL 5.5 cluster via a haproxy load balancer wouldn't display modules forcing a refresh.
Just as a quick disclosure I don't want to come off as a jerk but this is for the advanced / expert users/admins/sys engineers, if you don't know how to or what Percona XtraDB Cluster / MySQL Clustering, HAProxy, iSCSI/NFS SANs, Hypervisor are etc... STOP NOW and do not try this tutorial; read up on them, play with them first, and teach your self before you tackle this tutorial.
For this tutorial we are going to do this over the course of the next couple of days and use 1 pair of HAProxy Load balancers with keepalive and VRRP w/ virtual/floating IP address; for the Load Balancer builds I will just link to another tutorial which will show you how to do that, I will also just link to the Percona XtraDB 5.5 Instructions as well, I have no affiliation with these other sites I just feel they are the best directions with illustrations I found.
Besides not having a single point of failure, a benefit of clustering Sentora is the the ability to grow / expand in a shared hosting environment, this is essential the foundation for shared grid hosting over multiple nodes! The major paid server control panel vendors are behind the ball on this, and still have the mind set of: "1 server / 1 panel all my eggs in one basket".
So if you want to build a multi node HA Cluster for Sentora here is everything you are going to need.
- Your choice of cloud hypervisor: VMWare, Xen, HyperV, KVM etc
- One iSCSI/NFS SAN (clustered or single your choice; since we are trying to avoid a single point of failure a cluster iSCSI/NFS SAN is best)
- Six Virtual Servers (2 for Database Cluster we prefer Percona XtraDB v5.5, 2 for Load Balancers, 2 for the Sentora Panel Server & Services) running Centos 6.6 / 7 (For this tutorial I will use Centos 6.6)
Install Centos 6.6 on 2 VMs and Build your Percona XtraDB Cluster v5.5.X as outlined here unless you have your own method:
http://www.percona.com/doc/percona-xtradb-cluster/5.5/
http://www.percona.com/doc/percona-xtrad...ation.html
Install Centos 6.6 on 2 VMs and Build your HAProxy Cluster as outlined hereunless you have your own method:
Keepalived: http://tecadmin.net/ip-failover-setup-us...-redhat-6/
HAProxy: http://www.serverlab.ca/tutorials/linux/...-centos-6/
Install Centos 6.6 on 2 VMs and run the Sentora install as outlined here:
http://docs.sentora.org/?node=7
We will continue this post tomorrow afternoon / night with the next steps......
Feel Free to ask questions in the mean time.
---
Donald DAvanzo
Chief Technology Officer
www.SinCityCloud.com