Setting Up Environment

To host your application you need to create an appropriate environment firstly. It will be spread across a set of servers, chosen according to your app’s requirements and programming language it is written in. Herewith, every instance in Jelastic environment (like database, app server etc.) represents an independent virtual machine (container).

Jelastic monitors and maintains your environment. For example, if instances need more resources, they are moved to more powerful hosts without the necessity of your manual intervention. In addition, Jelastic sends you an email notification whenever it makes any modifications to your environment.

The following guide will help you to pass through the steps of environment creation, describing the available software stacks and additional possibilities the Jelastic Cloud provides. So, proceed to the steps below:

  1. Log in to theJelastic dashboardwith your credentials.
  2. ClickNew environment in the upper left corner of the dashboard.new environment
  3. TheEnvironment Topologydialog box will be opened. To start with, choose your programming language by clicking on the appropriate tab in the upper part of the dialog box:
  4. Here you can fully customize your environment settings.environment wizard

Now let’s consider each of the available blocks in more details:

  • Balancing
  • Application Servers
    • –  Type and version of application server
    • –  Engine version
    • –  High Availability
    • –  Public IP
  • Memcached
  • Databases
    • –  SQL Database
    • –  NoSQL Database
  • Additional Options
    • –  Storage
    • –  VPS
      –  Build node
    • –  SSL
  • Docker
  • Summary List

Balancing

If you want to set up the load balancing, simply pick the NGINX-balancer node by clicking the Balancing button (also, it is automatically enabled if you use more than one server). Then, specify the resources limits for vertical scaling of your server (fixed and dynamic amount of cloudlets you want to use) in the center section of the Environment topology window.

balancer node

If you need an external IP address, switch on the Public IPv4 option (please note: this is a paid add-on).

Application Servers

Click the Application servers button.

  • In the first drop-down menu choose the application server you want to use (GlassFish 3.1, Jetty 6.1, TomEE 1.7, Tomcat 6/7, Apache 2.2, NGINX 1.6, Node.js 0.1, IIS 8 or any other one available by means of cartridge added by your hosting provider).

application-server

  • Use the +/- buttons between the application server icons to scale your server horizontally (more or less nodes).More info:
    • Tomcat 6
    • Tomcat 7
    • Jetty 6
    • GlassFish 3
    • TomEE
    • Apache
    • NGINX
    • IIS 8
  • You can change the cloudlet limits per server (vertical scaling) using the sliders (for fixed and dynamic amount of cloudlets separately).
  • In the second drop-down menu choose the desired Engine version:
    • Java versions – JDK 6, 7, 8, 9, 10 or OpenJDK 7,8;
    • PHP versions – PHP 5.3, PHP 5.4, PHP 5.5, PHP 5.6, PHP 7.0, PHP 7.1 or PHP 7.2;
    • Ruby versions – Ruby 2.2, Ruby 2.3 or Ruby 2.4;
    • Python versions – Python 2.7, Python 3.3, Python 3.4 or Python 3.5;
    • Node.js versions – Node.js 6, Node.js 8 or Node.js 9;

    In case of .NET usage, the only available version (.NET 4) will be chosen automatically.

  • If you need it, you can switch the High Availability on for your Java application server. You can also attach the Public IPv4 address to your app server, regardless of the used programming language (please note: this is a paid add-on).

Memcached

Using the Cache icon, you can add a Memcached node.

memcached

Use the sliders to change the cloudlet limits for its vertical scaling.

Databases

There are two sets of databases available: SQL and NoSQL databases.

  • Click on the SQL icon to activate an SQL Database. You can choose your database from the drop-down list: MariaDB 5.5, MariaDB 10.0, MySQL, PostgreSQL 8.4, PostgreSQL 9.4, MSSQL 2012 (or any other available by means of cartridge added by your hosting provider).sql-database
  • Then specify the cloudlet limits using the sliders. If you need it, switch on the Public IPv4 (please note: this is a paid add-on).
  • Click on the NoSQL icon to activate a NoSQL Database. Choose your desired database from the drop-down menu.

    nosql-database

    Then specify the cloudlet limits using the sliders. If you need a public IP, switch on the Public IPv4 option (please note: this is a paid add-on).

Additional Options

There are a few additional options available: Storage, VPS, Maven and SSL.

    • To use Shared Storage container, enable the  appropriate icon and specify cloudlet and disk limits for it.storage

A few other options are also available here, like setting number of server instances, Sequential restart delay (to specify a particular time frame between restart of two containers within one layer) and Public IPv4 / IPv6 addresses enabling (note that it is a paid option).

  • If you want to use an Elastic Virtual Private Server (VPS), click on the same-named VPS icon, choose the required one via the appeared drop-down list (Centos 6.8, Centos 7.2, Ubuntu 16.04, Windows 2008 or Windows 2012) and scale it vertically by changing the cloudlet limits.
    • Elastic VPS
    • VPS Configuration
    • Linux VPS Access via Public IP
    • Linux VPS Access via SSH Gate
    • Windows VPS Access via RDPvirtual-private-server
  • Note that VPS containers are provided with the automatically attached external IP address by default.
  • To use a Maven build-node (for Java projects), click the Build icon and specify the cloudlet limits for its vertical scaling using the sliders.

maven-build-node

  • If you want to activate an SSL for your environment, click on the corresponding icon at the top part of the wizard frame (above topology blocks).ssl
  • Jelastic gives you an opportunity to choose between Jelastic SSL (only application server is required) and Custom SSL(application server/NGINX balancer with Public IP is required).

 

Docker

In addition to the variety of available programming languages, the environment wizard contains one more special Dockertab, intended for creation of containers, based on Docker templatesInside, you’ll find four equal blocks with different layer names to the left, where you can select any amount of Docker containers with required software (added either within just one section or to different ones).

docker image

Once a particular template’s slot is chosen (at the bottom part of the frame), you can specify the resources limits for it using the cloudlets sliders, attach the Public IPv4 address (please note: this is a paid option) or perform some basic container configurations through a separate graphic tool (Edit button).

Also, the abovementioned SSL option is available for Docker-based environments (currently only the Jelastic SSLcertificates are supported).