<?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>Random Bugs &#187; Clustering</title>
	<atom:link href="http://www.randombugs.com/category/cluster/feed" rel="self" type="application/rss+xml" />
	<link>http://www.randombugs.com</link>
	<description>Just another Bastard Operator From Hell. Everything from *nix to programming</description>
	<lastBuildDate>Thu, 06 May 2010 14:21:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Glassfish Cluster 2.1.1, HttpSessions replication and multi-thread concurrent access</title>
		<link>http://www.randombugs.com/java/glassfish/glassfish-cluster-211-httpsessions-replication-multithread-concurrent-access.html</link>
		<comments>http://www.randombugs.com/java/glassfish/glassfish-cluster-211-httpsessions-replication-multithread-concurrent-access.html#comments</comments>
		<pubDate>Wed, 03 Mar 2010 10:07:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Clustering]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Glassfish]]></category>
		<category><![CDATA[Headline]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[httpsession]]></category>
		<category><![CDATA[session]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=634</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/cluster.png" width="24" height="24" alt="" title="Clustering" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/bluefish.png" width="24" height="24" alt="" title="Glassfish" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/text-x-java.png" width="24" height="24" alt="" title="Java" /><br/>I have several clusters with Glassfish 2.1.1 in a BIG virtual environment and all worked fine &#8230; until I add new processors to this clusters. After upgrade, I started to have problems with HttpSession replication. Starting debugging JXTA, Shoal and the Web Container didn&#8217;t help at all. Until I found this page Memory Replication &#038; Multi-threaded Concurrent Access to HttpSessions. My applications was doing multi-thread concurrent access some times (Ajax) and this was the root cause of all lost sessions. I modified sun-web.xml from  my application, accordingly with the ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/java/glassfish/glassfish-cluster-211-httpsessions-replication-multithread-concurrent-access.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade from Glassfish 2.1 to 2.1.1</title>
		<link>http://www.randombugs.com/java/glassfish/upgrade-glassfish-21-211.html</link>
		<comments>http://www.randombugs.com/java/glassfish/upgrade-glassfish-21-211.html#comments</comments>
		<pubDate>Tue, 29 Dec 2009 13:39:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Clustering]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Glassfish]]></category>
		<category><![CDATA[Headline]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=625</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/cluster.png" width="24" height="24" alt="" title="Clustering" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/bluefish.png" width="24" height="24" alt="" title="Glassfish" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/help-contents.png" width="24" height="24" alt="" title="How-to" /><br/>For some reasons the asupgrade tool from Sun Glassfish doesn&#8217;t work if you want to upgrade your Glassfish from 2.1 to 2.1.1. The upgrade method what I will present you in the next post, probably, is not recommended by SUN, but it will work in most cases (clustered or not). Just follow this steps:

1. Stop all domains, node agents, instances from all cluster (or only the domain if you have only 1 server)
2. Rename Glassfish folder to g2.1
3. Install glassfish 2.1.1

$ java -Xmx256m -jar glassfish-installer-v2.1.1-b31g-linux.jar
$ cd glassfish
$ chmod +x lib/ant/bin/ant
$ ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/java/glassfish/upgrade-glassfish-21-211.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing defaults ports for JMS under Glassfish</title>
		<link>http://www.randombugs.com/java/glassfish/changeing-defaults-ports-jms-glassfish.html</link>
		<comments>http://www.randombugs.com/java/glassfish/changeing-defaults-ports-jms-glassfish.html#comments</comments>
		<pubDate>Thu, 28 May 2009 07:47:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Clustering]]></category>
		<category><![CDATA[Glassfish]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Newbie]]></category>
		<category><![CDATA[JMS]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=452</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/cluster.png" width="24" height="24" alt="" title="Clustering" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/bluefish.png" width="24" height="24" alt="" title="Glassfish" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/help-contents.png" width="24" height="24" alt="" title="How-to" /><br/>Why you should do that?  All this ports, by default, are allocated dynamically and if you want to use a firewall between your client and JMS broker then you should have static ports assigned. Another solution is to tunnel through httpjms and httpsjms protocol but this are slow. In the next article I will show you how to assign static ports to this JMS service in Glassfish.  To show you the all ports what need for JMS I just &#8220;ripped&#8221; the following table from SUN Site:  http://docs.sun.com/app/docs/doc/820-4916/gcuhq?a=view





Connection ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/java/glassfish/changeing-defaults-ports-jms-glassfish.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Glassfish 2.1 with HADB</title>
		<link>http://www.randombugs.com/java/glassfish/install-glassfish-21-hadb.html</link>
		<comments>http://www.randombugs.com/java/glassfish/install-glassfish-21-hadb.html#comments</comments>
		<pubDate>Fri, 24 Apr 2009 09:06:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Clustering]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Glassfish]]></category>
		<category><![CDATA[Headline]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=403</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/cluster.png" width="24" height="24" alt="" title="Clustering" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/debian.png" width="24" height="24" alt="" title="Debian" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/bluefish.png" width="24" height="24" alt="" title="Glassfish" /><br/>If you want  99.999% availability of your Glassfish cluster then you should do 2 things: 1. Use HADB for user HTTP and Session persistence, 2. get some SUN support. I cannot help you with the decision on point 2, but with point 1 I will show you how to doit.In this article I will NOT start again to show you how to configure a Glassfish cluster, because this is already made in this article. Today I will present how to add HADB functionality to a existent Glassfish cluster.

Note:

 Install ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/java/glassfish/install-glassfish-21-hadb.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How-to monitor linux heartbeat with SNMP</title>
		<link>http://www.randombugs.com/linux/howto-monitor-linux-heartbeat-snmp.html</link>
		<comments>http://www.randombugs.com/linux/howto-monitor-linux-heartbeat-snmp.html#comments</comments>
		<pubDate>Fri, 20 Mar 2009 13:09:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Clustering]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Recovery]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[high availability]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=328</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/cluster.png" width="24" height="24" alt="" title="Clustering" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/debian.png" width="24" height="24" alt="" title="Debian" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/help-contents.png" width="24" height="24" alt="" title="How-to" /><br/>Monitoring is one of the most vital part of all online business right now. A server what fail to deliver its content to a client it&#8217;s a big problem, because of this server disruptive service or downtime is our the worst enemies. Some downtimes are impossible to be predicted and monitoring your system is the best thing you can do. Did you ever asked yourself what means 99% availability? 7 hours per month of downtime. 7 hours for a client can be very frustrating.

