Search code examples
nginxdockercloudjelastichorizontal-scaling

Jelastic Docker Nginx LoadBalancing with Horizontal Auto Scaling


I'm trying to deploy an app in Jelastic that is Dockerized, and i want horizontal scalability, for that i need a load balancer and thought about nginx, but how can i deploy nginx as load balancer via docker on Jelastic?

My specific doubt is because until now when i deploy the load balancer, it ins't configured automatic, like when you deploy an app to tomcat using the Java tab from wizard GUI, i know i can configure nginx for some nodes after i set them up, the problem is, if it auto scale how it will be reconfigured?


Solution

  • Load balancing feature with Horizontal Auto Scaling for Docker containers is expected since Jelastic version 5.5. However, we are ready to suggest you another solution based on HAproxy load balancer. It's container with HAproxy load balancer which automatically changes own configs when application layer is scaled. Here is manifest which can be installed using Dashboard (import). Auto Scaling feature for Docker containers is described in our documentation.

    Manifest import

    Paste JSON manifest

    enter image description here

    enter image description here