{"id":26,"date":"2008-11-24T17:02:47","date_gmt":"2008-11-24T15:02:47","guid":{"rendered":"http:\/\/www.ludovicocaldara.net\/dba\/?p=26"},"modified":"2020-08-18T17:02:28","modified_gmt":"2020-08-18T15:02:28","slug":"jboss-cluster-isolation-and-multicasting","status":"publish","type":"post","link":"https:\/\/www.ludovicocaldara.net\/dba\/jboss-cluster-isolation-and-multicasting\/","title":{"rendered":"JBOSS Cluster isolation and multicasting"},"content":{"rendered":"<p>I configured two <strong>JBoss<\/strong> clusters in the same LAN: a production and a test environment.<br \/>\nI 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 \/>\n<strong>192.168.100.0\/255.255.255.0<\/strong> to test and<br \/>\n<strong>192.168.200.0\/255.255.255.0<\/strong> to production.<br \/>\nI configured <strong>Apache<\/strong> and <strong>mod_jk <\/strong>to loadbalance activities between cluster instances.<\/p>\n<p>The page <a title=\"UsingMod_jk1.2WithJBoss\" href=\"http:\/\/www.jboss.org\/com munity\/docs\/DOC-12525\" target=\"_blank\" rel=\"noopener noreferrer\">UsingMod_jk1.2WithJBoss<\/a> (http:\/\/www.jboss.org\/community\/docs\/DOC-12525) is a good tutorial to achieve this.<\/p>\n<p><span style=\"text-decoration: underline;\">What problems should I expect?<\/span><br \/>\n<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>\n<p>&#8230; WARN [NAKACK] [&#8230;] discarded message from non-member &#8230;.<\/p>\n<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>\n<ul>\n<li>.\/deploy\/jboss-web-cluster.sar\/META-INF\/jboss-service.xml<\/li>\n<\/ul>\n<ul>\n<li>.\/deploy\/jmx-console.war\/WEB-INF\/web.xml<\/li>\n<\/ul>\n<ul>\n<li>.\/deploy\/cluster-service.xml<\/li>\n<\/ul>\n<ul>\n<li>.\/deploy\/ejb3-clustered-sfsbcache-service.xml<\/li>\n<\/ul>\n<ul>\n<li>.\/deploy\/ejb3-entity-cache-service.xml<\/li>\n<\/ul>\n<p>Good luck!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>JBoss uses UDP multicasting to replicate informations across cluster nodes: even if I isolate TCP traffic, JBoss will &#8220;ear&#8221; messages sent from other clusters. <a href=\"https:\/\/www.ludovicocaldara.net\/dba\/jboss-cluster-isolation-and-multicasting\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[18,331],"tags":[19,288,20,21],"class_list":["post-26","post","type-post","status-publish","format-standard","hentry","category-jboss","category-web","tag-cluster","tag-jboss","tag-mod_jk","tag-multicast"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/posts\/26","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/comments?post=26"}],"version-history":[{"count":4,"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/posts\/26\/revisions"}],"predecessor-version":[{"id":1997,"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/posts\/26\/revisions\/1997"}],"wp:attachment":[{"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/media?parent=26"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/categories?post=26"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/tags?post=26"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}