In this article I will try to ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/linux/howto-monitor-linux-heartbeat-snmp.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cluster for Glassfish 2.1</title>
		<link>http://www.randombugs.com/java/glassfish/cluster-glassfish-21.html</link>
		<comments>http://www.randombugs.com/java/glassfish/cluster-glassfish-21.html#comments</comments>
		<pubDate>Thu, 29 Jan 2009 11:36:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Bugs]]></category>
		<category><![CDATA[Clustering]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Glassfish]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[bug]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=146</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/bug.png" width="24" height="24" alt="" title="Bugs" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/cluster.png" width="24" height="24" alt="" title="Clustering" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/debian.png" width="24" height="24" alt="" title="Debian" /><br/>Again some problems with glassfish cluster. If in Glassfish v2UR2 all was ok in Glassfish 2.1 we had some problems. This post is based on How to install and configure a Glassfish cluster
 my early article. So first part of installing the cluster, first server with DAS and all the stuff is working perfectly, but second part when we need to add more instances we get some problems. Following the steps to add a new instance on the cluster we get an error:
asadmin start-node-agent &#8211;syncinstances=true ws-agent-2
Please enter the master password ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/java/glassfish/cluster-glassfish-21.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to install and configure a Liferay cluster</title>
		<link>http://www.randombugs.com/java/glassfish/how-to-install-and-configure-a-liferay-cluster.html</link>
		<comments>http://www.randombugs.com/java/glassfish/how-to-install-and-configure-a-liferay-cluster.html#comments</comments>
		<pubDate>Tue, 26 Aug 2008 09:47:00 +0000</pubDate>
		<dc:creator>sacx</dc:creator>
				<category><![CDATA[Clustering]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Glassfish]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Liferay]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://randombugs.wordpress.com/2008/08/26/how-to-install-and-configure-a-liferay-cluster/</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/cluster.png" width="24" height="24" alt="" title="Clustering" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/debian.png" width="24" height="24" alt="" title="Debian" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/bluefish.png" width="24" height="24" alt="" title="Glassfish" /><br/>This article is the second part from a serie of 2 articles about glassfish and liferay. I hope you will find this articles very useful. First article is here.

