January 5, 2015 By Severalnines Cloud storage is hot. Dropbox, Apple iCloud, Google Drive, Microsoft SkyDrive and Amazon Cloud Drive all offer cloud sharing platforms where you can store documents in the cloud and access them from all your devices. For enterprises who require full control, ownCloud is an open source solution that allows files to be stored on-premises and/or a backend cloud. In this blog post, we’ll show you how to deploy a high availability setup using ownCloud Community Edition. We will need to set up redundancy in each of the following layers: file storage web server database server load balancer We will use five servers. ownCloud will run on three separate servers with MySQL Galera Cluster 5.6 and GlusterFS running on RHEL 6.5 64bit. ownCloud supports GlusterFS as primary storage. ClusterControl will be co-located with one of the two load balancers to monitor and manage Galera Cluster and HAProxy. The following diagram illustrates our setup: Our setup consists of 5 servers or nodes: owncloud1: web server + database server owncloud2: web server + database server owncloud3: web server + database server haproxy1: load balancer (master) + keepalived haproxy2: load balancer (backup) + keepalived + ClusterControl Our main steps would be: Prepare 5 hosts Deploy MySQL Galera Cluster onto owncloud1, owncloud2 and oncloud3 from haproxy2 Configure GlusterFS clustered file system Configure Apache and PHP on owncloud1, owncloud2 and owncloud3 Configure Keepalived and HAProxy for web and database load balancing with auto failover Install ownCloud and connect it to the Web/DB cluster via the load balancer Preparing Hosts Add the following hosts definition in /etc/hosts of all nodes: 10.0.0.200 virtual-ip owncloud 10.0.0.201 owncloud1 web1 mysql1 10.0.0.202 owncloud2 web2 mysql2 10.0.0.203 owncloud3 web3 mysql3 10.0.0.211 haproxy1 10.0.0.212 haproxy2 clustercontrol read more
from Planet MySQL http://ift.tt/1du18ol
Nenhum comentário:
Postar um comentário
Leave your comment here!