<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>System Network Programming Solution - Linux - windows - centos- security- cpanel - plesk -directadmin helm&#187; Load Balancing</title>
	<atom:link href="http://thegioinguonmo.com/tag/load-balancing/feed/" rel="self" type="application/rss+xml" />
	<link>http://thegioinguonmo.com</link>
	<description>SHARING EVERYTHING</description>
	<lastBuildDate>Mon, 21 May 2012 21:42:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>RedHat Cluster Suite And Conga &#8211; Linux Clustering</title>
		<link>http://thegioinguonmo.com/high-availability/redhat-cluster-suite-conga-linux-clustering.html</link>
		<comments>http://thegioinguonmo.com/high-availability/redhat-cluster-suite-conga-linux-clustering.html#comments</comments>
		<pubDate>Sat, 10 Mar 2012 09:41:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[High-Availability]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[Conga]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Linux Clustering]]></category>
		<category><![CDATA[Load Balancing]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=2418</guid>
		<description><![CDATA[This how to describes an easy step by step installation of the RedHat Cluster Suite on three CentOS nodes and prepare them as nodes of a cluster. You will also install the Management suite which is web based and is known as Conga. You will use three nodes to form the cluster and one node [...]]]></description>
			<content:encoded><![CDATA[<p>This how to describes an easy step by step installation of the RedHat Cluster Suite on three CentOS nodes and prepare them as nodes of a cluster. You will also install the Management suite which is web based and is known as Conga.</p>
<p>You will use three nodes to form the cluster and one node as the cluster management node and as a cluster node it will not take part. All the nodes and the management node should be resolvable either by host file entries or by DNS.</p>
<p><strong> Cluster Nodes:</strong></p>
<p>cnode1:<br />
eth0-192.168.2.151/24 &#8211; external-lan<br />
eth1-192.168.1.200/26 &#8211; internal-lan cluster<br />
cnode2:<br />
eth0-192.168.2.152/24 &#8211; external-lan<br />
eth1-192.168.1.201/26 &#8211; internal-lan cluster<br />
cnode3:<br />
eth0-192.168.2.153/24 &#8211; external-lan<br />
eth1-192.168.1.202/26 &#8211; internal-lan cluster</p>
<p><strong> Cluster Management Node:</strong></p>
<p>centos:<br />
eth0-192.168.2.150/24</p>
<p>As the cluster, its management interface and the service deamons use tcp, for the purpose of this article you can disable the firewalls at these nodes.</p>
<p>OS &#8211; All Nodes:<br />
CentOS 6 Minimal</p>
<p>Cluster Nodes &#8211; Software Installation:</p>
<pre class="brush:shell">yum groupinstall "High Availability"
yum install ricci</pre>
<p>Cluster Management Node &#8211; Software Installation:</p>
<pre class="brush:shell">yum groupinstall "High Availability Management"
yum install ricci</pre>
<p>Copy this initial sample cluster config file into /etc/cluster/cluster.conf at all the nodes cnode1, cnode2, cnode3.</p>
<pre>&lt;?xml version="1.0"?&gt;
&lt;cluster config_version="1" name="cl1"&gt;
  &lt;clusternodes&gt;
    &lt;clusternode name="cnode1" nodeid="1"/&gt;
    &lt;clusternode name="cnode2" nodeid="2"/&gt;
    &lt;clusternode name="cnode3" nodeid="3"/&gt;
  &lt;/clusternodes&gt;
&lt;/cluster&gt;</pre>
<p>This initial file states that the cluster name is cl1 and defines the cluster nodes.</p>
<p>Now some services have to be configured and started at the nodes first and then at the management node as below.</p>
<p>Cluster Nodes:</p>
<pre class="brush:shell">chkconfig iptables off
chkconfig ip6tables off
chkconfig ricci on
chkconfig cman on
chkconfig rgmanager on
chkconfig modclusterd on</pre>
<p>Create a password for the ricci service user with</p>
<pre class="brush:shell">passwd ricci

service iptables stop
service ip6tables stop
service ricci start
service cman start
service rgmanager start
service modclusterd start</pre>
<p>Cluster Management Node:</p>
<pre class="brush:shell">chkconfig iptables off
chkconfig ip6tables off
chkconfig luci on
chkconfig ricci on

service iptables stop
service ip6tables stop
service luci start
service ricci start</pre>
<p>luci service is the management service that presents the web based cluster interface via https at port 8084 and can be accessed in any browser at<br />
https://&lt;cluster management node FQDN or hostname:8084&gt;/</p>
<p>ricci service is the underlying daemon that helps in cluster configuration sync and file copy, service start, stop etc. and uses tcp port 11111.</p>
<p>cman, rgmanager and modclusterd are the actual cluster services which futher start other services that actually make the clustering happen and keep it live.</p>
<p>Open a browser and enter the conga node url which in tis case is https://centos:8084/</p>
<p>After clicking &#8216;ok&#8217; to the initial warning information you will be presented with the login screen. Enter the root user and root password of that system and start the interface.</p>
<p>Now click Add cluster and add the first node cnode1 and the ricci password, click &#8216;ok&#8217; and it will detect the other two nodes also, add the ricci passwords and the cluster will be added to the Cluster Management interface. The cluster can be managed and configured from this interface. Care should be taken as the cluster.conf file sometimes does not get synced to all cluster nodes, they will get fenced due to version misconfiguration. At such times copy the cluster.conf file from node1 to all the other nodes. If all the nodes are in sync then the uptime is shown in the cluster nodes list.</p>
<p>Getting a cluster, configuring and managing, your cluster is up, live and configured in no time and later other clusters can be added into this management interface for easy maintenance.</p>
<p>- Bellamkonda Sudhakar</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://thegioinguonmo.com/high-availability/redhat-cluster-suite-conga-linux-clustering.html" title="load balancer plesk">load balancer plesk</a> (2)</li><li><a href="http://thegioinguonmo.com/high-availability/redhat-cluster-suite-conga-linux-clustering.html" title="kvm conga">kvm conga</a> (2)</li><li><a href="http://thegioinguonmo.com/high-availability/redhat-cluster-suite-conga-linux-clustering.html" title="how to install jboss on a 2 node ha cluster linux">how to install jboss on a 2 node ha cluster linux</a> (1)</li><li><a href="http://thegioinguonmo.com/high-availability/redhat-cluster-suite-conga-linux-clustering.html" title="linux cluster starting service">linux cluster starting service</a> (1)</li><li><a href="http://thegioinguonmo.com/high-availability/redhat-cluster-suite-conga-linux-clustering.html" title="Author: Bellamkonda Sudhakar">Author: Bellamkonda Sudhakar</a> (1)</li><li><a href="http://thegioinguonmo.com/high-availability/redhat-cluster-suite-conga-linux-clustering.html" title="modclusterd">modclusterd</a> (1)</li><li><a href="http://thegioinguonmo.com/high-availability/redhat-cluster-suite-conga-linux-clustering.html" title="mysql cluster centos 6 conga">mysql cluster centos 6 conga</a> (1)</li><li><a href="http://thegioinguonmo.com/high-availability/redhat-cluster-suite-conga-linux-clustering.html" title="plesk cluster linux">plesk cluster linux</a> (1)</li><li><a href="http://thegioinguonmo.com/high-availability/redhat-cluster-suite-conga-linux-clustering.html" title="solutions cluster centos">solutions cluster centos</a> (1)</li><li><a href="http://thegioinguonmo.com/high-availability/redhat-cluster-suite-conga-linux-clustering.html" title="high availability cpanel howto">high availability cpanel howto</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/high-availability/redhat-cluster-suite-conga-linux-clustering.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Keep Data Sync’d Between Two Load Balanced Servers</title>
		<link>http://thegioinguonmo.com/os/linux/data-syncd-load-balanced-servers.html</link>
		<comments>http://thegioinguonmo.com/os/linux/data-syncd-load-balanced-servers.html#comments</comments>
		<pubDate>Tue, 06 Mar 2012 14:42:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[Data Sync]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Load Balancing]]></category>
		<category><![CDATA[mirror server]]></category>
		<category><![CDATA[rsync command]]></category>
		<category><![CDATA[sync server]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=2503</guid>
		<description><![CDATA[Load balancing helps provide redundancy to your website. However, one often asked question is how to keep your content synchronized on each server. If you put a new web page on one server, how does it get copied over to the second server? In this article, i’ll explain how to use rsync command to synchronize [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Load balancing</strong> helps provide redundancy to your website. However, one often asked question is how to keep your content synchronized on each server. If you put a new web page on one server, how does it get copied over to the second server? In this article, i’ll explain how to use rsync command to synchronize data between a specific directory on each server.</p>
<h2>Install rsync</h2>
<p>On Centos Linux type the following command:</p>
<pre>yum install rsync</pre>
<h2>Using rsync command with password authentication</h2>
<p>For example, i have two servers using for load balanced and called server1(192.168.1.101) and server2(192.168.1.102). I wanted to keep data in /var/www/html sync between to servers. Type the following command on server1:</p>
<pre class="brush:plain">rsync -avr --progress --links --rsh='/usr/bin/ssh' 192.168.1.102:/var/www/html /var/www/html</pre>
<p><strong>With:</strong><br />
-avr : archive mode (a), verbose (v), recurse into directories (r).<br />
–progress: Show progress.<br />
–links: copy symlinks as symlinks.<br />
–rsh: use to specify the remote shell ssh to use.<br />
192.168.1.102:/var/www/html: IP address of server2 and path to synchronize to server1<br />
/var/www/html: Server1 path</p>
<h2>Using rsync command with SSH certificate</h2>
<p>Replace above command with following command:</p>
<pre class="brush:plain">rsync -avr --progress --links --rsh='/usr/bin/ssh -i /path_to_private_key' 192.168.1.102:/var/www/html /var/www/html</pre>
<h2>A sample shell script</h2>
<pre class="brush:shell">#!/bin/bash
SOURCEPATH='source'
DESTPATH='destination'
SOURCEHOST='ip_address'
PRIVATEKEY='private_key'
LOGFILE='log_file'
SSH='/usr/bin/ssh'
rsync -avr --progress --links --rsh="'$SSH -i $PRIVATEKEY'" $SOURCEHOST:$SOURCEPATH $DESTPATH 2&gt;&amp;1 &gt;&gt; $LOGFILE</pre>
<h4>Incoming search terms:</h4><ul><li><a href="http://thegioinguonmo.com/os/linux/data-syncd-load-balanced-servers.html" title="centos data sync server">centos data sync server</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/data-syncd-load-balanced-servers.html" title="plesk version libmysqlclient_15 not defined in file libmysqlclient so 15 with link time reference">plesk version libmysqlclient_15 not defined in file libmysqlclient so 15 with link time reference</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/data-syncd-load-balanced-servers.html" title="rsh between two servers">rsh between two servers</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/data-syncd-load-balanced-servers.html" title="rsync between nas and centos server">rsync between nas and centos server</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/data-syncd-load-balanced-servers.html" title="rsync between two servers directadmin">rsync between two servers directadmin</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/data-syncd-load-balanced-servers.html" title="sync backup plesk">sync backup plesk</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/data-syncd-load-balanced-servers.html" title="sync file between centos server">sync file between centos server</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/data-syncd-load-balanced-servers.html" title="sync files between centos server">sync files between centos server</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/data-syncd-load-balanced-servers.html" title="sync windows load balanced servers">sync windows load balanced servers</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/data-syncd-load-balanced-servers.html" title="synchronize web servers loadbalancing">synchronize web servers loadbalancing</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/data-syncd-load-balanced-servers.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: thegioinguonmo.com @ 2012-05-22 21:30:57 -->
