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...
You could use probe.sh, but you have to enable diagnostics. Check the JGroups manual for details.
I am not getting what you are saying, can you please elaborate.
Ok thank you
1 of 1 people found this helpful
Correct, 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.
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 :-)
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="188.8.131.52" multicast-port="7500"/>
Then run probe:
[rhusar@rhusar main]$ java -classpath jgroups-3.2.10.Final-redhat-2.jar
org.jgroups.tests.Probe -addr 184.108.40.206 -ttl 20 -bind_addr localhost
-- send probe on /220.127.116.11:7500
#1 (176 bytes):
view=[rhusar2/web|3] [rhusar2/web, rhusar/web]
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?
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.