-
1. Re: Discover cluster nodes using jboss_cli or jboss web console?
nazia24 Sep 20, 2013 1:07 AM (in response to erasmomarciano)Hi,
When you bring 2 nodes in a cluster you can see on the console itself as
No of cluster members: 2
But it is not possible to see the no of members through jboss web console or cli...
-
2. Re: Discover cluster nodes using jboss_cli or jboss web console?
belaban Sep 20, 2013 2:12 AM (in response to nazia24)You could use probe.sh, but you have to enable diagnostics. Check the JGroups manual for details.
-
3. Re: Discover cluster nodes using jboss_cli or jboss web console?
nazia24 Sep 20, 2013 2:26 AM (in response to belaban)Hi,
I am not getting what you are saying, can you please elaborate.
-
4. Re: Discover cluster nodes using jboss_cli or jboss web console?
erasmomarciano Sep 23, 2013 7:33 AM (in response to erasmomarciano)Ok thank you
-
5. Re: Discover cluster nodes using jboss_cli or jboss web console?
rhusar Sep 23, 2013 7:58 AM (in response to erasmomarciano)1 of 1 people found this helpfulCorrect, it is not currently supported.
If you want to see the implementation Jira for HAL (the console) see [#HAL-98] Provide clustering management use cases - JBoss Issue Tracker where you can vote and contribute.
-
6. Re: Discover cluster nodes using jboss_cli or jboss web console?
weinanli Oct 1, 2013 11:57 AM (in response to erasmomarciano)It depends on what do you mean by 'cluster'.
1. If you mean the HCs that connected to your domain controller, you can check the servers in your server group in web management console. (Actually this is not 'clustering', it's 'domain mode').
2. If you mean the AS7 servers that get load balanced by mod_cluster, you can check the nodes in mod_clusters management console.
3. If you mean the AS7 servers that get load balanced by mod_jk, checking the 'worker.properties' in httpd configuration directory will help you to understand your cluster.
4. If you mean underlying subsystems:
- For HornetQ subsystem clustering, seems there is currently no centralised place you can check the members in your cluster (Please correct me if I'm wrong). But you can use the JGroup tools to probing some status of your cluster, because HornetQ clustering is relied on JGroup.
- For caching subsystem (Infinispan), you can also probe it will JGroup tools because it relied on JGroup also :-)
-
7. Re: Discover cluster nodes using jboss_cli or jboss web console?
rhusar Oct 1, 2013 4:12 PM (in response to weinanli)Since WildFly 8, there will also be cluster-monitor subsystem that will provide nice CLI around current cluster membership and so on. See Design for clustering subsystem [WFLY-1430]
- For caching subsystem (Infinispan), you can also probe it will JGroup tools because it relied on JGroup also :-)Re: Discover cluster nodes using jboss_cli or jboss web console?
Right, to elaborate, you can use JGroups diagnostics:
Add to your config such as:
...
<transport type="UDP" socket-binding="jgroups-udp" diagnostics-socket-binding="jgroups-diagnostics"/>
...
<socket-binding name="jgroups-diagnostics" port="0" multicast-address="230.0.0.4" multicast-port="7500"/>
...
Then run probe:
[rhusar@rhusar main]$ java -classpath jgroups-3.2.10.Final-redhat-2.jar
org.jgroups.tests.Probe -addr 230.0.0.4 -ttl 20 -bind_addr localhost
-- send probe on /230.0.0.4:7500
#1 (176 bytes):
local_addr=rhusar/web [c91c4043-1085-b242-a677-56a692b4e8ed]
cluster=web
physical_addr=127.0.0.1:55200
view=[rhusar2/web|3] [rhusar2/web, rhusar/web]
version=3.2.10.Final
[trimmed]
-
8. Re: Discover cluster nodes using jboss_cli or jboss web console?
weinanli Oct 4, 2013 1:26 AM (in response to rhusar)Cool! Thanks for the information Rado :-)
As we haven't finished the development of this part yet, is there any way that I could check the web sessions stored in Infinispan cluster right now?
-
9. Re: Discover cluster nodes using jboss_cli or jboss web console?
rhusar Oct 9, 2013 4:52 AM (in response to weinanli)I am not aware of any convenient way given that for any other application the data will be opaque as it would need the application's classloader to deserialize the actual data.
You might want to look at JMX for the cache statistics to see how many entries are in the cache, etc.