Session distribution on limited nodes and passivation
Client: Hi doctor, if 10,000 concurrent users are connected on the money transfer application, does this mean all the 10,000 sessions are replicated on all the nodes? DoctorJBoss: User sessions are replicated on one or more nodes; with the JBoss EAP, there are two replication strategies:
Full replication mode,where user sessions are replicated on all the cluster nodes; this configuration is suitable for small clusters with less than six nodes
In the distribution mode, user sessions are replicated on a limited number of nodes in the cluster (two nodes by default), but this value can be customized depending on your application requirements
To reduce memory footprint, developers can also customize session passivation processes: this includes the max active session for an application, the max idle time after which a session should be destroyed by the JBoss Application Server.