{"id":37612,"date":"2024-05-31T11:15:16","date_gmt":"2024-05-31T11:15:16","guid":{"rendered":"https:\/\/accuweb.cloud\/blog\/?p=37612"},"modified":"2026-02-17T05:41:10","modified_gmt":"2026-02-17T05:41:10","slug":"glassfish-payara-auto-clustering","status":"publish","type":"post","link":"https:\/\/accuweb.cloud\/blog\/glassfish-payara-auto-clustering\/","title":{"rendered":"AccuwebCloud :: GlassFish &#038; Payara Auto-Clustering"},"content":{"rendered":"<h1 class=\"ac-h1\">GlassFish &amp; Payara Auto-Clustering: Running Jakarta EE Applications in the Cloud<\/h1>\n<p><a href=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/GlassFish-Payara-Auto-Clustering.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"acc-blog-image aligncenter wp-image-41924 size-full\" title=\"GlassFish &amp; Payara Auto-Clustering: Running Jakarta EE Applications in the Cloud\" src=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/GlassFish-Payara-Auto-Clustering.png\" alt=\"GlassFish &amp; Payara Auto-Clustering: Running Jakarta EE Applications in the Cloud\" width=\"1280\" height=\"720\" srcset=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/GlassFish-Payara-Auto-Clustering.png 1280w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/GlassFish-Payara-Auto-Clustering-300x169.png 300w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/GlassFish-Payara-Auto-Clustering-1024x576.png 1024w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/GlassFish-Payara-Auto-Clustering-768x432.png 768w\" sizes=\"(max-width: 1280px) 100vw, 1280px\" \/><\/a><\/p>\n<div class=\"tips_box-cloud gradient-cloud\">\n<h3 class=\"cb-h3\">TL;DR<\/h3>\n<ul class=\"cb-ul\">\n<li><strong>Auto clustering<\/strong> in GlassFish and Payara allows multiple server instances to work together, sharing state and distributing workload.<\/li>\n<li>Clusters improve <strong>availability and failover<\/strong>; if one node fails, another continues handling requests.<\/li>\n<li>With Payara\u2019s auto clustering, session replication and load balancing occur <strong>without manual configuration<\/strong>, simplifying distributed app deployment.<\/li>\n<li>Clustering enables <strong>horizontal scalability<\/strong>, letting Java EE applications handle increased traffic and large workloads.<\/li>\n<li>Both servers use <strong>cluster communication protocols<\/strong> to keep session data synchronized across nodes for consistent user experience.<\/li>\n<li>Ideal for enterprise apps needing <strong>high uptime, resilience, and distributed processing<\/strong> across multiple JVMs.<\/li>\n<\/ul>\n<\/div>\n<p>Making sure that your service runs smoothly around the clock has been a hot topic in <a class=\"ac-link-text\" href=\"https:\/\/accuweb.cloud\/compute\/cloud-vps\" target=\"_blank\" rel=\"noopener\">cloud hosting<\/a> lately. One common solution that keeps popping up is setting up a clustered infrastructure for your project.<\/p>\n<p>To lend a hand to our customers grappling with this complex task and to free up their time for other project-related tasks, we&#8217;ve developed a special high-availability solution. This solution is tailored to simplify Jakarta EE application hosting, specifically focusing on embedded Auto-Clustering for GlassFish and Payara application servers.<\/p>\n<p>This solution&#8217;s unique feature is its ability to automatically link several application server instances when the topology of the application changes. This essentially implements the widely used clustering configuration.<\/p>\n<p>In the article below, we delve into the workings of GlassFish and Payara auto-clustering, along with the specifics of infrastructure topology and how you can swiftly set up development and production environments within AccuWeb.Cloud <a class=\"ac-link-text\" href=\"https:\/\/accuweb.cloud\/applications\" target=\"_blank\" rel=\"noopener\">PaaS.<\/a><\/p>\n<div class=\"accu-blog-space\"><\/div>\n<h2 id=\"How-the-Auto-Clustering-for-GlassFish-and-Payara-Works\" class=\"ac-h2\">How the Auto-Clustering for GlassFish and Payara Works<\/h2>\n<p>A <strong>&#8220;clusterized solution&#8221;<\/strong> boils down to a bunch of linked-up instances all running the same stuff and handling the same data. So, you&#8217;ve got servers that are scaled out horizontally and share user sessions.<\/p>\n<p>Now, with AccuWeb.Cloud 8.3.2, we&#8217;ve added this new Auto-Clustering feature. It lets you set up clusters for GlassFish and Payara instances right from the topology wizard.<\/p>\n<div class=\"accu-blog-space\"><\/div>\n<p><a href=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-01.jpg\"><img decoding=\"async\" class=\"acc-blog-image aligncenter wp-image-37620 size-full\" title=\"Auto Clustering\" src=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-01.jpg\" alt=\"Auto Clustering\" width=\"874\" height=\"544\" srcset=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-01.jpg 874w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-01-300x187.jpg 300w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-01-768x478.jpg 768w\" sizes=\"(max-width: 874px) 100vw, 874px\" \/><\/a><\/p>\n<div class=\"accu-blog-space\"><\/div>\n<p>Select either the GlassFish or Payara <a class=\"ac-link-text\" href=\"https:\/\/accuweb.cloud\/applications\" target=\"_blank\" rel=\"noopener\">application<\/a> server from the options available on the Java tab of the wizard. After that, find and activate the Auto-Clustering switcher in the central section. Adjust the rest of the settings according to your requirements, including horizontal scaling, to ensure a dependable solution right from the beginning.<\/p>\n<div class=\"main-tooltip-only-btn\">\n<p><a class=\"tooltip-link\" href=\"https:\/\/accuweb.cloud\/compute\/cloud-vps\" target=\"_blank\" rel=\"noopener\"><button class=\"tooltip-btn\">Best Cloud VPS Hosting <i class=\"fa-solid fa-arrow-right-long\"><\/i><\/button><\/a><\/p>\n<p>&nbsp;<\/p>\n<\/div>\n<p><a href=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/glasssih-blog-img-05.jpg\"><img decoding=\"async\" class=\"acc-blog-image aligncenter wp-image-37617 size-full\" title=\"Load Balancing\" src=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/glasssih-blog-img-05.jpg\" alt=\"Load Balancing\" width=\"800\" height=\"1271\" srcset=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/glasssih-blog-img-05.jpg 800w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/glasssih-blog-img-05-189x300.jpg 189w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/glasssih-blog-img-05-645x1024.jpg 645w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/glasssih-blog-img-05-768x1220.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<div class=\"accu-blog-space\"><\/div>\n<div class=\"blog-codebg\"><strong>Tip:<\/strong> You can also find the Auto-Clustering feature in a variety of other software templates like MySQL, MariaDB, PostgreSQL, Tomcat\/TomEE, WildFly, Shared Storage, MongoDB, and Couchbase.<\/div>\n<div class=\"accu-blog-space\"><\/div>\n<p>Depending on what you&#8217;re aiming for with your setup, you might want to skip using Auto-Clustering, especially during development. This way, you&#8217;ll just have regular standalone servers without setting up a cluster.<\/p>\n<p>But when it comes to putting your system into production, clustering becomes pretty much essential. It ensures your application stays available and runs smoothly for your users. AccuWeb.Cloud&#8217;s Auto-Clustering feature makes it super easy to set up a reliable structure for your services without having to do much manual configuration. Here&#8217;s what happens when you use it:<\/p>\n<p>If you&#8217;ve got two or more GlassFish (Payara) instances, the system adds a load balancer (LB) to your environment. This LB manages incoming requests and spreads them out among your server instances.<\/p>\n<p>An additional Domain Administration Server (DAS) node gets automatically included. This node is like the control center for your cluster, managing all the other nodes and their interactions via SSH. Here are some key points about how it works:<\/p>\n<ul class=\"ac-ul\">\n<li>The admin server is connected to all the worker nodes using a special hostname, making it easy for them to communicate.<\/li>\n<li>To make sure everything connects properly, the system creates an SSH keypair for the DAS node and shares it with all the other instances in the cluster.<\/li>\n<\/ul>\n<div class=\"accu-blog-space\"><\/div>\n<p><a href=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-deploy-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"acc-blog-image aligncenter wp-image-37631 size-full\" title=\"GlassFish Payara Cluster Topology\" src=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-deploy-1.png\" alt=\"GlassFish Payara Cluster Topology\" width=\"1200\" height=\"516\" srcset=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-deploy-1.png 1200w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-deploy-1-300x129.png 300w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-deploy-1-1024x440.png 1024w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-deploy-1-768x330.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/a><\/p>\n<div class=\"accu-blog-space\"><\/div>\n<h2 id=\"Session-Replication-Implementation\" class=\"ac-h2\">Session Replication Implementation<\/h2>\n<p>To guarantee high availability for your GlassFish or Payara cluster, the AccuWeb.Cloud PaaS sets up session replication across worker nodes automatically. This ensures that all user session data generated during processing is distributed across every application server instance, regardless of which node handled the request.<\/p>\n<p>Additionally, the <a class=\"ac-link-text\" href=\"https:\/\/accuweb.cloud\/resource\/articles\/load-balancing-introduction\/\" target=\"_blank\" rel=\"noopener\">load balancer&#8217;s<\/a> automatic sticky sessions feature enhances reliability and improves failover capabilities within your GlassFish or Payara cluster. The exact replication mechanism varies slightly depending on the stack used, so let&#8217;s delve into the details of each approach.<\/p>\n<div class=\"accu-blog-space\"><\/div>\n<div style=\"display: flex; justify-content: center;\">\n<div class=\"save-card1\"><a class=\"save-btn1\" href=\"https:\/\/accuweb.cloud\/register\">Register Now \u2192<\/a><\/div>\n<\/div>\n<div class=\"accu-blog-space\"><\/div>\n<h2 id=\"GlassFish-Session-Replication-with-GMS\" class=\"ac-h2\">GlassFish Session Replication with GMS<\/h2>\n<p>In a GlassFish cluster, session replication is managed by the Group Management Service (GMS), an integral part of the application server. This service provides essential features like failover protection, and in-memory replication, and supports transaction and timer services for cluster instances.<\/p>\n<div class=\"accu-blog-space\"><\/div>\n<p><a href=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-06.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"acc-blog-image aligncenter wp-image-37628 size-full\" title=\"GMS\" src=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-06.jpg\" alt=\"GMS\" width=\"1280\" height=\"606\" srcset=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-06.jpg 1280w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-06-300x142.jpg 300w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-06-1024x485.jpg 1024w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-06-768x364.jpg 768w\" sizes=\"(max-width: 1280px) 100vw, 1280px\" \/><\/a><\/p>\n<div class=\"accu-blog-space\"><\/div>\n<p>GMS employs TCP, without using multicast, to identify cluster instances. When a new node joins a GlassFish cluster, the system automatically rechecks all active workers and the DAS node. This auto-discovery process is facilitated by setting the GMS_DISCOVERY_URI_LIST property to the appropriate value.<\/p>\n<div class=\"accu-blog-space\"><\/div>\n<p><a href=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-012.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"acc-blog-image aligncenter wp-image-37623 size-full\" title=\"GMS discovery URI LIST\" src=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-012.jpg\" alt=\"GMS discovery URI LIST\" width=\"1280\" height=\"606\" srcset=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-012.jpg 1280w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-012-300x142.jpg 300w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-012-1024x485.jpg 1024w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-012-768x364.jpg 768w\" sizes=\"(max-width: 1280px) 100vw, 1280px\" \/><\/a><\/p>\n<div class=\"accu-blog-space\"><\/div>\n<h2 id=\"Payara-Session-Replication-with-Hazelcast\" class=\"ac-h2\">Payara Session Replication with Hazelcast<\/h2>\n<p>Session replication within the Payara cluster utilizes Hazelcast, which offers the added benefit of being JCache compliant, ensuring persistence for embedded Web and EJB sessions. This in-memory data grid is automatically enabled on all Payara instances, allowing them to discover cluster members via TCP without requiring multicast.<\/p>\n<p>To enable session replication, you need to activate web container availability first. This ensures that managed web container properties, like sessions, can be shared across multiple instances with the same configuration.<\/p>\n<p>In Payara Server 4, enabling Hazelcast and configuring accessibility had to be done manually. However, in Payara 5, this is configured by default. If you have modified any settings, ensure that the accessibility service is enabled and the save type is set to &#8220;hazelcast&#8221; on the web container&#8217;s accessibility page.<\/p>\n<div class=\"accu-blog-space\"><\/div>\n<p><a href=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-03.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"acc-blog-image aligncenter wp-image-37630 size-full\" title=\"Persistence Type\" src=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-03.jpg\" alt=\"Persistence Type\" width=\"1280\" height=\"606\" srcset=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-03.jpg 1280w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-03-300x142.jpg 300w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-03-1024x485.jpg 1024w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-03-768x364.jpg 768w\" sizes=\"(max-width: 1280px) 100vw, 1280px\" \/><\/a><\/p>\n<div class=\"accu-blog-space\"><\/div>\n<p>To configure Hazelcast settings, navigate to the Administration Console and consult the Domain Data Grid configuration page. The Domain Data Grid feature in Payara leverages the Hazelcast library, offering essential functionalities such as clustering, caching, a unified CDI cluster object, and <a class=\"ac-link-text\" href=\"https:\/\/accuweb.cloud\/storage\" target=\"_blank\" rel=\"noopener\">data storage<\/a> monitoring for deployment groups.<\/p>\n<div class=\"accu-blog-space\"><\/div>\n<p><a href=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-04.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"acc-blog-image aligncenter wp-image-37629 size-full\" title=\"Grid Configuration\" src=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-04.jpg\" alt=\"Grid Configuration\" width=\"1280\" height=\"606\" srcset=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-04.jpg 1280w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-04-300x142.jpg 300w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-04-1024x485.jpg 1024w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-04-768x364.jpg 768w\" sizes=\"(max-width: 1280px) 100vw, 1280px\" \/><\/a><\/p>\n<div class=\"main-tooltip-only-btn\">\n<p><a class=\"tooltip-link\" href=\"https:\/\/accuweb.cloud\/compute\/cloud-vps\" target=\"_blank\" rel=\"noopener\"><button class=\"tooltip-btn\">Best Cloud VPS Hosting <i class=\"fa-solid fa-arrow-right-long\"><\/i><\/button><\/a><\/p>\n<p>&nbsp;<\/p>\n<\/div>\n<h2 id=\"Deploy-Example-Application-for-HA-Testing\" class=\"ac-h2\">Deploy Example Application for HA Testing<\/h2>\n<p>Let&#8217;s examine the high availability of an automatically composed cluster using a scaled GlassFish server as an example. To verify its fault tolerance, we&#8217;ll deploy a dedicated testing application that allows us to add custom session data and view detailed information about which server is handling the session. By stopping specific cluster instances, we can confirm that ongoing user sessions will continue to be processed even if the associated server fails. Now let&#8217;s watch it in action.<\/p>\n<p><strong>Step 1.<\/strong> To access the start page of the application server, click <strong>\u201cOpen in browser\u201d<\/strong> next to your environment.<\/p>\n<div class=\"accu-blog-space\"><\/div>\n<p><a href=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-045.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"acc-blog-image aligncenter wp-image-37622 size-full\" title=\"Server open in browser\" src=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-045.jpg\" alt=\"Server open in browser\" width=\"1024\" height=\"326\" srcset=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-045.jpg 1024w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-045-300x96.jpg 300w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-045-768x245.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<div class=\"accu-blog-space\"><\/div>\n<p>On the opened page, click on <strong>Go to the Administration Console<\/strong>, then log in using the credentials that were emailed to you when the environment was created.<\/p>\n<p><strong>Step 2.<\/strong> Go to the <strong>Applications<\/strong> section and upload the clusterjsp.ear file to the <strong>Packaged File to Be Uploaded to the Server location.<\/strong><\/p>\n<div class=\"accu-blog-space\"><\/div>\n<p><a href=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-06.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"acc-blog-image aligncenter wp-image-37628 size-full\" title=\"Upload clusterjsp.ear file\" src=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-06.jpg\" alt=\"Upload clusterjsp.ear file\" width=\"1280\" height=\"606\" srcset=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-06.jpg 1280w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-06-300x142.jpg 300w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-06-1024x485.jpg 1024w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-06-768x364.jpg 768w\" sizes=\"(max-width: 1280px) 100vw, 1280px\" \/><\/a><\/p>\n<div class=\"accu-blog-space\"><\/div>\n<p><strong>Step 3.<\/strong>\u00a0 Ensure that Availability is enabled, set cluster1 as the application target, and then click OK to continue.<\/p>\n<div class=\"accu-blog-space\"><\/div>\n<p><a href=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-074.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"acc-blog-image aligncenter wp-image-37621 size-full\" title=\"Set Application target\" src=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-074.jpg\" alt=\"Set Application target\" width=\"998\" height=\"350\" srcset=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-074.jpg 998w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-074-300x105.jpg 300w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-074-768x269.jpg 768w\" sizes=\"(max-width: 998px) 100vw, 998px\" \/><\/a><\/p>\n<div class=\"accu-blog-space\"><\/div>\n<p><strong>Step 4 . <\/strong>Next, go ahead and open up your web browser and add \/<b> <\/b>\u00a0to the end of the URL Feel free to choose a unique Name and Value for your session attribute, then simply click on <strong>Add Session Data<\/strong> to save it.<\/p>\n<div class=\"accu-blog-space\"><\/div>\n<p><a href=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-08.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"acc-blog-image aligncenter wp-image-37627 size-full\" title=\"Add clusterjsp to the browser\" src=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-08.jpg\" alt=\"Add clusterjsp to the browser\" width=\"354\" height=\"283\" srcset=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-08.jpg 354w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-08-300x240.jpg 300w\" sizes=\"(max-width: 354px) 100vw, 354px\" \/><\/a><\/p>\n<div class=\"accu-blog-space\"><\/div>\n<div style=\"display: flex; justify-content: center;\">\n<div class=\"save-card1\"><a class=\"save-btn1\" href=\"https:\/\/accuweb.cloud\/register\">Register Here \u2192<\/a><\/div>\n<\/div>\n<div class=\"accu-blog-space\"><\/div>\n<p><strong>Step 5.<\/strong> Go back to the admin panel and find the <strong>Clusters<\/strong> section. From there, click on <strong>cluster1<\/strong> and then go to the Instances tab. You&#8217;ll see a list of instances, find the one your session is on (look for its hostname circled in the image) and select it. Then, choose the option to <strong>Stop<\/strong> it.<\/p>\n<div class=\"accu-blog-space\"><\/div>\n<p><a href=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-09.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"acc-blog-image aligncenter wp-image-37626 size-full\" title=\"Stop instance\" src=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-09.jpg\" alt=\"Stop instance\" width=\"674\" height=\"274\" srcset=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-09.jpg 674w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-09-300x122.jpg 300w\" sizes=\"(max-width: 674px) 100vw, 674px\" \/><\/a><\/p>\n<div class=\"accu-blog-space\"><\/div>\n<p><strong>Step 6.<\/strong> Go back to the application and click the button to <strong>Reload the page.<\/strong><\/p>\n<div class=\"accu-blog-space\"><\/div>\n<p><a href=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-10.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"acc-blog-image aligncenter wp-image-37625 size-full\" title=\"Cluster sample\" src=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-10.jpg\" alt=\"Cluster sample\" width=\"353\" height=\"352\" srcset=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-10.jpg 353w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-10-300x300.jpg 300w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-10-150x150.jpg 150w\" sizes=\"(max-width: 353px) 100vw, 353px\" \/><\/a><\/p>\n<div class=\"accu-blog-space\"><\/div>\n<p>Despite the session being managed by a different instance, our custom attribute is still being displayed, as you can observe.<\/p>\n<p>You can find all replication settings in the server admin panel under <strong>Configurations &gt; cluster1-config &gt; Availability Service.<\/strong> By default, the following replication modes are enabled:<\/p>\n<ul class=\"ac-ul\">\n<li>Web Container Availability<\/li>\n<li>EJB Container Availability<\/li>\n<\/ul>\n<div class=\"accu-blog-space\"><\/div>\n<p><a href=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-11.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"acc-blog-image aligncenter wp-image-37624 size-full\" title=\"Enabled Replication\" src=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-11.jpg\" alt=\"Enabled Replication\" width=\"1527\" height=\"787\" srcset=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-11.jpg 1527w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-11-300x155.jpg 300w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-11-1024x528.jpg 1024w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-11-768x396.jpg 768w\" sizes=\"(max-width: 1527px) 100vw, 1527px\" \/><\/a><\/p>\n<div class=\"accu-blog-space\"><\/div>\n<h2 id=\"Cloning-Cluster-for-AB-Testing\" class=\"ac-h2\">Cloning Cluster for A\/B Testing<\/h2>\n<p>When rolling out a new version of an application or making crucial updates, it&#8217;s important to evaluate how these changes might impact the service&#8217;s performance and user experience. AccuWeb.Cloud PaaS offers a seamless way to conduct this testing through its <a class=\"ac-link-text\" href=\"https:\/\/accuweb.cloud\/resource\/articles\/clone-environment-and-use-cases\/\" target=\"_blank\" rel=\"noopener\">Clone Environment<\/a> feature, enabling you to do so without any service interruptions and without your customers noticing.<\/p>\n<div class=\"accu-blog-space\"><\/div>\n<div class=\"accu-blog-space\"><\/div>\n<p><a href=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-12.png\"><img loading=\"lazy\" decoding=\"async\" class=\"acc-blog-image aligncenter wp-image-37634 size-full\" title=\"Clone Environment\" src=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-12.png\" alt=\"Clone Environment\" width=\"1122\" height=\"235\" srcset=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-12.png 1122w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-12-300x63.png 300w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-12-1024x214.png 1024w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-12-768x161.png 768w\" sizes=\"(max-width: 1122px) 100vw, 1122px\" \/><\/a><\/p>\n<div class=\"main-tooltip-only-btn\">\n<p><a class=\"tooltip-link\" href=\"https:\/\/accuweb.cloud\/pricing\" target=\"_blank\" rel=\"noopener\"><button class=\"tooltip-btn\">Check Our Pricing <i class=\"fa-solid fa-arrow-right-long\"><\/i><\/button><\/a><\/p>\n<p>&nbsp;<\/p>\n<\/div>\n<p>Consequently, you&#8217;ll end up with a fully prepared cluster copy, complete with all necessary adjustments. Specifically, this involves a cloned DAS node functioning alongside the corresponding cloned workers, which are pre-configured in the admin panel. Additionally, all applications from the original setup are deployed in the cloned environment. Your final task will be to review your application&#8217;s code and custom server configurations for any hardcoded IP addresses or domains and make any necessary corrections.<\/p>\n<div class=\"accu-blog-space\"><\/div>\n<p><a href=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-13.png\"><img loading=\"lazy\" decoding=\"async\" class=\"acc-blog-image aligncenter wp-image-37633 size-full\" title=\"Test Environment without live\" src=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-13.png\" alt=\"Test Environment without live\" width=\"1102\" height=\"234\" srcset=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-13.png 1102w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-13-300x64.png 300w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-13-1024x217.png 1024w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/Auto-Clustering-13-768x163.png 768w\" sizes=\"(max-width: 1102px) 100vw, 1102px\" \/><\/a><\/p>\n<div class=\"accu-blog-space\"><\/div>\n<p>By doing this, you&#8217;ll be able to make adjustments to your test environment without messing with the live version.<\/p>\n<p>You can then assess the productivity and effectiveness of the updated application version by comparing it to the original through A\/B testing. At <a class=\"ac-link-text\" href=\"https:\/\/accuweb.cloud\/\" target=\"_blank\" rel=\"noopener\">AccuWeb.Cloud<\/a> PaaS, is achievable using the Traffic Distributor add-on.<\/p>\n<div class=\"accu-blog-space\"><\/div>\n<p><a href=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/glasssih-blog-img-06.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"acc-blog-image aligncenter wp-image-37616 size-medium\" title=\"Traffic Distributor\" src=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/glasssih-blog-img-06-222x300.jpg\" alt=\"Traffic Distributor\" width=\"222\" height=\"300\" srcset=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/glasssih-blog-img-06-222x300.jpg 222w, https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/glasssih-blog-img-06.jpg 500w\" sizes=\"(max-width: 222px) 100vw, 222px\" \/><\/a><\/p>\n<div class=\"accu-blog-space\"><\/div>\n<p>When using Sticky Sessions in a dual-environment setup, requests are intelligently routed based on the specified backend weights. For detailed instructions on configuring this in TD, please refer to the A\/B Testing guidelines.<\/p>\n<h3 id=\"Few-Useful-Tips-for-GlassFish-Payara-Clustering\" class=\"ac-h3\">A Few Useful Tips for GlassFish &amp; Payara Clustering<\/h3>\n<p>Once you\u2019ve set up your GlassFish or Payara cluster and confirmed it\u2019s working correctly, consider the following tips to maximize its efficiency within AccuWeb.Cloud:<\/p>\n<h4 class=\"ac-h4\">Optimize Resource Usage<\/h4>\n<p>Configure auto-scaling triggers in your environment settings to automatically add or remove nodes based on the incoming load. This ensures efficient resource consumption.<\/p>\n<h4 class=\"ac-h4\">Database Connectivity<\/h4>\n<p>To connect to any <a class=\"ac-link-text\" href=\"https:\/\/accuweb.cloud\/database\" target=\"_blank\" rel=\"noopener\">database<\/a> software stack, ensure the necessary libraries are integrated into the Administration Server. Most popular libraries are included by default on new GlassFish\/Payara nodes. For legacy instances, verify that the \/opt\/glassfish\/glassfish\/domains\/domain1\/lib DAS directory contains the required files. If not, upload them manually to this location.<\/p>\n<p>We hope these details help you see the benefits of using a GlassFish &amp; Payara cluster. Try creating your cluster on an AccuWeb.Cloud Platform with a free trial period.<\/p>\n<div class=\"accu-top-cta-space\"><\/div>\n<div style=\"display: flex; justify-content: center;\">\n<div class=\"save-card1\"><a class=\"save-btn1\" href=\"https:\/\/accuweb.cloud\/register\">Start Registration \u2192<\/a><\/div>\n<\/div>\n<div class=\"accu-bottom-cta-space\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>GlassFish &amp; Payara Auto-Clustering: Running Jakarta EE Applications in the Cloud TL;DR Auto clustering in GlassFish and Payara allows multiple server instances to work together, sharing state and distributing workload. Clusters improve availability and failover; if one node fails, another continues handling requests. With Payara\u2019s auto clustering, session replication and load balancing occur without manual [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":41924,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"no","_lmt_disable":"no","footnotes":""},"categories":[406],"tags":[266,282,283],"class_list":["post-37612","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-accuweb-cloud-hosting","tag-glassfish-auto-clustering","tag-payara-auto-clustering"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.10 (Yoast SEO v26.4) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>GlassFish &amp; Payara Auto Clustering Explained<\/title>\n<meta name=\"description\" content=\"Learn how GlassFish &amp; Payara auto clustering improve scalability, availability, &amp; failover for Java EE applications with built-in session replication\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/accuweb.cloud\/blog\/glassfish-payara-auto-clustering\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AccuwebCloud :: GlassFish &amp; Payara Auto-Clustering\" \/>\n<meta property=\"og:description\" content=\"Learn how GlassFish &amp; Payara auto clustering improve scalability, availability, &amp; failover for Java EE applications with built-in session replication\" \/>\n<meta property=\"og:url\" content=\"https:\/\/accuweb.cloud\/blog\/glassfish-payara-auto-clustering\/\" \/>\n<meta property=\"og:site_name\" content=\"AccuWeb.Cloud\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/accuwebhosting\" \/>\n<meta property=\"article:published_time\" content=\"2024-05-31T11:15:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-17T05:41:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/GlassFish-Payara-Auto-Clustering.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Jilesh Patadiya\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@accuwebhosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jilesh Patadiya\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"12 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/accuweb.cloud\/blog\/glassfish-payara-auto-clustering\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/accuweb.cloud\/blog\/glassfish-payara-auto-clustering\/\"},\"author\":{\"name\":\"Jilesh Patadiya\",\"@id\":\"https:\/\/accuweb.cloud\/blog\/#\/schema\/person\/76a9ac67b9c767ef39dbe3c4e9427756\"},\"headline\":\"AccuwebCloud :: GlassFish &#038; Payara Auto-Clustering\",\"datePublished\":\"2024-05-31T11:15:16+00:00\",\"dateModified\":\"2026-02-17T05:41:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/accuweb.cloud\/blog\/glassfish-payara-auto-clustering\/\"},\"wordCount\":1723,\"publisher\":{\"@id\":\"https:\/\/accuweb.cloud\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/accuweb.cloud\/blog\/glassfish-payara-auto-clustering\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/GlassFish-Payara-Auto-Clustering.png\",\"keywords\":[\"AccuWeb.Cloud Hosting\",\"GlassFish Auto-Clustering\",\"Payara Auto-Clustering\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/accuweb.cloud\/blog\/glassfish-payara-auto-clustering\/\",\"url\":\"https:\/\/accuweb.cloud\/blog\/glassfish-payara-auto-clustering\/\",\"name\":\"GlassFish & Payara Auto Clustering Explained\",\"isPartOf\":{\"@id\":\"https:\/\/accuweb.cloud\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/accuweb.cloud\/blog\/glassfish-payara-auto-clustering\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/accuweb.cloud\/blog\/glassfish-payara-auto-clustering\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/GlassFish-Payara-Auto-Clustering.png\",\"datePublished\":\"2024-05-31T11:15:16+00:00\",\"dateModified\":\"2026-02-17T05:41:10+00:00\",\"description\":\"Learn how GlassFish & Payara auto clustering improve scalability, availability, & failover for Java EE applications with built-in session replication\",\"breadcrumb\":{\"@id\":\"https:\/\/accuweb.cloud\/blog\/glassfish-payara-auto-clustering\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/accuweb.cloud\/blog\/glassfish-payara-auto-clustering\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accuweb.cloud\/blog\/glassfish-payara-auto-clustering\/#primaryimage\",\"url\":\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/GlassFish-Payara-Auto-Clustering.png\",\"contentUrl\":\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/GlassFish-Payara-Auto-Clustering.png\",\"width\":1280,\"height\":720,\"caption\":\"GlassFish & Payara Auto-Clustering: Running Jakarta EE Applications in the Cloud\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/accuweb.cloud\/blog\/glassfish-payara-auto-clustering\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/accuweb.cloud\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AccuwebCloud :: GlassFish &#038; Payara Auto-Clustering\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/accuweb.cloud\/blog\/#website\",\"url\":\"https:\/\/accuweb.cloud\/blog\/\",\"name\":\"AccuWeb.Cloud\",\"description\":\"Cutting Edge Cloud Computing\",\"publisher\":{\"@id\":\"https:\/\/accuweb.cloud\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/accuweb.cloud\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/accuweb.cloud\/blog\/#organization\",\"name\":\"AccuWeb.Cloud\",\"url\":\"https:\/\/accuweb.cloud\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accuweb.cloud\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg\",\"contentUrl\":\"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg\",\"width\":156,\"height\":87,\"caption\":\"AccuWeb.Cloud\"},\"image\":{\"@id\":\"https:\/\/accuweb.cloud\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/accuweb.cloud\/blog\/#\/schema\/person\/76a9ac67b9c767ef39dbe3c4e9427756\",\"name\":\"Jilesh Patadiya\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accuweb.cloud\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/94d41936196a27a133819bab474a9b7ab76c4034cad001b4499db6bc5e47a2af?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/94d41936196a27a133819bab474a9b7ab76c4034cad001b4499db6bc5e47a2af?s=96&d=mm&r=g\",\"caption\":\"Jilesh Patadiya\"},\"description\":\"Jilesh Patadiya, the visionary Founder and Chief Technology Officer (CTO) behind AccuWeb.Cloud. Founder &amp; CTO at AccuWebHosting.com. He shares his web hosting insights on the AccuWeb.Cloud blog. He mostly writes on the latest web hosting trends, WordPress, storage technologies, and Windows and Linux hosting platforms.\",\"sameAs\":[\"https:\/\/accuweb.cloud\/blog\",\"https:\/\/www.facebook.com\/accuwebhosting\",\"https:\/\/www.instagram.com\/accuwebhosting\/\",\"https:\/\/www.linkedin.com\/company\/accuwebhosting\/\",\"https:\/\/x.com\/accuwebhosting\",\"https:\/\/www.youtube.com\/c\/Accuwebhosting\"],\"url\":\"https:\/\/accuweb.cloud\/blog\/author\/accuwebadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"GlassFish & Payara Auto Clustering Explained","description":"Learn how GlassFish & Payara auto clustering improve scalability, availability, & failover for Java EE applications with built-in session replication","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/accuweb.cloud\/blog\/glassfish-payara-auto-clustering\/","og_locale":"en_US","og_type":"article","og_title":"AccuwebCloud :: GlassFish & Payara Auto-Clustering","og_description":"Learn how GlassFish & Payara auto clustering improve scalability, availability, & failover for Java EE applications with built-in session replication","og_url":"https:\/\/accuweb.cloud\/blog\/glassfish-payara-auto-clustering\/","og_site_name":"AccuWeb.Cloud","article_author":"https:\/\/www.facebook.com\/accuwebhosting","article_published_time":"2024-05-31T11:15:16+00:00","article_modified_time":"2026-02-17T05:41:10+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/GlassFish-Payara-Auto-Clustering.png","type":"image\/png"}],"author":"Jilesh Patadiya","twitter_card":"summary_large_image","twitter_creator":"@accuwebhosting","twitter_misc":{"Written by":"Jilesh Patadiya","Est. reading time":"12 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/accuweb.cloud\/blog\/glassfish-payara-auto-clustering\/#article","isPartOf":{"@id":"https:\/\/accuweb.cloud\/blog\/glassfish-payara-auto-clustering\/"},"author":{"name":"Jilesh Patadiya","@id":"https:\/\/accuweb.cloud\/blog\/#\/schema\/person\/76a9ac67b9c767ef39dbe3c4e9427756"},"headline":"AccuwebCloud :: GlassFish &#038; Payara Auto-Clustering","datePublished":"2024-05-31T11:15:16+00:00","dateModified":"2026-02-17T05:41:10+00:00","mainEntityOfPage":{"@id":"https:\/\/accuweb.cloud\/blog\/glassfish-payara-auto-clustering\/"},"wordCount":1723,"publisher":{"@id":"https:\/\/accuweb.cloud\/blog\/#organization"},"image":{"@id":"https:\/\/accuweb.cloud\/blog\/glassfish-payara-auto-clustering\/#primaryimage"},"thumbnailUrl":"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/GlassFish-Payara-Auto-Clustering.png","keywords":["AccuWeb.Cloud Hosting","GlassFish Auto-Clustering","Payara Auto-Clustering"],"articleSection":["Tutorials"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/accuweb.cloud\/blog\/glassfish-payara-auto-clustering\/","url":"https:\/\/accuweb.cloud\/blog\/glassfish-payara-auto-clustering\/","name":"GlassFish & Payara Auto Clustering Explained","isPartOf":{"@id":"https:\/\/accuweb.cloud\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/accuweb.cloud\/blog\/glassfish-payara-auto-clustering\/#primaryimage"},"image":{"@id":"https:\/\/accuweb.cloud\/blog\/glassfish-payara-auto-clustering\/#primaryimage"},"thumbnailUrl":"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/GlassFish-Payara-Auto-Clustering.png","datePublished":"2024-05-31T11:15:16+00:00","dateModified":"2026-02-17T05:41:10+00:00","description":"Learn how GlassFish & Payara auto clustering improve scalability, availability, & failover for Java EE applications with built-in session replication","breadcrumb":{"@id":"https:\/\/accuweb.cloud\/blog\/glassfish-payara-auto-clustering\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/accuweb.cloud\/blog\/glassfish-payara-auto-clustering\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accuweb.cloud\/blog\/glassfish-payara-auto-clustering\/#primaryimage","url":"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/GlassFish-Payara-Auto-Clustering.png","contentUrl":"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/05\/GlassFish-Payara-Auto-Clustering.png","width":1280,"height":720,"caption":"GlassFish & Payara Auto-Clustering: Running Jakarta EE Applications in the Cloud"},{"@type":"BreadcrumbList","@id":"https:\/\/accuweb.cloud\/blog\/glassfish-payara-auto-clustering\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/accuweb.cloud\/blog\/"},{"@type":"ListItem","position":2,"name":"AccuwebCloud :: GlassFish &#038; Payara Auto-Clustering"}]},{"@type":"WebSite","@id":"https:\/\/accuweb.cloud\/blog\/#website","url":"https:\/\/accuweb.cloud\/blog\/","name":"AccuWeb.Cloud","description":"Cutting Edge Cloud Computing","publisher":{"@id":"https:\/\/accuweb.cloud\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/accuweb.cloud\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/accuweb.cloud\/blog\/#organization","name":"AccuWeb.Cloud","url":"https:\/\/accuweb.cloud\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accuweb.cloud\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg","contentUrl":"https:\/\/accuweb.cloud\/blog\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg","width":156,"height":87,"caption":"AccuWeb.Cloud"},"image":{"@id":"https:\/\/accuweb.cloud\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/accuweb.cloud\/blog\/#\/schema\/person\/76a9ac67b9c767ef39dbe3c4e9427756","name":"Jilesh Patadiya","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accuweb.cloud\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/94d41936196a27a133819bab474a9b7ab76c4034cad001b4499db6bc5e47a2af?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/94d41936196a27a133819bab474a9b7ab76c4034cad001b4499db6bc5e47a2af?s=96&d=mm&r=g","caption":"Jilesh Patadiya"},"description":"Jilesh Patadiya, the visionary Founder and Chief Technology Officer (CTO) behind AccuWeb.Cloud. Founder &amp; CTO at AccuWebHosting.com. He shares his web hosting insights on the AccuWeb.Cloud blog. He mostly writes on the latest web hosting trends, WordPress, storage technologies, and Windows and Linux hosting platforms.","sameAs":["https:\/\/accuweb.cloud\/blog","https:\/\/www.facebook.com\/accuwebhosting","https:\/\/www.instagram.com\/accuwebhosting\/","https:\/\/www.linkedin.com\/company\/accuwebhosting\/","https:\/\/x.com\/accuwebhosting","https:\/\/www.youtube.com\/c\/Accuwebhosting"],"url":"https:\/\/accuweb.cloud\/blog\/author\/accuwebadmin\/"}]}},"modified_by":"Jilesh Patadiya","_links":{"self":[{"href":"https:\/\/accuweb.cloud\/blog\/wp-json\/wp\/v2\/posts\/37612","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/accuweb.cloud\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/accuweb.cloud\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/blog\/wp-json\/wp\/v2\/comments?post=37612"}],"version-history":[{"count":31,"href":"https:\/\/accuweb.cloud\/blog\/wp-json\/wp\/v2\/posts\/37612\/revisions"}],"predecessor-version":[{"id":39103,"href":"https:\/\/accuweb.cloud\/blog\/wp-json\/wp\/v2\/posts\/37612\/revisions\/39103"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/blog\/wp-json\/wp\/v2\/media\/41924"}],"wp:attachment":[{"href":"https:\/\/accuweb.cloud\/blog\/wp-json\/wp\/v2\/media?parent=37612"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/accuweb.cloud\/blog\/wp-json\/wp\/v2\/categories?post=37612"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/accuweb.cloud\/blog\/wp-json\/wp\/v2\/tags?post=37612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}