-
1. Re: how can i make a cluster from default server config?
jaikiran Aug 3, 2010 5:55 AM (in response to elhanan)Why not start off with the "all" configuration and if required remove any unwanted services from that config.
-
2. Re: how can i make a cluster from default server config?
elhanan Aug 5, 2010 3:08 AM (in response to jaikiran)because we allready have an existing configuration which started from the default config and i would not like to change it. (or at least it as least as possible).
so far all i did was copy the folowing jars the default config:
jboss-cache-jdk50.jar
jacorb.jar
jbossha.jar
jgroups.jar
and add the follwing cluster-service.xml which contains:
<?xml version="1.0" encoding="UTF-8"?>
<server>
<mbean code="org.jboss.ha.framework.server.ClusterPartition"
name="jboss:service=DefaultPartition">
<!-- Name of the partition being built -->
<attribute name="PartitionName">
${jboss.partition.name:DefaultPartition}
</attribute><!-- The address used to determine the node name -->
<attribute name="NodeAddress">${jboss.bind.address}</attribute><!-- Determine if deadlock detection is enabled -->
<attribute name="DeadlockDetection">False</attribute>
<!-- Max time (in ms) to wait for state transfer to complete.
Increase for large states -->
<attribute name="StateTransferTimeout">30000</attribute>
</mbean>
</server>so far both jboss seems fine they go up..
9:26:02,986 INFO [DefaultPartition] New cluster view for partition DefaultPartition (id: 1, delta: 1) : [127.0.0.1:1099, 127.0.0.1:1199]
09:26:02,986 INFO [DefaultPartition] I am (127.0.0.1:1099) received membershipChanged event:
09:26:02,986 INFO [DefaultPartition] Dead members: 0 ([])
09:26:02,986 INFO [DefaultPartition] New Members : 1 ([127.0.0.1:1199])
09:26:02,986 INFO [DefaultPartition] All Members : 2 ([127.0.0.1:1099, 127.0.0.1:1199])
all i wanna do is to check ehchache via jms messeging...