GlassFish is an open-source enterprise level application server with high reliability and performance, which can run any Java EE project. It provides your application with full clustering capability and has a wide range of additional functions.
With CirrusGrid PaaS, you can use GlassFish not just as a separate server for hosting your Java applications, but also as a highly-available clustered instance with full replication. Let’s see how to easily setup GlassFish cluster within CirrusGrid Cloud in two different ways:
Get your GlassFish cluster up and running in just a few minutes using CirrusGrid one-click installation option.
The process of app installation via widget is simple – just click the Get It Hosted Now button, type your email and get the cluster hosted while skipping the steps of manual installation.
GlassFish clustered solution, installed with this option, is built on top of Docker containers. Such implementation provides additional reliability by operating each node, predefined cluster architecture (i.e. Load Balancer, Worker Nodes, Domain Administration Server), as an isolated instance. Herewith, HAProxy Docker image is used as Load Balancer and GlassFish template serves as a base for Worker nodes and DAS.
In order to gain a better insight into this package installation and management, refer to the GlassFish Cluster with Automatic Load Balancing page.
In case you want to gain the complete control over your GlassFish cluster configuration and deployment, the given below instruction can come in handy. It includes description of the main GF cluster configuration specifics and the way it can be implemented within CirrusGrid Cloud.
In accordance to the native GlassFish clustering architecture, it uses concept of an administrative domain. Such administrative domains consist of clusters and instances, which are managed using Domain Administration Server (DAS).
For central repository management you can use the Admin Console, interactive GUI which supports all available GlassFish features. Group Management Service (GMS) provides information about clusters, and DAS, as it was mentioned above, is responsible for managing Java instances in the administrative domain.
Instances in each cluster are paired up. In the case main instance in the cluster fails, all users on this instance are automatically redirected to the second instance in the cluster. Wherein end-users will not see any changes: the replicated instance has all of the sessions of the failed instance. If occasionally both instances in a cluster fail, users are just switched to another cluster. For such switching CirrusGrid uses NGINX-balancer. It handles and shares all the requests between clusters and instances based on the their load and availability.
Also you are provided with a complete scaling system: with horizontal and vertical scaling size and number of clusters can be easily changed manually or automatically due to the load increasing or decreasing.
To get your own GlassFish high-available clustered environment in the CirrusGrid Cloud just pick up GlassFish as your application server and increase the number of nodes as it is shown in the picture.
Don’t forget to enable High Availability feature: it will pair up all the nodes to create the cluster(s).
That’s all the configurations you need! Just click Create button and in a minute you’ll get highly reliable environment with the instance replication inside each cluster and the cluster replication inside the environment.
Powered by BetterDocs
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.