This document is preliminary and subject to change.
In this document, you will find all of the new enhancements and visible changes included in the Jelastic PaaS & IaaS 4.5 and 4.5.1 releases:
For detailed information on using any of Jelastic’s features, please refer to the users’ documentation.
Container Creation Time Reduction
Docker standard support at Jelastic gains the increasing popularity since the time it was presented almost a year ago, which encourage its further development and improvement. So, within the current release, the massive code refactoring has been done to significantly decrease the Docker images' delivery time (5x faster in average) and, in such a way, to boost appeal of their usage even more.
Each part of the container creation process (from the initial setup method to the concluding detection of the port, required for automatic redirect) was thoroughly examined and adjusted by our developers team to get rid of possible inaccuracies and slowness. This resulted in a number of improvements, such as:
- removal of a set of redundant operations' calls from the code
- erforming configuration of some of required services (like openSSH, logrotate, cron) in background after container creation
- static rebuild of sed, file and curl utilities (i.e. without shared libraries) to eliminate the appropriate delays
- merge of several ‘apply config/quotas’ calls to one call (net, cpu, mem, disk)
- improval of the logs' gathering process for every performed step
Besides that, a number of other small fixes were applied to ensure the proper compatibility of various images, available at Docker Hub.
As a result, you’ll get a completely new experience while leveraging Docker containers, as for now the required dockerized solution can be deployed from both private registry or public repository in almost no time.
Horizontal Scaling Amendment
In one of the preceding releases, we’ve implemented the innovative Docker horizontal scaling feature, that allows to operate with multiple Docker-based instances of the same kind within the confines of a single environment stack. Here, the process of scaling for images in application server and load balancer layers initially assumed the complete duplication of the very first node. However, in some cases (e.g. if adding several nodes at once) this could take rather long time, due to the necessity to run a set of consecutive cloning and migration operations sequentially for each new node.
So, to overcome this inconvenience and decrease the time of new Docker instances addition, the above described mechanism was improved through parallelization of multiple containers creation. Also, such an implementation implies that instead of identical nodes addition (i.e. similar to the initial one), each new container will contain the default image, without any custom changes applied. Thereby, the system won’t need to clone each piece of the comprised application, getting rid of unrequired delay, while you will need to adjust the newly added app server/balancer containers manually (obviously, only where the changes are actually required).
This allowed to make multiple image copies' creation equally fast regardless of their amount, and even minimize it due to the exclusion of the currently unrequired migration step.
Run Command Validation
To keep improving the Docker containers integration to Jelastic PaaS, another adjustment was implemented for the images' Run Config, that is available at the dedicated Container Settings wizard. For now, the previously unsupported special characters (namely - "&", ";" and ">") are allowed to be used while specifying the required image start up operations within the Run Command field. In such a way, some distinctive run options or several of them at once can be set with the command validation passing correctly.
This resulted in the enlarged amount of official templates, that can be launched without any manual adjustments to be performed before proper running, while you’ve got the advanced abilities for configuring your already existing Docker containers.
Alpine Linux Template Support
Within the confines of Docker containers adoption, Jelastic provides support of the most commonly used OS distributions, that are utilized as a basis for the vast majority of Docker images (the precise list of the currently supported ones can be checked here, within the expandable table in a note).
Making the decision to expand these borders and striving to keep pace with the recent demands and usage tendencies, we’ve gathered and analyzed the statistics of the most frequent installation attempts and appeals. As a result, today we are glad to announce a new operating system for Docker images being supported - Alpine Linux.
This OS distribution has bribed its users with provided simplicity, lightweight and security standards. Being built with just musl libc and busybox, it represents a cleaned up environment for your services, allowing to create really dedicated Docker images. Leveraging Alpine as a base for template ensures efficient utilization of container resources, as it can be run without the unnecessary dependencies, processes and files inside (that, otherwise, are to consume the redundant disk space and cause the overall container slow down). For more information on Alpine characteristics and specifics, please refer to the official documentation.
The Alpine-based Docker images' deployment does not differ from that for all other template kinds - see the Adding Docker Container page for the detailed guidance.
Daemon v1.10 Support
The current Jelastic 4.5 release also includes a blazingly fast implementation of the just released Docker 1.10 engine support, which brings a bunch of major improvements in security, networking and usability. Among the number of features, described in the official release notes, we’ll highlight just a few main ones:
- content addressation - reference to images and layers via permanent data-related ID (based on security hash)
- Docker Registry 2.3 - new manifest format and support of shared layers among images
- push/pull acceleration - decreased execution time (up to 3x faster) due to parallel layers' processing
- seccomp profiles - ensures filtering of complex system calls
Also, a lot of bugs were fixed in order to generally increase the operational stability.
Selection of the Initial Tag Version
In order to always provide the best possible Docker solution upon a request, Jelastic proposes the most recent image version of the chosen template by default. As a standard, the latter release is delivered under the latest tag, thus it’s obvious to automatically substitute this version for each new Docker container. Herewith, you have the ability to additionally define the needed one during installation (as well as change it afterwards through redeploying a container with another version) or just continue with the default settings stated.
However, sometimes (e.g. in a rare case of the “latest” tag absence), the creation process could end up with a failure if you haven’t set the proper tag manually. In connection to this, the logic of initial version selection was adjusted to fetch the available tags list just upon a particular template is picked up. So, in case the “latest” version does not exist, the system will automatically detect and substitute the last committed tag instead (which is usually the newest one).
In addition, this verification allows to instantly identify the unreachable images (e.g. in case of authorization failure or their preceding removal from a registry), just while addition to an environment via wizard. Layers with such Docker containers are to be marked with the exclamation mark (!), which displays the additional information upon being hovered upon, while the Create button will remain disabled till the problem is solved or broken images are removed from topology.
Parallel Linking of Containers
Among other abilities, the embedded Container Settings wizard at Jelastic dashboard provides the functionality of multiple Docker containers' linking. It allows to quickly establish a proper interaction between them, that is required for building complex dockerized solutions. However, performing this for set(s) of the same-type nodes at once could take the considerable amount of time due to the necessity to run the appropriate operations one-by-one (while otherwise, this would cause the linked images' metadata override).
So, to deal with this issue, the Jelastic 4.5 platform upgrade implements addition of a special lock mechanism for an image during the time of link appliance. It ensures that in case of several such processes' calling, they could be performed independently and asynchronously, i.e. in parallel. Beside that, the workflow of links addition was optimized for the images' run command for being called only after the linking operation is finished, rather than immediately after the image deployment. In such a way, we get rid of the additional node restart (previously required for the new settings' appliance after linking), so all the services are started only once, just upon a container creation.
Password Expiration Settings for MySQL (4.5.1)
For MySQL servers of 5.7.4 - 5.7.10 versions, a special password lifetime policy was applied, which enforces its automatic expiration after the period of 360 days. This resulted in a number of complaints and disturbances, especially for inexperienced users, as such an unexpected configuration change could lead to occasional project downtime due to inability to establish connection to DB.
Also, this caused a number of inconveniences for Jelastic users with legacy MySQL containers (created before 4.1 upgrade), as previously the Reset password functionality for this server did not imply resetting of the corresponding flag, so the database couldn’t be accessed neither with the old password nor with a new one.
Though all of these drawbacks have been fixed (as well as such a password termination workflow was officially removed starting with 5.7.10 MySQL version), it was decided to additionally apply the corresponding adjustment to the MySQL stack template at Jelastic, in order to avoid similar issues in future. So for now, the default value of default_password_lifetime parameter is 0, which automatically disables the above described expiration policy.
Nevertheless, in case you find this option to be useful in confines of ensuring your data security due to regular changing of access credentials, you still can enable it manually with stating the corresponding setting to any non-zero integer (which defines the number of days after which the current password will be considered outdated and thus should be renewed). To perform this, you need to navigate to the appropriate etc > my.cnf file at your MySQL server, edit the default_password_lifetime parameter value and restart the node.
Bzip2 Tool Integration (4.5.1)
Striving to keep containers lightweight and, at the same time, functional enough, Jelastic includes only the most useful and commonly used tools into the default stacks builds. Within the Jelastic 4.5.1 release, the list of embedded RPM packages for the common container template was extended with a highly requested bzip2 utility. Representing a popular, high-quality and efficient data compressor, it is essential for lots of common operations, like dependencies management and NPM modules' packaging.
Software Stack Versions
The component templates versions have been updated to their latest versions since the previous release:
|Stack||Jelastic 4.5||Jelastic 4.5.1|
|MariaDB||5.5.42 / 10.0.17||5.5.42 / 10.0.17|
|MySQL||5.6.24 / 5.7.7||5.6.24 / 5.7.7|
|Node.js||0.10.41 / 0.12.9||0.10.41 / 0.12.9|
In the table below, you can see the list of bug fixes in Jelastic PaaS 4.5 and 4.5.1: