The process of Traffic Distributor installation is fairly simple with Jelastic - being specially packed for the Marketplace, it can be created in a few clicks and start working in just a matter of minutes. Herewith, the configurability of the solution is great, so let’s walk through the installation steps below, to learn about all of the available functionality and hidden nuances.
1. Open the Marketplace frame by clicking on the appropriate button at the top of the dashboard.
2. Within the Apps tab of Marketplace, navigate to the Dev & Admin Tools section to locate the Traffic Distributor package (or just use search field at the top) and click the Install button for it.
3. On the very first installation, you’ll be shown frame with a brief solution overview and some of its key benefits highlighted:
Tip: Tick the corresponding Don’t show this message again check-box to skip this information window in future.
Click OK to proceed.
4. At the appeared interactive installation frame, you can specify the following parameters to configure your Traffic Distributor topology and to set up desired routing for backends.
The following data should to be specified:
- Entrypoint - switcher with either Shared Load Balancer or Public IP position
- Balancers - the amount of the NGINX instances, you would like to add to the Traffic Distributor topology
- Routing method - select from the three available types of traffic distribution: Round Robin, Sticky Sessions and Failover
- Traffic ratio - set backend’s weight (priority) to control the requests distribution
- Backends - select two environments to be balanced, either from the automatically fetched list of available ones from your account or type in the required IP address / domain name (for custom host)
Note: Jelasic endpoint URLs can’t be specified as backends for traffic distribution as they presuppose operating via external Public ports, whilst interaction in confines of a single Platform is built on Private ports usage.
In this case, you need to set custom port redirects for your backends. For that, switch to the upstream section of the /etc/nginx/nginx-jelastic.conf load balancer configuration file inside your Traffic Distributor environment.
Here, you need to add the required internal containers’ port number to the appropriate backend IP addresses and, additionally, define it within the health check parameters.
- Environment - domain name for your environment (e.g. traffic-distributor)
- Display Name - optionally, alias to be shown for environment (Traffic Distributor by default)
Region - a drop-down list of the available environment regions
When all of the required data is specified, just click the Install button and everything else will be done automatically.
5. After a couple of minutes, you’ll see an installation success window with a short advices on the Traffic Distributor usage.