No WildFly clusters are not limited to 2 nodes
But there are some pitfalls.
Did you use infinispan for your application as a cache? I don't mean session replication.
If not did you changed the infinispan config?
What JGroups configutation do you use?
First of all thanks for taking time out to reply my question.
I noticed the following however, not exactly sure if or how they are related to the exceptions observed.
1. I shifted from using Wildfly inbuilt hornetq for messaging to an external ActiveMQ broker using the Wildfly RA. This drastically reduced any issue I had with Jgroups immediately.
2. I also noticed I had to start up my hosts in sequence i.e I start up all the hosts on a particular node before starting up other hosts within a different node for the same server group. It also seems more stable when I start up with the node which was first registered on the Domain.
What do you think?
Thanks a lot!