-
1. Re: Achieving multiple and different clusters under a single Domain Mode setup in AS 7
wdfink Mar 3, 2013 2:03 PM (in response to vbchin2)Use the system properties element inside the servergroup and set the variable for the jgroups address and port used in the socket configuration.
-
2. Re: Achieving multiple and different clusters under a single Domain Mode setup in AS 7
vbchin2 Mar 3, 2013 2:24 PM (in response to wdfink)Thanks Wolf-Dieter! So with your reply, are you saying that configuring the
jboss.default.multicast.address
is the only way to go in isolating clusters based on server groups ? I believe the answer is Yes but I rather have you confirm that. -
3. Re: Achieving multiple and different clusters under a single Domain Mode setup in AS 7
vbchin2 Mar 3, 2013 2:48 PM (in response to wdfink)Hi Wolf-Dieter,
Perhaps you can answer another question of mine in addition to the one above. What if the scenario is changed a little bit and we are running the same setup in a cloud based environment where the UDP multicast is NOT permitted ? Lets assume that we are using TCPGOSSIP for discovery.
Can a single GossipRouter handle group membership details for both Server-Group-1 and Server-Group-2 independently? I understand that we configure the GossipRouter per profile and if the both the server groups use the same profile they end up talking to the same GossipRouter and hence the question.
-
4. Re: Achieving multiple and different clusters under a single Domain Mode setup in AS 7
vbchin2 Mar 3, 2013 7:38 PM (in response to vbchin2)Quick Update: I changed the following things
- Default JGroups stack from UDP to TCP
- Added a GossipRouter to manage the group membership information
- Set the profile for both the server groups to : full-ha (which contained the IP and Port of the GossipRouter in jgroups subsystem
- Deployed a "distributable" web application across both the server groups
Expected Result : All the nodes of a given server group would form their own cluster
Actual Result : All the nodes under the entire domain became part of the cluster
Essentially saying that a single GossipRouter as configured for a given ha (or a variant of ha) profile, when it comes to clustering, does not distinguish nodes as belonging to seperate server-groups.
-
5. Re: Achieving multiple and different clusters under a single Domain Mode setup in AS 7
rhusar Mar 4, 2013 9:49 AM (in response to vbchin2)Vijay Bhaskar Chintalapati wrote:
Thanks Wolf-Dieter! So with your reply, are you saying that configuring the
jboss.default.multicast.address
is the only way to go in isolating clusters based on server groups ? I believe the answer is Yes but I rather have you confirm that.Yes, thats the case. The problem is that separating on logical level implies a significant overhead of sending messages to members that are not using them. This leads to correct setup from the start.
-
6. Re: Achieving multiple and different clusters under a single Domain Mode setup in AS 7
vbchin2 Mar 4, 2013 10:10 AM (in response to rhusar)Thanks much Radoslav! Could you also please suggest how in an environment where UDP multicast is NOTsupported and where TCPGOSSIP is used for discovery, we can achieve the same isolation of cluster nodes based on server-groups they belong to ?
-
7. Re: Achieving multiple and different clusters under a single Domain Mode setup in AS 7
rhusar Mar 5, 2013 3:17 PM (in response to vbchin2)Vijay Bhaskar Chintalapati wrote:
Thanks much Radoslav! Could you also please suggest how in an environment where UDP multicast is NOTsupported and where TCPGOSSIP is used for discovery, we can achieve the same isolation of cluster nodes based on server-groups they belong to ?
Hi again,
I was trying to see what a solution is. You could start 2 separate Gossip Routers and point each cluster to their respective gossip router or configure cluster name for each cluster differently.
In AS5 this can be isolated by changing the cluster name too.
Message was edited by: Radoslav Husar
-
8. Re: Achieving multiple and different clusters under a single Domain Mode setup in AS 7
vbchin2 Mar 5, 2013 1:33 PM (in response to rhusar)Not sure whether a) its me or b) whether you will agree with me when I say that, AS 7 in that sense (when it comes to clustering within a Domain Mode) is restrictive and doesn't allow the flexibility of clustering whatever nodes we feel like clustering as long as those nodes are a subset of all nodes sharing a common HA profile.
If UDP multicast is allowed one has to change the default multicast port to be able to isolate the clusters (quite honestly, this isn't a big deal)
AND WHEN
UPD multicast is NOT allowed and when one uses TCPGOSSIP for easy scalability of the cluster, they have to necessarily use two GossipRouters when one is should have been enough and quite capable of handling membership information for two groups of cluster nodes.
Can be not simply bring back the old Cluster Group name concept in AS 7 in Domain Mode as long as the nodes are a subset of all nodes sharing a common HA profile ?
Thoughts
-
9. Re: Achieving multiple and different clusters under a single Domain Mode setup in AS 7
rhusar Mar 5, 2013 3:15 PM (in response to vbchin2)Ah, sorry I forgot to update the answer.
You need to change the cluster name like this for example:
<cache-container name="web" aliases="standard-session-cache" default-cache="repl" start="EAGER"> <transport cluster="my-cluster-name" lock-timeout="60000"/> <replicated-cache name="repl" mode="ASYNC" batching="true"> <file-store/> </replicated-cache>
This is fine since the cluster name serves only for discovery and no unnecessary messages are sent since you will use TCP.
-
10. Re: Achieving multiple and different clusters under a single Domain Mode setup in AS 7
vbchin2 Mar 5, 2013 3:48 PM (in response to rhusar)Bravo!! Thanks so much Radoslav! I was able to parameterize the cluster name as cluster="${jboss.cluster.group.name}" (its my own parameter name), configure the vaule from System Properties at the server-group level and isolate the clustering.
-
11. Re: Achieving multiple and different clusters under a single Domain Mode setup in AS 7
rhusar Mar 6, 2013 5:48 AM (in response to vbchin2)Cool! Thanks for the update.