<?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>DBA survival BLOG &#187; mod_jk</title>
	<atom:link href="http://www.ludovicocaldara.net/dba/tag/mod_jk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ludovicocaldara.net/dba</link>
	<description>Keep DBA job simple. Thanks.</description>
	<lastBuildDate>Sat, 01 Oct 2011 20:06:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>JBOSS Cluster isolation and multicasting</title>
		<link>http://www.ludovicocaldara.net/dba/jboss-cluster-isolation-and-multicasting/</link>
		<comments>http://www.ludovicocaldara.net/dba/jboss-cluster-isolation-and-multicasting/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 15:02:47 +0000</pubDate>
		<dc:creator>Ludovico</dc:creator>
				<category><![CDATA[JBoss]]></category>
		<category><![CDATA[cluster]]></category>
		<category><![CDATA[mod_jk]]></category>
		<category><![CDATA[multicast]]></category>

		<guid isPermaLink="false">http://www.ludovicocaldara.net/dba/?p=26</guid>
		<description><![CDATA[JBoss uses UDP multicasting to replicate informations across cluster nodes: even if I isolate TCP traffic, JBoss will "ear" messages sent from other clusters.]]></description>
			<content:encoded><![CDATA[<p>I configured two <strong>JBoss</strong> clusters in the same LAN: a production and a test environment.<br />
I decided to configure every single cluster with a dedicate private LANs using a restricted netmask to isolate production and test connectivity, so I assigned<br />
<strong>192.168.100.0/255.255.255.0</strong> to test and<br />
<strong>192.168.200.0/255.255.255.0</strong> to production.<br />
I configured <strong>Apache</strong> and <strong>mod_jk </strong>to loadbalance activities between cluster instances.</p>
<p>The page <a title="UsingMod_jk1.2WithJBoss" href="http://www.jboss.org/com munity/docs/DOC-12525" target="_blank">UsingMod_jk1.2WithJBoss</a> (http://www.jboss.org/community/docs/DOC-12525) is a good tutorial to achieve this.</p>
<p><span style="text-decoration: underline;">What problems should I expect?</span><br />
<strong>JBoss</strong> uses <strong>UDP multicasting</strong> to replicate informations across cluster nodes: even if I isolate TCP traffic, JBoss will &#8220;ear&#8221; messages sent from other clusters and will log a lot of warnings like the following:</p>
<p>&#8230; WARN [NAKACK] [...] discarded message from non-member &#8230;.</p>
<p>I had to change <strong>BOTH</strong> multicast ip address and port (attributes <em>mcast_addr</em> and <em>mcast_port</em>) in the following configuration files:</p>
<ul>
<li>./deploy/jboss-web-cluster.sar/META-INF/jboss-service.xml</li>
</ul>
<ul>
<li>./deploy/jmx-console.war/WEB-INF/web.xml</li>
</ul>
<ul>
<li>./deploy/cluster-service.xml</li>
</ul>
<ul>
<li>./deploy/ejb3-clustered-sfsbcache-service.xml</li>
</ul>
<ul>
<li>./deploy/ejb3-entity-cache-service.xml</li>
</ul>
<p>Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ludovicocaldara.net/dba/jboss-cluster-isolation-and-multicasting/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

