When setting up an environment in Unispace PaaS you can choose the distribution and version of JDK you want to run:
- AdoptOpenJDK: 8.0.222; 9.0.4; 10.0.2; 11.0.4; 12.0.2
- Amazon Corretto: 126.96.36.199; 188.8.131.52.1
- Eclipse OpenJ9: 0.9.0-184.108.40.206; 0.9.0-10.0.2; 0.11.0-8u192-b12; 0.11.0-11.0.1, 0.15.1-8u222-b10; 0.15.1-11.0.4; 0.15.1-12.0.2
- GraalVM CE (currently, for Java Engine and Maven only): 19.1.1; 19.2.0
- Liberica JDK: 8.0.222; 11.0.4; 12.0.2
- Oracle JDK Dev: 7.0_79; 8.0_202; 9.0.4; 10.0.2; 11.0.2
- Oracle OpenJDK: 7.0.231; 8.0.222; 10.0.2; 11.0.4; 12.0.2; 13.ea-b33; 14.ea-b14
Zulu Community: 7.0.232; 8.0.222; 11.0.4; 12.0.2
Also, for the existing environments the used engine version can be easily switched to a different one:
Java Application Servers
Within a wide variety of software stacks, Unispace supports the following Java application servers:
To host a Java application, you need to create an appropriate environment. Just open the topology wizard in your Unispace dashboard, navigate to the Java language tab, pick the desired Java application server, databases or other containers if required, specify basic settings according to your needs and click Create.
All added servers represent fully isolated containers, located on different hosts for more availability, while isolation eliminates the risks of interfering with one another. You can attach the Public IP address to any of these servers for being accessed directly. Otherwise (i.e. if using default settings), the incoming requests sent to your application will be proxied by Shared Load Balancer.
Java Application Deployment
After environment creation, you can deploy your Java application. Herewith, Jelastic PaaS fully automates the deployment process allowing to get your project up and running effortlessly.
The following deployment methods are supported:
You can read the appropriate documents to learn more about the deployment of the Java applications:
You can bind a custom domain name to your application’s URL and use it instead of the default environment domain:
- CNAME redirect if using Shared Load Balancer; is recommended for dev and test environments
- DNS A Record if using Public IP; can handle high traffic load and is suitable for production environments
Tip: Jelastic PaaS allows using multiple domains within a single environment to increases its usability, efficiency, and scalability, while simultaneously saving your costs by avoiding a need to set up separate environments for different apps. Check the appropriate examples below:
Automatic Vertical Scaling
Jelastic PaaS automatically provides the number of cloudlets (i.e. RAM and CPU resources), which are required by your application to handle the current load. Just specify the maximum limit, and everything else is handled by the platform with no manual intervention required. This feature is called automatic vertical scaling and ensures that you never overpay for unused capacities without experiencing resource shortage.
To set or change the vertical scaling limit, just use the appropriate slider within the topology wizard:
Horizontal Scaling: Manual and Automatic
In case, your application becomes highly popular, and a single node is not enough, feel free to scale it horizontally. Herewith, to ensure even more reliability and high-availability, all the newly added nodes are created on the different hardware nodes.
Click the +/- buttons within the Horizontal Scaling section of the topology wizard to set the required number of nodes (load balancer will be added automatically).
Also, you can adjust the preferred scaling mode:
- Stateless – simultaneously creates all new nodes from the base image template
- Stateful – sequentially copies file system of the master container into the new nodes
Horizontal scaling can be performed not only manually but also automatically based on the current load on the node, which is monitored through the tunable triggers.
Within Settings > Monitoring > Auto Horizontal Scaling section, you can adjust the scaling conditions due to your needs, i.e. the lower/upper limit (percentage) for the specified resource type during a certain period. If the load stays out of the set limits, the nodes removal/addition process will be called automatically.
There are five different types of resources, which are monitored by triggers:
- Memory (RAM)
- Disk I/O
- Disk IOPS
The trigger starts monitoring the resource consumption immediately after addition, and when the usage level exceeds the stated limit, a trigger becomes invoked. Subsequently, if the load persists for a defined period, it will be executed, adjusting the number of nodes.
The embedded application server clustering feature provides replication of sessions between pairs of nodes and eliminates the necessity of additional software or Memcached usage for increasing applications availability.
Jelastic provides automated session replication between Tomcat, GlassFish and Jetty servers with a help of multicast to gain web application high availability within Java cluster. This High-Availability feature can be enabled in the topology wizard while environment creation or tuning.
Database Connection to Java Application
A set of scalable and fully manageable database servers can be easily installed within the Java environment. To establish the connection, adjust your application following the instruction based on the database you require:
Unispace provides high-quality Java hosting with improved availability, redundancy and scalability strengths for your application.
TRY OUT NOW
Explore the benefits of Java cloud platform with free trial.