![]() Create the directory: $ mkdir -p /var/www/htmlġ0. We’ll mount the replicated volume on /var/www/html. Start the replicated volume on owncloud1: $ gluster volume start rep-volumeĨ. Volume create: rep-volume: success: please start the volume to access dataħ. On owncloud1, create a replicated volume on probed nodes: $ gluster volume create rep-volume replica 3 10.0.0.201:/storage/brick 10.0.0.202:/storage/brick 10.0.0.203:/storage/brick You can verify the peer status with the following command: $ gluster peer status On owncloud1, probe the other nodes: $ gluster peer probe 10.0.0.202 Start gluster daemon: $ service glusterd startĥ. Create a directory called brick under /storage partition: $ mkdir -p /storage/brickĤ. Install GlusterFS: $ yum install -y glusterfs glusterfs-fuse glusterfs-serverģ. Get the Gluster YUM repository file and save it into /etc/: $ wget -P /etc/Ģ. * The following steps should be performed on owncloud1, owncloud2 and owncloud3 unless otherwise specified.ġ. Or, you can just kill the haproxy process and let ClusterControl recover it. Restart HAProxy to apply changes: $ service haproxy restart On haproxy1 and haproxy2, open /etc/haproxy/haproxy.cfg and add the following lines: frontend http-in ![]() We will need to add HTTP load balancing capabilities to the newly installed load balancers. By default, our script will configure the MySQL reverse proxy service to listen on port 33306. You will now see your MySQL Galera Cluster in the UI.ħ. The deployment will take about 15 minutes, and once completed, the ClusterControl UI is accessible at. $ cd s9s-galera-codership-3.5.0-rpm/mysql/scripts/install/ģ. Download the deployment package and run deploy.sh: $ tar -xzf s9s-galera-codership-3.5. Operating System : RHEL6 - Redhat 6.4/Fedora/Centos 6.4/OLN 6.4/Amazon AMIĭatabase Servers : 10.0.0.201 10.0.0.202 10.0.0.203Īt the end of the wizard, a deployment package will be generated and emailed to you.Ģ. ![]() In the wizard, we used the following values when configuring our database cluster: Vendor : Codership To set up MySQL Galera Cluster, go to the Galera Configurator to generate a deployment package. ** The deployment of the database cluster will be done from haproxy2, i.e., the ClusterControl node.ġ. $ chkconfig iptables off Deploying Galera Cluster for MySQL ![]() $ sed -i 's|SELINUX=enforcing|SELINUX=disabled|g' /etc/selinux/config To simplify the deployment process, we will turn off SElinux and iptables on all hosts: $ setenforce 0 Install ownCloud and connect it to the Web/DB cluster via the load balancerĪdd the following hosts definition in /etc/hosts of all nodes: 10.0.0.200 virtual-ip owncloud.Configure Keepalived and HAProxy for web and database load balancing with auto failover.Configure Apache and PHP on owncloud1, owncloud2 and owncloud3. ![]() Configure GlusterFS clustered file system.Deploy MySQL Galera Cluster onto owncloud1, owncloud2 and oncloud3 from haproxy2.haproxy2: load balancer (backup) + keepalived + ClusterControl.haproxy1: load balancer (master) + keepalived.owncloud3: web server + database server.owncloud2: web server + database server.owncloud1: web server + database server.Our setup consists of 5 servers or nodes: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |