-
1. Re: Clustering without mod_cluster
ctomc Feb 3, 2015 2:13 PM (in response to xmillerx)Mod cluster is completely optional. you can use it or not.
it is completely up to you, if you have existing clustering solution you could just use that.
-
2. Re: Clustering without mod_cluster
rhusar Feb 4, 2015 9:12 AM (in response to ctomc)Correct, mod_cluster is optional as it is only the load-balancer integration piece. You can completely remove the extension and subsystem.
The problem you are running into seems to be that your current load-balancer is not using sticky sessions, please make sure to enable it in your balancer.
-
3. Re: Clustering without mod_cluster
xmillerx Feb 4, 2015 11:16 AM (in response to rhusar)The IT department is resisting sticky sessions as they are pushing for session replication.
It seems that if sticky sessions were in play, it wouldn't be necessary to cluster JBoss at all since a user session would be completely handled by one node...unless I'm missing something fundamental here.
-
4. Re: Clustering without mod_cluster
ctomc Feb 4, 2015 11:35 AM (in response to xmillerx)Nah, sticky sessions mean that LB would direct sessions to the node that created them unless that node goes down
in this case any other node in cluster would serve it.
Thing is that session replication takes some time and if you configure it that you have SYNC session replication against all nodes in cluster.
every request would take extra time to complete, as it would wait until session state is replicated before returning response to LB.
If you go with sticky sessions you can have async replication and nodes will only take over sessions if original node fails.
in short it will work in both cases, but using sticky sessions will be much faster
-
5. Re: Clustering without mod_cluster
antonyaugustus Apr 12, 2019 5:47 PM (in response to ctomc)Hi,
I am trying to use hardware load balancer with out of the box wildfly16 with full-ha profile. To get session replication working, I have keep sticky session on my load balancer. Is there any other configuration I am missing. For now the session data is not getting persisted.
Thanks.
-
6. Re: Clustering without mod_cluster
rhusar Apr 23, 2019 7:50 PM (in response to antonyaugustus)What are your expectations for session being persisted?