The HTTP Session size in cluster is a key metric to determine how much an application can scale. In this updated tutorial we will learn how to monitor and calculate the current HTTP Session size and the number of HTTP active sessions.
Clustering WildFly
Clusters in an application server enhance scalability and availability, which are
related concepts. In order to achieve the benefits of clustering, you need to manage
the configuration of several components like the clustering transport at first, the
replication/distribution of data across cluster members and the techniques used to
balance load between nodes.
The backbone of WildFly clustering is the JGroups library,
which provides a reliable multicast system used by cluster members to find each
other and communicate.
Next comes Infinispan, which is a data grid platform that is used by the application
server to keep in sync the application data in the cluster by means of a replicated
and transactional JSR-107 compatible cache.
Recommended Tutorials available:
Getting Started
Clustering WildFly Application Server
Configuring High Availability with WildFly
Configuring WildFly as Load Balancer for a Cluster
Application Clustering
How to cluster a Web Application
EJB to EJB communication in a cluster
HTTP Session Management
How to configure HTTP Session in a cluster
How to calculate the size of the HTTP Session
How to monitor and invalidate HTTP Sessions
Mod Cluster
Configuring Ranked Load Balancing
Configuring Load Balancing Groups
JGroups
How to change multicast address of a Cluster
How to configure a Cluster to use TCPPING
Mod JK
Configuring mod_jk with WildFly
Monitoring/Dispatching commands
Dispatching commands on a WildFly cluster
Monitoring a cluster using WildFly API
How to monitor and invalidate HTTP Sessions in WildFly
This article we will learn how to monitor and invalidate HTTP Sessions in WildFly application server / JBoss EAP using the management instruments such as the Command Line Interface and the Web console. Monitoring HTTP Sessions First of all, in order to gather statistics about HTTP sessions, you need to enable statistics on undertow subsystem … Read more
WildFly custom caches configuration for Stateful Beans
This article has been updated to let you how to configure Stateful EJB Caches for your applications running on the latest version of WildFly application server.
Sticky session configuration in WildFly
This article is a walk through the configuration of Sticky sessions in Web applications which you are running on the top of WildFly application server or JBoss EAP.
How to configure WildFly and JBoss EAP to use TCPPING
This article will teach you how to use TCPPING in combination with TCP/UDP Unicast as transport and a static list of cluster members’s addresses.
How to use JDBC_PING to discover cluster nodes
This article is a quick walkthough the JDBC_PING JGroups protocol which you can use for initial discovery of cluster nodes in WildFly application server.
How to discover JBoss Cluster members
In this tutorial we will learn some techniques to discover your JBoss / WildFly cluster members using a set of available tools. We will use both tools included in WildFly distribution and standard tools like JMX. Discover cluster nodes using the CLI The simplest way to list the cluster nodes is to use the Command … Read more
JBoss Clustering a Web Application
This article discusses the required steps to cluster a Web application using WildFly application server and the older server releases (JBoss AS 5). Clustering allows us to run an applications on several parallel servers (a.k.a cluster nodes). The load is distributed across different servers, and even if any of the servers fails, the application is … Read more
Configuring WildFly as Load Balancer for a Cluster
This tutorial is about Load Balancing a cluster of WildFly servers using a WildFly front-end server configured using the load-balancer profile. Since WildFly 9, you can use an instance of the Application Server as a mod_cluster front-end for your back-end applications. This removes the need to use a native Web server like Apache (and mod_cluster … Read more
How do I change multicast address of JBoss cluster ?
There are different options to change the default multicast address depending on the version of JBoss / WildFly which you are using. Changing the multicast address in WildFly In WildFly the System Property which controls the default multicast address is jboss.default.multicast.address and defaults to 230.0.0.4 <socket-binding name=”jgroups-udp” interface=”private” port=”55200″ multicast-address=”${jboss.default.multicast.address:230.0.0.4}” multicast-port=”45688″/> Therefore, you can change … Read more