[jboss-user] [Clustering/JBoss] - Re: Clustering begginner..please HELP

davewebb do-not-reply at jboss.com
Sat Feb 10 15:34:06 EST 2007


Sree,

I have a couple of recommendations for you.

1) Turn your logging level down to INFO instead of DEBUG.  If there is an ERROR, we can try DEBUG if we need to.  Go to server/all/conf and edit your log4j.xml and modify your CONSOLE appender like this:


   <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
  |       <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
  |       <param name="Target" value="System.out"/>
  |       <param name="Threshold" value="INFO"/>
  | 
  |       <layout class="org.apache.log4j.PatternLayout">
  |          <!-- The default pattern: Date Priority [Category] Message\n -->
  |          <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
  |       </layout>
  |    </appender>

The threshold parameter is the important one.

2) Restart you Jboss servers.
3) Look in the server.log for some lines similar to these.

-------------------------------------------------------
  | GMS: address is winchester:1789 (additional data: 16 bytes)
  | -------------------------------------------------------
  | 15:29:39,414 INFO  [DefaultPartition] Number of cluster members: 1
  | 15:29:39,414 INFO  [DefaultPartition] Other members: 0
  | 15:29:39,414 INFO  [DefaultPartition] Fetching state (will wait for 30000 milliseconds):
  | 15:29:39,414 INFO  [DefaultPartition] New cluster view for partition DefaultPartition (id: 0, delta: 0) : [10.1.69.100:1099]
  | 15:29:39,434 INFO  [DefaultPartition] I am (null) received membershipChanged event:
  | 15:29:39,434 INFO  [DefaultPartition] Dead members: 0 ([])
  | 15:29:39,434 INFO  [DefaultPartition] New Members : 0 ([])
  | 15:29:39,434 INFO  [DefaultPartition] All Members : 1 ([10.1.69.100:1099])

You should see All members at 2, and the P addresses should be your bound IPs of  your servers.  

I will talk more about failover when I have more time.



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4014247#4014247

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4014247



More information about the jboss-user mailing list