Before starting:
1. Be sure you have the DNS configuration working properly (or /etc/hosts)
2. Install a glassfish cluster (http://random-byte.blogspot.com/2008/08/how-to-install-and-configure-glassfish.html)
3. If you have some errors about jdbc\__TimePool (a bug in glassfish) when you are trying to set the target on the cluster just create another JDBC resource with a another name with the target on cluster (Read first part about his error: http://randombugs.wordpress.com/2008/08/26/how-to-install-and-configure-a-glassfish-cluster/)
4. Before ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/java/glassfish/how-to-install-and-configure-a-liferay-cluster.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install and configure a Glassfish cluster</title>
		<link>http://www.randombugs.com/java/glassfish/how-to-install-and-configure-a-glassfish-cluster.html</link>
		<comments>http://www.randombugs.com/java/glassfish/how-to-install-and-configure-a-glassfish-cluster.html#comments</comments>
		<pubDate>Tue, 26 Aug 2008 09:06:00 +0000</pubDate>
		<dc:creator>sacx</dc:creator>
				<category><![CDATA[Clustering]]></category>
		<category><![CDATA[Glassfish]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Liferay]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://randombugs.wordpress.com/2008/08/26/how-to-install-and-configure-a-glassfish-cluster/</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/cluster.png" width="24" height="24" alt="" title="Clustering" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/bluefish.png" width="24" height="24" alt="" title="Glassfish" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/text-x-java.png" width="24" height="24" alt="" title="Java" /><br/>
In the last days I tried to install and configure a Glassfish and a Liferay cluster for a client. From what I see in Internet is a lot of &#8220;old&#8221; documentation for Glassfish / Liferay clustering and nothing related to latest versions of Glasfish / Liferay (glassfish v2ur2 and Liferay 5.1.1), and I know this documentation also will become old in some months   . So I intend to write (as best as I can) a very simple documentation about how I manage this to work and what problems ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/java/glassfish/how-to-install-and-configure-a-glassfish-cluster.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>MySQL Cluster (OLD)</title>
		<link>http://www.randombugs.com/linux/mysql-cluster-old.html</link>
		<comments>http://www.randombugs.com/linux/mysql-cluster-old.html#comments</comments>
		<pubDate>Mon, 12 Nov 2007 12:50:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Clustering]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mysql]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=51</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/cluster.png" width="24" height="24" alt="" title="Clustering" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/debian.png" width="24" height="24" alt="" title="Debian" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/tux.png" width="24" height="24" alt="" title="Linux" /><br/>I will try to exemplify as easy as possible a clustered mysql server under Debian
1. Mysql Servers
For example we have 2 servers what need to be configured in clustered mode. This servers run mysql 4.1.8a (The configuration is still possible to work on other versions). Each cluster server need to have this additional conf in /etc/mysql/my.cnf:
[mysqld]
ndbcluster
ndb-connectstring=app1.mydomain.com
[mysql_cluster]
ndb-connectstring=app1.mydomain.com
where app1.mydomain.com is the management server for cluster. To restart a server you need to restart start ndbd server either.
/etc/init.d/mysql restart
killall ndbd
/etc/init.d/ndbd start
2. Management server
The management sever is used to provide configuration for cluster servers. ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/linux/mysql-cluster-old.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
